×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Jun 2004
    Posts
    103

    very little question about TMsvEntry

    hy i have a very little question here
    can some one give me an idea what is the difference between the TMsvEntry::Id() and TMsvEntry::ServiceId() methods.
    i have tried to check the SDK documentation for these two methods but didnt get enough knowledge ..please give me an idea ....while working with pop3 mtm we use the TMsvEntr::Id() in our CMsvEntrySelection ......this is the poinit that i need to get clear information about .....

    two my knowledge the TMsvEntry::ServiceId() returns the id of service but why do we use ....TMsvEntry::Id instead when we try to dowload using the pop3Mtm as specified in the Nokia Email Example .....

  2. #2
    Registered User
    Join Date
    Jun 2004
    Posts
    103
    WALLAH ..........i was just writing a question to ask from professionals........

    but i get this solved about 50%....i hope i can manage the rest and will do it myself ....well if i dont then would definely come to this place ,reaaly a heaven .

    CHEERS.

  3. #3
    Registered User
    Join Date
    Mar 2005
    Posts
    7

    Nokia POP3_IMAP4_Email_Example ??

    Hi Siemensc55

    I m using nokia POP3_IMAP4_Email_Example . i think u too have gone thru this example. we r displaying a pop up which shows no. of unread msgs till there r unread msgs in the mailbox at regular intervals n its working fine.But when a msg is deleted the next popup shows the same no. of mails as b4 deletion till we dont synchronize again with remote server.
    here is the fn code used for getting count for unread mails

    void CEmailExampleEngine::GetNewMailCountPop3L()
    {
    TMsvId id=NULL;

    iNewMailCount=0;

    CMsvEntry* iMailEntry;
    TMsvId mailId;

    for(TInt i=0; i<iRemoteCount; i++)
    {
    mailId=(*iRemoteEntries)[i];
    iMailEntry=iMsvSession->GetEntryL(mailId);
    TMsvEntry& iEntry=iMailEntry->Entry();
    if(iEntry.Unread())
    iNewMailCount++;
    }
    delete iMailEntry;
    }

    n to solve deletion problem
    we tried this

    for(TInt i=0; i<iRemoteCount; i++)
    {
    mailId=(*iRemoteEntries)[i];
    iMailEntry=iMsvSession->GetEntryL(mailId);
    TMsvEntry& iEntry=iMailEntry->Entry();
    if(!(iEntry.Deleted())
    if(iEntry.Unread())
    iNewMailCount++;
    }

    in above function
    but the problem is not solved
    infact the flag which iEntry.Deleted() returns is false even after a msg is deleted??
    plz correct us where r we wrong
    thanks n rgds

  4. #4
    Registered User
    Join Date
    Jun 2004
    Posts
    103
    what i can say for this moment is you are following the right path ,
    this problem is already solved some where in these forums .try a serach round in forum or SDK .
    GoodLuck ,

  5. #5
    Regular Contributor
    Join Date
    Feb 2005
    Posts
    328
    Firstly, each entry in the message store has a unique id.

    1) TMsvEntry::Id

    returns the unique Id of THIS entry.

    2) TMsvEntry::ServiceId

    returns the associtated service entry. If THIS message is an SMS message, then this would return the SMS service entry id.

    3) TMsvEntry::RelatedId

    returns the 'other' associated service entry. If THIS message is a POP message, then this would return not the POP service id, but the SMTP service entry id.

Posting Permissions

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