Discussion Board

Results 1 to 7 of 7
  1. #1
    Regular Contributor arumilli's Avatar
    Join Date
    Apr 2008
    Posts
    112
    when i click start it will start a time at 00:00 and will continue in sec untill i click stop .
    how can i implement this
    can u give the idea.
    thanku&regards
    sree

  2. #2
    Nokia Developer Champion Nitesh Bhardwaj's Avatar
    Join Date
    Jan 2008
    Location
    Bangalore, India
    Posts
    777
    step-1 Implement a timer
    Step-2 Catch the key
    Step-3 start the Timer
    step-4 Increase the time until again key pressed,stop the timer
    for timer use it "CTimer"

  3. #3
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,664
    Remeber that the timers can be inaccurate, thus have a TTime variable as your class member, and call HomeTime() for it when you start the timer, then you could have a local TTime and call HomeTime() to it, and check the time passed between the two TTime variables.

    Wiki should have nice examples on timers, so have a look into there.

  4. #4
    Regular Contributor arumilli's Avatar
    Join Date
    Apr 2008
    Posts
    112
    actually
    wht i need to develop is juat like call duration counter.
    so can i use this TTime.

  5. #5
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,664
    Sure, just mark down the time when the call starts, and check the time when the call ends. CTelephony would be the API for call monitoring, for which I'm rather sure wiki also has examples for.

  6. #6
    Regular Contributor arumilli's Avatar
    Join Date
    Apr 2008
    Posts
    112
    thank u
    but i have to update every sec
    like 00:00
    to 00:01
    to 00.02 ....
    so how can i do it
    this is not for call functionality to use CTelephony,still can i use CTelephony .
    thank u

  7. #7
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,664
    then add a timer that expires every second, and start it when the call starts, and when it expires, just update your UI showing the Timer. You could do a bit of searching yourself, nobody here is going to design & implement the program for you, so its easier to search and try.

Similar Threads

  1. Date & Time Editor in Form Resource.
    By Kavit Patel in forum Symbian C++
    Replies: 2
    Last Post: 2008-03-03, 06:26
  2. Time is 1 hour off on Nokia 5300
    By Yuriy in forum Mobile Java General
    Replies: 2
    Last Post: 2008-02-24, 21:09
  3. Can I measure the time period for which a key is pressed.
    By aficianado_001 in forum Symbian C++
    Replies: 2
    Last Post: 2005-12-01, 10:03
  4. Replies: 0
    Last Post: 2005-11-22, 17:15
  5. How to get correct time.
    By dzaga in forum Mobile Java General
    Replies: 2
    Last Post: 2003-08-06, 22:03

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