email/pop3andsmtpmtm/clientmtms/inc/cimsmtpmobilitysettings.h
changeset 0 72b543305e3a
equal deleted inserted replaced
-1:000000000000 0:72b543305e3a
       
     1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef __CIMSMTPMOBILITYSETTINGS_H__
       
    17 #define __CIMSMTPMOBILITYSETTINGS_H__
       
    18 
       
    19 #include <e32base.h>
       
    20 
       
    21 class CImSmtpSettings;
       
    22 
       
    23 /**
       
    24 Configuration settings for an SMTP mobility account
       
    25 
       
    26 A SMTP mobility account allows different send settings to be used by SMTP
       
    27 accounts depending on what access point is being used by the SMTP connection.
       
    28 When a connection is made for a SMTP account, its associated list of SMTP
       
    29 mobility accounts is examined to see which, if any, is linked to the bearer
       
    30 that will be used for the connection. If one is found, then the settings for
       
    31 the SMTP mobility account are used for the connection and subsequent email
       
    32 sending in preference to the settings for the SMTP account.
       
    33 
       
    34 @publishedPartner
       
    35 @released
       
    36 */
       
    37 class CImSmtpMobilitySettings : public CBase
       
    38 	{
       
    39 public:
       
    40 	IMPORT_C static CImSmtpMobilitySettings* NewL();
       
    41 	IMPORT_C static CImSmtpMobilitySettings* NewLC();
       
    42 	~CImSmtpMobilitySettings();
       
    43 
       
    44 	IMPORT_C CImSmtpMobilitySettings* CopyL();
       
    45 	IMPORT_C CImSmtpMobilitySettings* CopyLC();
       
    46 	IMPORT_C void Reset();
       
    47 	IMPORT_C const TPtrC ServerAddress() const;
       
    48 	IMPORT_C void SetServerAddressL(const TDesC& aServerAddress);
       
    49 	IMPORT_C TUint Port() const;
       
    50 	IMPORT_C void SetPort(const TUint aPortNumber);
       
    51 	IMPORT_C TBool SecureSockets() const;
       
    52 	IMPORT_C void SetSecureSockets(TBool aFlag);
       
    53 	IMPORT_C TBool SSLWrapper() const;
       
    54 	IMPORT_C void SetSSLWrapper(TBool aFlag);
       
    55 	IMPORT_C const TPtrC EmailAlias() const;
       
    56 	IMPORT_C void SetEmailAliasL(const TDesC& aEmailAlias);
       
    57 	IMPORT_C const TPtrC EmailAddress() const;
       
    58 	IMPORT_C void SetEmailAddressL(const TDesC& aEmailAddress);
       
    59 	IMPORT_C const TUid DefaultMsgCharSet() const;
       
    60 	IMPORT_C void SetDefaultMsgCharSet(TUid aDefaultMsgCharSet);
       
    61 	IMPORT_C const TPtrC8 LoginName() const;
       
    62 	IMPORT_C void SetLoginNameL(const TDesC8& aLoginName);
       
    63 	IMPORT_C const TPtrC8 Password() const;
       
    64 	IMPORT_C void SetPasswordL(const TDesC8& aPassword);
       
    65 	IMPORT_C TBool SMTPAuth() const;
       
    66 	IMPORT_C void SetSMTPAuth(TBool aFlag);
       
    67 	IMPORT_C void SetTlsSslDomainL(const TDesC8& aFolderPath);
       
    68 	IMPORT_C TPtrC8 TlsSslDomain() const;
       
    69 
       
    70 	void SetSmtpSettings(CImSmtpSettings* aSettings);
       
    71 	CImSmtpSettings& SmtpSettings() const;
       
    72 
       
    73 private:
       
    74 	CImSmtpMobilitySettings();
       
    75 	void ConstructL();
       
    76 
       
    77 private:
       
    78 	CImSmtpSettings* iSmtpSettings;
       
    79 	};
       
    80 
       
    81 #endif //__CIMSMTPMOBILITYSETTINGS_H__