email/pop3andsmtpmtm/clientmtms/inc/ssmtpset.h
changeset 0 72b543305e3a
equal deleted inserted replaced
-1:000000000000 0:72b543305e3a
       
     1 // Copyright (c) 1998-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 #if !defined (__SSMTPSET_H__)
       
    17 #define __SSMTPSET_H__
       
    18 
       
    19 #if !defined (__MSVUIDS_H__)
       
    20 #include <MSVUIDS.H>
       
    21 #endif
       
    22 
       
    23 #include <miutset.h>
       
    24 
       
    25 class CMsvStore;
       
    26 class RMsvWriteStream;
       
    27 class RMsvReadStream;
       
    28 
       
    29 
       
    30 const TUint16 KImSmtpServerSettingsVersion = 2;	// identify which version of this class has been stored
       
    31 const TUint32 KSSMTPDefaultPortNumber = 25;
       
    32 
       
    33 class TSSmtpProgress
       
    34 /**
       
    35 @internalComponent
       
    36 @deprecated
       
    37 */
       
    38 	{
       
    39 public:
       
    40 	enum TSSmtpProgressType {
       
    41 		EStarting,
       
    42 		EListening,
       
    43 		EAccepting,
       
    44 		EAuthorising,
       
    45 		EReceiving,
       
    46 		EDisconnecting,
       
    47 		EDisconnected,
       
    48 		ESSmtpMaxProgressValue=EDisconnected
       
    49 		};
       
    50 
       
    51 	TSSmtpProgressType	iSmtpProgress;
       
    52 	TInt				iNoBytesReceived;
       
    53 	TInt				iTotalMsgs;
       
    54 	TInt				iErrorCode; // client side needs to be informed of an error
       
    55 	};
       
    56 
       
    57 class CImSSmtpSettings : public CImBaseEmailSettings
       
    58 /**
       
    59 @internalComponent
       
    60 @deprecated
       
    61 */
       
    62 	{
       
    63 public:
       
    64 	IMPORT_C CImSSmtpSettings();
       
    65 	IMPORT_C ~CImSSmtpSettings();
       
    66 	IMPORT_C void Reset();
       
    67 
       
    68 	// streaming operations
       
    69 	IMPORT_C void InternalizeL( RMsvReadStream&  );
       
    70 	IMPORT_C void ExternalizeL( RMsvWriteStream& ) const;
       
    71 	IMPORT_C void RestoreL( CMsvStore& aMessageStore );
       
    72 	IMPORT_C void StoreL  ( CMsvStore& aMessageStore ) const;
       
    73 
       
    74 	// EmailAddress
       
    75 	IMPORT_C const TPtrC EmailAddress() const;
       
    76 	IMPORT_C void SetEmailAddressL( const TDesC& );
       
    77 
       
    78 	// PhoneNumber
       
    79 	IMPORT_C const TPtrC PhoneNumber() const;
       
    80 	IMPORT_C void SetPhoneNumberL( const TDesC& );
       
    81 
       
    82 	IMPORT_C CImSSmtpSettings& CopyL(const CImSSmtpSettings& aCImSSmtpSettings);
       
    83 	IMPORT_C TBool operator==(const CImSSmtpSettings& aCImSSmtpSettings) const;
       
    84 
       
    85 private:
       
    86 	HBufC*					iEmailAddress;  // local device user Email Address
       
    87 	HBufC*					iPhoneNumber;   // local Phone Number
       
    88 	};
       
    89 
       
    90 #endif
       
    91