newlc.com
Articles Only
Forum Only
Community
World-Wide Web
Home
News
Tutorials
Reviews
Downloads
Professional Services
Forums
Newsletter
Blog
About us
Last forum posts
Home
::
Forums
::
Development
::
Symbian C++
User login
Username:
*
Password:
*
Create new account
Request new password
Featured pages
Configure your PC for Symbian development
Getting started with Symbian development
Symbian OS Error Codes
Common products UIDs
Nokia S60 SDK
Featured Software
NlMakesis
Y-Browser
Y-Tasks
Active users (last 30 days)
User
Score
eric
63
rbrunner
58
Andreas
46
sandeepmhptr
41
alh
36
more
Feeds
More feeds...
How can i read the received and missed logs?
Login
to reply to this topic.
Mon, 2005-07-25 03:27
NoSymbian
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!
Login
or
register
to post in forums
Mon, 2005-07-25 05:37
KiranP
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
mesweetie
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.
Forum posts: 76
..
KiraN Puranik
Forum posts: 239
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