×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Nov 2008
    Location
    Australia
    Posts
    88

    Updating Email IAP settings problem

    Can someone help me understand why I am unable to get the following code to compile?

    I am trying to update the IAP settings on an existing SMTP account. Here is the code

    Code:
    Declared in .h file
    
    #include <cemailaccounts.h> // link against imcm.lib
    
    CEmailAccounts* 	EmailAccount;
    TImapAccount 		ImapAccount;
    TSmtpAccount 		SmtpAccount; 
    
    Declared in .cpp file
    
    TImIAPChoice apChoice;
    apChoice.iIAP = MyDevice().IapIdSelected; 
    apChoice.iDialogPref = ECommDbDialogPrefDoNotPrompt;
    				
    CImIAPPreferences* apPrefs = CImIAPPreferences::NewLC();
    apPrefs->AddIAPL( apChoice );
    
    //IMPORT_C void SaveImapIapSettingsL(const TImapAccount& aAccount, const CImIAPPreferences& aIAP);
    
    EmailAccount->SaveImapIapSettingsL(ImapAccount, apPrefs);
    EmailAccount->SaveSmtpIapSettingsL(SmtpAccount, apPrefs);
    
    CleanupStack::PopAndDestroy( apPrefs );
    The error I get is

    error: no matching function for call to `CEmailAccounts::SaveImapIapSettingsL(TImapAccount&, CImIAPPreferences*&)'
    error: no matching function for call to `CEmailAccounts::SaveSmtpIapSettingsL(TSmtpAccount&, CImIAPPreferences*&)'

    Why is this so? What am I missing?

    Thanks for the help.
    David4x

  2. #2
    Registered User
    Join Date
    Nov 2008
    Location
    Australia
    Posts
    88

    Re: Updating Email IAP settings problem

    Don't worry - just figured it out. Code should be

    EmailAccount->SaveImapIapSettingsL(ImapAccount, *apPrefs);
    EmailAccount->SaveSmtpIapSettingsL(SmtpAccount, *apPrefs);
    David4x

Similar Threads

  1. Problem with HTTP POST and certain IAP
    By nvuorio in forum Symbian Networking & Messaging (Closed)
    Replies: 5
    Last Post: 2008-07-04, 11:12
  2. Internet and Email Settings to Nokia 9500
    By hugoBatista in forum OMA DM/DS/CP
    Replies: 0
    Last Post: 2005-05-23, 18:20
  3. IAP settings
    By plmanikandan in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2005-04-07, 08:23
  4. EMail with Attactment problem
    By Nokia_Archive in forum Symbian
    Replies: 0
    Last Post: 2002-06-03, 02:45

Posting Permissions

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