×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Apr 2004
    Posts
    11

    received, missed calls

    I'm succeding to get incoming calls with classes CLogRecentView and CLogEvent
    but I failed to know status of each event
    I'm trying to sort them by received and missed calls, but I don't know what I have to use
    help me plz!!

    thanks!
    regards
    Serath

  2. #2
    Regular Contributor
    Join Date
    Feb 2004
    Location
    Phillippines
    Posts
    139
    Try using the Direction() function of the CLogEvent class. It will give you a string of either Missed, Out, or In.

  3. #3
    Registered User
    Join Date
    Apr 2004
    Posts
    11
    humm, it doesn't work well...

    What does the function Direction() exactly return?
    For example, I'm trying to count missed called

    const CLogEvent& event = iView->Event();
    if (event.Direction() == _L("Missed"))
    iCount++;

    but the condition isn't match.
    Another question, I'm trying to count missed calls of the list returning by
    iLogRecentView->SetRecentListL(KLogNullRecentList,iStatus)
    but how can I parse each call event?
    in the SDK, I found that we can moves to the next position in the list, but functions are asynchrounous
    does a simplier method exist to know missed call number?

  4. #4
    Regular Contributor
    Join Date
    Feb 2004
    Location
    Phillippines
    Posts
    139
    Just look atthe Logs in your phone. You'll see a direction field in the details of the Log.
    To the other question. No, don't think so.

  5. #5
    Registered User
    Join Date
    Apr 2004
    Posts
    11
    thanks for your answers.
    I'm succeeding to do what I said using active object.
    But it's not really what I search actually.
    The log giving by CLogViewRecent is not what I want to get really.
    In fact, when someone call, if we don't answer to the call, a pop-up message display "1 missed call".
    Likewise, when a SMS arrive, the pop-up message says "1 new message".
    When we look at the log to know who called and who sent the message, the pop-up don't appeat anymore.
    I'm trying to get the contents of these messages. Can you help me please?

    serath
    regards

  6. #6
    Regular Contributor
    Join Date
    Feb 2004
    Location
    Phillippines
    Posts
    139
    Instead of LogViewRecent try using the CLogViewEvent then just use FirstL to get the most recent event.

  7. #7
    Registered User
    Join Date
    Apr 2004
    Posts
    11
    humm doesn't work...
    strange because I'm using exactly the methods with CLogViewRecent
    I'm only replacing SetRecentListL by FirstL
    but application counts 0 call
    anyone can help me plz?

    serath,
    regards

  8. #8
    Super Contributor
    Join Date
    Feb 2004
    Location
    Dallas
    Posts
    605
    Hi Serath ,
    I m also trying to fetch the missed calls status in my application.

    Can u give me the code to get the missed call status ?

Posting Permissions

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