×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Oct 2003
    Location
    Italy
    Posts
    8

    POP3 account settings

    I'm trying to create a simple application to create/modify POP3 accounts in a Symbian device.
    The following code should return (with variable ret) the login name of an account, given the id (aId) of the related entry.

    <---------------BEGIN CODE-------------------->
    CClientMtmRegistry* iMtmReg = CClientMtmRegistry::NewL(*iMsvSession);
    CleanupStack::PushL(iMtmReg);

    CPop3ClientMtm* newMtm = static_cast<CPop3ClientMtm*>(iMtmReg->NewMtmL(KUidMsgTypePOP3));
    CleanupStack::PushL(newMtm);

    CMsvEntry* entry = iMsvSession->GetEntryL(aId);
    CleanupStack::PushL(entry);

    newMtm->SetCurrentEntryL(entry);

    newMtm->RestoreSettingsL();

    CImPop3Settings const& temp = newMtm->Settings();

    const TPtrC8 ret = temp.LoginName();

    CleanupStack::PopAndDestroy(entry);
    CleanupStack::Pop(newMtm);
    CleanupStack::PopAndDestroy(iMtmReg);
    <------------------END CODE----------------->

    When RestoreSettingsL is called the program panics with USER 8.
    Does anyone know the reason?

    Thank you

  2. #2
    Registered User
    Join Date
    Oct 2004
    Posts
    11

    how to get entry id?

    How to get the value of aid in the above sample code?

    I create a new mailbox from my emulator without any coding then i try to retrieve the values , how can i get the entry id?
    I did the same for sms & mms but there entry id was not required, how to do this?



    Thanx in advance.

Posting Permissions

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