How can i read the received and missed logs?

Login to reply to this topic.
Mon, 2005-07-25 03:27
Joined: 2005-07-14
Forum posts: 5
i want to know how to read the received and missed logs,
Who can help me,and give me the complete codes?
Thank you very much! Huh Huh

Mon, 2005-07-25 05:37
Joined: 2005-06-01
Forum posts: 76
Re: How can i read the received and missed logs?
Chk the CLogViewRecent in docs. Also search in the forum you will get a lot of posts already on this topics.

..
KiraN Puranik
Tue, 2005-07-26 09:43
Joined: 2004-12-23
Forum posts: 239
Re: How can i read the received and missed logs?
Hi
following code might help u
It will filter the view and create events of all incoming calls
then one by one u can read the entries
count the number of events in the view created.

iLogClient = CLogClient::NewL(iFs,CActive::EPriorityHigh);   
   iRecentLogView = CLogViewEvent::NewL( *iLogClient,CActive::EPriorityHigh); 

    CLogFilter* iLogFilter = CLogFilter::NewL();
TBuf<64>directionStr;
iLogClient ->GetString(directionStr,R_LOG_DIR_IN);//for incoming calls
iRecentLogView->SetDirection(directionStr);
   iLogFilter->SetEventType(KLogCallEventTypeUid);   
   TBool eventsInView=iRecentLogView->SetFilterL(*iLogFilter,iStatus);
 
   if(eventsInView)
   {
        TInt count=iRecentLogView->CountL();
   //do ur stuffs
   }
         

same for missed call/outgoing calls .U have to change the direction stirng only
Hope this will help u.
Regards

---------------
Bhatt Kavita

  • Login to reply to this topic.