Discussion Board

Results 1 to 8 of 8
  1. #1
    Nokia Developer Champion savaj's Avatar
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034
    Hi,

    currently i m using CPeriodic Timer in my application and its work fine. But now i want to stop timer whenever dialog is showing and start it again when dialog is dismissed. How can i?

    savaj.....

  2. #2
    Regular Contributor KevinD's Avatar
    Join Date
    Mar 2003
    Posts
    179
    Isn't it just a case of calling Cancel() on your CPeriodic object when your dialog appears?
    Symsource Ltd.
    [url]www.symsource.com[/url]

  3. #3
    Nokia Developer Champion savaj's Avatar
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034
    hi KevinD
    Thanx for reply..

    How can i Resume timer remaining time???

  4. #4
    Registered User raghu_an's Avatar
    Join Date
    Dec 2003
    Posts
    19
    Hi,

    You have to calculate the time using TTime "HomeTime()"/"MicroSecondsFrom()" methods and re-request the timer event with the interval equivalent to time difference obtained by "MicroSecondsFrom()".

  5. #5
    Super Contributor vasant21's Avatar
    Join Date
    Jul 2006
    Location
    Oulu, Finland.
    Posts
    1,174
    If you want something like "pause", then there is no direct way of doing that with CPeriodic, as said by Kevin, you can use start() and stop() methods according to your need.

  6. #6
    Nokia Developer Champion savaj's Avatar
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034
    Hi vasant

    Yes i want something like "pause", and there is no method like stop()in CPeriodic, so delete this timer and start it again whenever it is required.

    savaj....

  7. #7
    Super Contributor vasant21's Avatar
    Join Date
    Jul 2006
    Location
    Oulu, Finland.
    Posts
    1,174
    opps my bad, its Cancel() and no need to delete the timer, you can simply call Cancel() on the timer and start it again, but for "Pause" behaviour you need implement your own logic.

  8. #8
    Nokia Developer Champion savaj's Avatar
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034
    Ok thanx
    i got it..

Similar Threads

  1. Bizarre calendar/time zone change handling in Nokia 9500
    By noetus in forum General Development Questions
    Replies: 0
    Last Post: 2005-09-19, 19:27
  2. Timer delay between playbacks???
    By lalitsharma in forum Symbian C++
    Replies: 3
    Last Post: 2005-09-09, 11:45
  3. Log time bug on 3650. Help me please.
    By hemenkap in forum General Development Questions
    Replies: 2
    Last Post: 2005-06-30, 07:18
  4. 8210 - Need a real time timer during calls!
    By ozzietj2002 in forum General Development Questions
    Replies: 0
    Last Post: 2004-01-01, 05:31
  5. SMS time stamp format with time zone parameter?
    By turunhe in forum General Messaging
    Replies: 1
    Last Post: 2002-06-11, 07:00

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved