×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor
    Join Date
    Dec 2008
    Location
    Bangalore
    Posts
    174

    SetTime is not working in add call log event

    hi all, i am trying to add an event in call log i can able to create new event in my call log everything is working like number,direction etc.. but only time setting is not working. whatever i give its always setting to current time, if i remove that (iLogEvent->SetTime(time)) function also its working fine by setting to current time that means that function is not working. i dont know why can anybody please help me..i'm working in s60 3rd edition, this is the code i'm using....

    void CCallLogReader::AddEventL()
    {
    if(iLogEvent)
    {
    delete iLogEvent;
    iLogEvent = NULL;
    }
    iLogEvent = CLogEvent::NewL();
    iLogEvent->SetDuration(0);
    iLogEvent->SetDurationType(KLogDurationValid);
    TBuf<KLogMaxDirectionLength> direction;
    iLogClient->GetString(direction, R_LOG_DIR_OUT);
    iLogEvent->SetDirection(direction);
    iLogEvent->SetEventType(KLogCallEventTypeUid);
    iLogEvent->SetSubject(KOwnEventSubject);
    iLogEvent->SetNumber(_L("+919886926070"));
    iLogEvent->SetRemoteParty(_L("+919886926070"));

    TTime time(000000000);//i tried both ...
    //TTime time; // creation time from the device clock
    //time.HomeTime();
    iLogEvent->SetTime(time);

    iLogClient->AddEvent(*iLogEvent, iStatus);
    SetActive();
    iState= EAddEvent;
    }

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

    Re: SetTime is not working in add call log event

    TTime time;
    time.HomeTime();
    iLogEvent->SetTime(time);

    is ok. and should work.

    You can try Log Example from DOC.
    http://www.forum.nokia.com/info/sw.n..._v1_0.zip.html

  3. #3
    Regular Contributor
    Join Date
    Dec 2008
    Location
    Bangalore
    Posts
    174

    Re: SetTime is not working in add call log event

    thanks for replying.. but i want to set my own time.. for that what shall i do for ex: i want set 00/00/00 00:00:00:0000 like this...

  4. #4
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,167

    Re: SetTime is not working in add call log event

    you could check SDK docs on functions provided by the TTime API.

  5. #5
    Registered User
    Join Date
    Jan 2010
    Posts
    16

    Smile Re: SetTime is not working in add call log event

    I have a same problem, Coould you tell me What can i do ?

Similar Threads

  1. Assess Call log in j2me
    By bfchaudharimca in forum Mobile Java Networking & Messaging & Security
    Replies: 7
    Last Post: 2011-12-18, 20:24
  2. Call log data base
    By knsrividya.2007 in forum Symbian
    Replies: 5
    Last Post: 2008-01-09, 05:44
  3. Call Log Problem
    By map123 in forum Symbian
    Replies: 7
    Last Post: 2007-03-07, 16:08
  4. Replies: 0
    Last Post: 2007-01-04, 07:20
  5. duration and cost at a time in call log?
    By hegdeshashi in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2005-10-26, 07:30

Posting Permissions

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