How to use system alarm in Qt for Symbian Project
Hello guys,
Now I'm working with a project have to add and remove system alarms from Qt for Symbian^3 device, but I cannot find out any article about setting up alram by Qt. I found XQAlarms from Mobility Extension but I cannot work how to use it in my project because I do not know how to find out its headers and what libs have to add to the .pro. Please help and many thanks.
Thank you very much for helping.
Vincent
Re: How to use system alarm in Qt for Symbian Project
The Mobility Extension API's are depricated now. Instead use QtMobility API's. Check QOrganizerItemVisualReminder to set alarms.
Re: How to use system alarm in Qt for Symbian Project
Also you need to add following line in your .pro file
[CODE]CONFIG += mobility
MOBILITY = organizer[/CODE]
Also add namespace "QTM_USE_NAMESPACE" to your header/source file.
Re: How to use system alarm in Qt for Symbian Project
Hello savaj,
Thank you very much for your reply.
Sorry I still not work out how to set alarm for the phone. What I expect is to make a system alarm clock so that the alarm will launch even if my app is closed.
Is there any code sample for this?
Re: How to use system alarm in Qt for Symbian Project
Organizer API's (QOrganizerItemVisualReminder) of QtMobility are right choice for setting alarms. What did you tried to set alarm?
Re: How to use system alarm in Qt for Symbian Project
Thanks savaj,
I'm trying to set the alarm to remind such as a TV show on 10pm, and the clock alarm should alert at 10pm without my app running.
I still looking at Organizer API's, but sorry I'm too new to Qt that I do not know how to use those APIs. Is there any sample I can reference to it?
Thanks again for helping.
Re: How to use system alarm in Qt for Symbian Project
Check ToDo example of QtMobility.
[url]http://doc.qt.nokia.com/qtmobility-1.2/todo.html[/url]