×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Feb 2011
    Posts
    11

    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

  2. #2
    Nokia Developer Champion
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    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.

  3. #3
    Nokia Developer Champion
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    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
    Also add namespace "QTM_USE_NAMESPACE" to your header/source file.

  4. #4
    Registered User
    Join Date
    Feb 2011
    Posts
    11

    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?

  5. #5
    Nokia Developer Champion
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    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?

  6. #6
    Registered User
    Join Date
    Feb 2011
    Posts
    11

    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.
    Last edited by kcowjj; 2011-10-21 at 08:33.

  7. #7
    Nokia Developer Champion
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    Re: How to use system alarm in Qt for Symbian Project

    Check ToDo example of QtMobility.
    http://doc.qt.nokia.com/qtmobility-1.2/todo.html

Similar Threads

  1. How can I convert easily from Visual Studio 2008 project to Symbian project?
    By K.John in forum Series 40 & S60 Platform Feedback Archive
    Replies: 2
    Last Post: 2009-08-17, 14:01
  2. How to link a C++ project and symbian OS project in carbide??
    By Adrian99420 in forum Symbian User Interface
    Replies: 0
    Last Post: 2008-02-29, 03:29
  3. Project Managers with Symbian Project Experience
    By mattsankey in forum Symbian
    Replies: 0
    Last Post: 2004-06-30, 09:29
  4. Nokia 22 as intruder alarm system?
    By grempis in forum Nokia M2M
    Replies: 0
    Last Post: 2004-03-17, 09:02
  5. Help Please: Project: SMS + GPS system
    By Nokia_Archive in forum General Messaging
    Replies: 2
    Last Post: 2002-06-06, 13:17

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •