开发者

How to receive power off events in a Symbian console application?

开发者 https://www.devze.com 2022-12-19 04:01 出处:网络
I am lo开发者_StackOverflowoking for a working code example for Symbian S60 5th edition in which a console application can receive power off events (i.e. detect phone switch off). I know how to do thi

I am lo开发者_StackOverflowoking for a working code example for Symbian S60 5th edition in which a console application can receive power off events (i.e. detect phone switch off). I know how to do this from UI application [AppUI, HandleSystemEventL(const TWsEvent& aEvent), etc], but Windows Server does not seem to send events if simple console application is listening to these events.

So, I have tried to connect to WS, call EventReady(&iStatus), but RunL is never called, and the application never receives EApaSystemEventShutdown.

Can anyone here provide working code for this?

Thank you.


You can use CSaveNotifier (savenotf.h, powermgrcli.lib) to receive powerdown notifications. Sorry, don't have a code snippet available at the moment.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号