×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Aug 2007
    Posts
    6

    CLogClient and CLogEvent

    Hi All,

    I want to update the default Call Logs of S60 application. For this I am using CLogClient and CLogEvent class. Using the ChangeEvent API I modified the Log details.

    For e.g. if the log contains "12345@test.com" as SIP URI in VOIP call log, I modify it to "67890". Before calling ChangeEvent I modify CLogEvent's RemoteParty and Number. i.e. call to SetNumber and SetRemoteParty

    Problem : When I traverse to the native logs and open the Log it displays the modified number. But when I press the Green Key or Dial out that log, it dials the original number instead of dialing "67890".

    Can anybody let me know if I am missing any thing ?

    Regards,
    /nirav

  2. #2
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: CLogClient and CLogEvent

    can you show how you are changing the Event. Looks like you are missing something

  3. #3
    Registered User
    Join Date
    Aug 2007
    Posts
    6

    Re: CLogClient and CLogEvent

    Hi,

    Logclient etc.. is initialized properly

    1. iLogViewRecent->SetRecentListL(KLogNullRecentList, iStatus)
    2. RunL gets called and I fetch the first record. (CLogEvent using iLogViewRecent->Event())
    3. In a ModifyEvent function, I perform following tasks,

    Code:
        
        if(anEvent.RemoteParty().Length()> 0)
        {
    	(const_cast<CLogEvent&>(anEvent)).SetRemoteParty(iNewNumber);
    	numberModified = ETrue;
        }
    	
        if(anEvent.Number().Length() >0)
        {
            (const_cast<CLogEvent&>(anEvent)).SetNumber(iNewNumber);
    	numberModified = ETrue;
        }
        if(numberModified)
        {
    	iTask = EModifying;
    	iLogClient->ChangeEvent(anEvent,iStatus);
            SetActive();
        }
    After this when I go to default Logs it dials the original number.

    Also, one more query, for VOIP calls what will be the EventType in LogEvent?
    Is it "KLogCallEventTypeUid" ? Is there a way to distinguish between VOIP calls and normal VOICE(GSM/CDMA) calls ?

    Regards,
    /nirav

  4. #4
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: CLogClient and CLogEvent

    make sure ChangeEvent is called and completed correctly . also what CAPABILITES you have. you should have WriteDeviceData Capability to your application. which requires a Dev Sign

  5. #5
    Registered User
    Join Date
    Aug 2007
    Posts
    6

    Re: CLogClient and CLogEvent

    ChangeEvent is getting completed successfully and I do have WriteDeviceData capabilities. The problem is, when I view the logs, it displays the modified number. But as soon as I dial, it dials the original number.
    Regards,
    /nirav

Similar Threads

  1. Replies: 13
    Last Post: 2007-07-30, 10:42
  2. Log Deletion ::CLogClient
    By yogesh.bhople in forum Symbian
    Replies: 8
    Last Post: 2006-11-18, 10:19
  3. CLogClient Logging related problem
    By abhishekmishra in forum Symbian
    Replies: 6
    Last Post: 2006-10-28, 11:53
  4. problem with CLogClient
    By gs_cmans in forum Symbian
    Replies: 12
    Last Post: 2006-04-07, 18:36
  5. Replies: 0
    Last Post: 2003-03-03, 08:12

Posting Permissions

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