Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor s_mehdi76's Avatar
    Join Date
    Apr 2008
    Posts
    76
    Hi guys
    well i have developed an application that return the number of call entries of each missed/dialed/received. when i call delete history, it delete all call and return total calls deleted. but the case is that if i got three times miss call from a same number, it return me 1 when ask for number of calls but it return 3 when i delete that call. can some one help me why it is not counting duplicate calls on simple traversing.

    code is as below

    Thanx in advance.

    void CCallLogReader :: RunL()
    {
    if( iStatus != KErrCancel )
    switch( iState )
    {
    case EWaitingChange: // new event
    GetLatestL();
    break;

    case EReadingLog: // start reading log events from last to first
    if( iRecentLogView->CountL() > 0 )
    {
    iState = EReadingLogItems;
    if( iRecentLogView->LastL( iStatus ) ) // to last event
    {
    SetActive();
    }
    else
    {
    ReadPreviousL();
    }
    }
    else
    {
    ReadPreviousL();
    }
    break;

    case EReadingLogItems: // reading event
    if( iStatus == KErrNone && iRecentLogView )
    {

    if(iIsDelete)
    {
    iCount++;
    iState = EReadingLog;
    iLogClient->DeleteEvent(iRecentLogView->Event().Id(), iStatus);
    SetActive();
    }
    else
    {

    iState = EFindingDuplicates;
    if (iRecentLogView->DuplicatesL(*iDuplicateView, iStatus))
    {
    SetActive();
    }
    else
    {
    iCount++;
    if( iRecentLogView->PreviousL( iStatus ) ) // to last event
    {
    iState = EReadingLogItems;
    SetActive();
    }
    else
    {
    ReadPreviousL();
    }
    }
    }
    }

    break;

    case EFindingDuplicates:
    if( iStatus == KErrNone && iRecentLogView && iDuplicateView && iDuplicateView->CountL() > 0 )
    {
    iState = EReadingDupeItems;
    if( iDuplicateView->LastL( iStatus ) ) // to last event
    {
    SetActive();
    }
    else
    {
    iCount++;
    iStatus = EReadingLogItems;
    if( iRecentLogView->PreviousL( iStatus ) ) // to last event
    {
    SetActive();
    }
    else
    {
    ReadPreviousL();
    }
    }
    }
    break;

    case EReadingDupeItems:
    if( iStatus == KErrNone && iDuplicateView )
    {
    iDupeCount++;
    if( iDuplicateView->PreviousL( iStatus ) ) // try to read prev. event
    {
    iCount++;
    SetActive();
    }
    else
    {
    iCount++;
    iStatus = EReadingLogItems;
    if( iRecentLogView->PreviousL( iStatus ) ) // to last event
    {
    SetActive();
    }
    else
    {
    ReadPreviousL();
    }
    }
    }
    break;

    default:

    break;
    }
    }


    void CCallLogReader :: ReadPreviousL()
    {
    if(iRequestID == 1)
    {
    iNoOfIncomingCalls = iCount;
    StartL();
    }
    else if(iRequestID == 2)
    {
    iNoOfOutgoingCalls = iCount;
    StartL();
    }
    else if(iRequestID == 3)
    {
    iNoOfMissCalls = iCount;
    iRequestID = 4;
    StartL();
    }

    }

    void CCallLogReader :: GetLatestL()
    {
    iState = EReadingLog;
    iRecentLogView->Cancel();
    if( iRecentLogView->SetRecentListL( iTLogRecentList, iStatus ) )
    {
    SetActive();
    }
    else
    {
    StartL();
    }
    }
    Thanx a lot

    With Best Regards

  2. #2
    Regular Contributor keerthi.ck06's Avatar
    Join Date
    Dec 2008
    Location
    Bangalore
    Posts
    174
    hi friends,

    i'm also facing the same problem if anybody knows the solution please help me..

Similar Threads

  1. Rcall::Dial (Asynchronous call)
    By aldrin_rave in forum Symbian C++
    Replies: 5
    Last Post: 2010-05-21, 13:51
  2. Nokia NFC: automatic number call
    By hyposommnie in forum Near Field Communication
    Replies: 6
    Last Post: 2008-10-28, 10:54
  3. Retrieving incoming data call number in S60 3rd
    By synov in forum Symbian Networking & Messaging (Closed)
    Replies: 4
    Last Post: 2008-09-05, 13:43
  4. How to find if the incoming call is national or international..?
    By iam913082 in forum Symbian Networking & Messaging (Closed)
    Replies: 5
    Last Post: 2008-03-14, 14:12
  5. where is find serial number in forum.nokia.com
    By wangzpol in forum Mobile Java Tools & SDKs
    Replies: 0
    Last Post: 2003-06-27, 08:14

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved