email/pop3andsmtpmtm/smtpservermtm/inc/csmtpsettings.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 __CSMTPSETTINGS_H__
       
    17 #define __CSMTPSETTINGS_H__
       
    18 
       
    19 #define _MSVAPI_DONT_INCLUDE_FLOGGER_
       
    20 
       
    21 #include <cemailaccounts.h>
       
    22 #include <smtpset.h>
       
    23 
       
    24 class CMsvServerEntry;
       
    25 class CImSmtpMobilitySettings;
       
    26 class CImIAPPreferences;
       
    27 
       
    28 /**
       
    29 USed in calls to SetIapL to indicate that no IAP is set and the default
       
    30 SMTP settings should be used.
       
    31 */
       
    32 const TUint32 KDefaultSettingsIap = -1;
       
    33 
       
    34 /**
       
    35 Stores the settings for the SMTP server MTM
       
    36 */
       
    37 NONSHARABLE_CLASS(CSmtpSettings) : public CBase
       
    38 	{
       
    39 public:
       
    40 	static CSmtpSettings* NewL(const CMsvServerEntry& aServerEntry);
       
    41 	~CSmtpSettings();
       
    42 
       
    43 	void SetIapL(TUint32 aIap);
       
    44 
       
    45 	CImIAPPreferences& IapPrefs();
       
    46 	const TPtrC ServerAddress() const;
       
    47 	TUint Port() const;
       
    48 	TBool SecureSockets() const;
       
    49 	TBool SSLWrapper() const;
       
    50 	TBool BearerMobility() const;
       
    51 	const TPtrC EmailAlias() const;
       
    52 	const TPtrC EmailAddress() const;
       
    53 	const TPtrC ReplyToAddress() const;
       
    54 	const TPtrC ReceiptAddress() const;
       
    55 	TMsgOutboxBodyEncoding BodyEncoding() const;
       
    56 	const TUid DefaultMsgCharSet() const;
       
    57 	TBool AddVCardToEmail() const;
       
    58 	TBool AddSignatureToEmail() const;
       
    59 	TBool RequestReceipts() const;
       
    60 	TImSMTPSendCopyToSelf SendCopyToSelf() const;
       
    61 	TImSMTPSendMessageOption SendMessageOption() const;
       
    62 	const TPtrC8 LoginName() const;
       
    63 	const TPtrC8 Password() const;
       
    64 	TBool SMTPAuth() const;
       
    65 	TBool InboxLoginDetails() const;
       
    66 	TInt ToCcIncludeLimit() const;
       
    67 	TPtrC8 TlsSslDomain() const;
       
    68 	const CImSmtpSettings& SmtpSettings() const;
       
    69 
       
    70 private:
       
    71 	CSmtpSettings(const CMsvServerEntry& aServerEntry);
       
    72 	void ConstructL(const CMsvServerEntry& aServerEntry);
       
    73 
       
    74 private:
       
    75 	CImSmtpSettings* iDefaultSettings;
       
    76 	CImSmtpMobilitySettings* iIapSettings;
       
    77 	CImIAPPreferences* iIapPrefs;
       
    78 
       
    79 	TSmtpAccountId iSmtpAccountId;
       
    80 	};
       
    81 
       
    82 #endif //__CSMTPSETTINGS_H__