×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Regular Contributor
    Join Date
    Feb 2008
    Posts
    269

    Retrieve recent event giving problem...

    Hi all,

    I want to retrieve the recent event, and it is done. But the problem is it retrieve the same event twice. In the run function of the thread i had done like this below:

    void CLogHandler::RunL()
    {
    if(iStatus != KErrCancel)
    {
    switch(iState)
    {
    case EWaitingChange:
    {
    GetLatest();
    }
    break;
    case EReadingLog:
    if(iLogViewRecent)
    {
    if(iLogViewRecent->CountL() > 0)
    {
    iCallBack->LogEventL(iLogViewRecent->Event());
    iState = EWaitingChange;
    StartMonitorL();
    }
    else
    {
    StartMonitorL();
    }
    }
    break;
    default:
    StartMonitorL();
    break;
    }
    }
    }

    So as an event occurs i can extract the event number but twice. And one more time if i view the number for the missed call from my handset. Can anyone tell me whats the problem?
    Last edited by santu.paul@gmail.com; 2008-09-18 at 08:42.

  2. #2
    Regular Contributor
    Join Date
    Feb 2008
    Posts
    269

    Re: Retrieve recent event giving problem...

    Hi all,

    I wait for the reply from anyone. Anyway i had solved the problem. I just used check weather the event ID is same or different. If different then i extract the number.

    With thanks & regards,
    Santu

  3. #3
    Regular Contributor
    Join Date
    Feb 2008
    Posts
    269

    Re: Retrieve recent event giving problem...

    Hi all,

    Now i want to get the event if a message come or send a message. I think sending/receiving sms is also an even so my application should work for sms also, but its not.

    So, please tell what i add to work for sms event also.

    With regards,
    santu

  4. #4
    Registered User
    Join Date
    Dec 2005
    Posts
    1,236

    Re: Retrieve recent event giving problem...

    Hi,

    You could follow this link which has all the answers for the questions you have.http://wiki.forum.nokia.com/index.ph...gory:Messaging
    Regards,
    Sriky

  5. #5
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,335

    Re: Retrieve recent event giving problem...

    Search for the "CLogClient" on Forum Nokia Wiki. It contains what you are looking for.

    Also check my signature. It will help you for sure.
    Nokia Developer Wiki Moderation team

  6. #6
    Regular Contributor
    Join Date
    Feb 2008
    Posts
    269

    Re: Retrieve recent event giving problem...

    Hi kiran,

    How i know that a new sms has come? Can i use CLogClient to read the new sms? I know this can be done using CActive, but my point is how my application notify me that a new sms has arrived as soon as it come.

    With regards,
    Santu

  7. #7
    Regular Contributor
    Join Date
    Feb 2008
    Posts
    269

    Re: Retrieve recent event giving problem...

    Hi all,

    Please reply. How could i do that?

    With regards,
    Santu

  8. #8
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,335

    Re: Retrieve recent event giving problem...

    Quote Originally Posted by santu.paul@gmail.com View Post
    Hi all,

    Please reply. How could i do that?

    With regards,
    Santu
    If you look carefully then the first search hit Logs monitoring Example contains example for monitoring SMS entries.
    Nokia Developer Wiki Moderation team

Similar Threads

  1. Problem with CAknDoubleStyleListBox with a CAknSearchField
    By jjig in forum Symbian User Interface
    Replies: 2
    Last Post: 2009-09-17, 00:58
  2. [Moved] Problem In Video For S60 Series
    By amitsrivastava in forum Mobile Java Media (Graphics & Sounds)
    Replies: 3
    Last Post: 2008-04-18, 12:20
  3. problem facing with screen change event
    By ajitac in forum Symbian C++
    Replies: 0
    Last Post: 2008-02-07, 14:11
  4. One Pointer event Problem
    By robert_lzw in forum Symbian C++
    Replies: 3
    Last Post: 2007-01-24, 07:19
  5. problem with event on receiving SMS
    By Nokia_Archived in forum PC Suite API and PC Connectivity SDK
    Replies: 0
    Last Post: 2002-05-27, 14:52

Posting Permissions

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