如何创建写入空闲/活动屏幕的 S60 应用程序?

发布于 2024-07-13 07:15:57 字数 228 浏览 5 评论 0原文

我想编写一个 S60 Active Screen 的替代品(在空闲屏幕中运行的应用程序)。 但我找不到任何有关如何写入/绘制 S60 第三版的空闲/活动屏幕 API 的文档。

我不介意它们是用于 C++ 还是 Python 绑定。

谁能指点我一些文档/示例吗?

PS 我知道这是可以做到的,因为有一个名为 Handy Shell 的应用程序可以取代“Symbian 活动屏幕”。

I would like to write a replacement for the S60 Active Screen (app that runs in the idle screen). But I can't find any documentation covering how to write/draw to the idle/active screen API's for S60 3rd edition.

I dont mind if they are for C++ or Python bindings.

Can anyone point me to some docs/examples?

PS I know this can be done, because there is an app called Handy Shell which replaces the 'Symbian active screen'.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

╭ゆ眷念 2024-07-20 07:15:57

一种方法是注册焦点组更改,并在当前空闲屏幕应用程序进入前台时将您的应用程序带到前台。

有几种方法可以做到这一点 - 最简单的是通过 AppUi 类中的 HandleWsEventL() 。 覆盖 HandleWsEventL() 并检查 EEventFocusGroupChanged 事件。 此时,您可以使用 RWsSession::GetFocusWindowGroup() 来获取带到前台的应用程序的窗口组 ID。 如果是空闲屏幕,请转到前台。

(这假设您之前已使用 TApaTaskList::FindApp() 从 Idle UID 确定了空闲屏幕窗口组 ID。S60 3rd FP2 中的 UID 为 0x102750F0。FP2 之前的 UID 为 0x101fd64c)。

One way is to register for focus group changes and bring your app to the foreground when the current idle screen app comes to the foreground.

There are a couple of ways to do this - the simplest is via HandleWsEventL() in your AppUi class. Over-ride HandleWsEventL() and check for EEventFocusGroupChanged events. At this point you can use RWsSession::GetFocusWindowGroup() to get the Window Group ID of the app brought to the foreground. If it is the idle screen, bring yourself to the foreground.

(This assumes you have determined the idle screen Window Group ID from the Idle UID using TApaTaskList::FindApp() previously. The UID in S60 3rd FP2 on is 0x102750F0. Pre-FP2 it is 0x101fd64c).

谎言 2024-07-20 07:15:57

我不知道 HandyShell 是如何做到这一点的。 但是诺基亚知识库说,它受到限制并且不可用对于第 3 方...

I don't know how HandyShell does this. But the Nokia Knowledge Base says, it's restricted and not available for 3rd parties...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文