1.1 --- a/epoc32/include/miutset.h Tue Nov 24 13:55:44 2009 +0000
1.2 +++ b/epoc32/include/miutset.h Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -1,1 +1,92 @@
1.4 -miutset.h
1.5 +// Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
1.6 +// All rights reserved.
1.7 +// This component and the accompanying materials are made available
1.8 +// under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
1.9 +// which accompanies this distribution, and is available
1.10 +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
1.11 +//
1.12 +// Initial Contributors:
1.13 +// Nokia Corporation - initial contribution.
1.14 +//
1.15 +// Contributors:
1.16 +//
1.17 +// Description:
1.18 +//
1.19 +
1.20 +#if !defined (__MIUTSET_H__)
1.21 +#define __MIUTSET_H__
1.22 +
1.23 +
1.24 +
1.25 +#include <msvuids.h>
1.26 +#include <miuthdr.h>
1.27 +
1.28 +const TInt KMaxSettingStringLength = 1024;
1.29 +
1.30 +/** UID of an SMTP message type. */
1.31 +const TUid KUidMsgTypeSMTP = {0x10001028}; // 268439592
1.32 +/** UID of a POP3 message type. */
1.33 +const TUid KUidMsgTypePOP3 = {0x10001029}; // 268439593
1.34 +/** UID of an IMAP4 message type. */
1.35 +const TUid KUidMsgTypeIMAP4 = {0x1000102A}; // 268439594
1.36 +
1.37 +/**
1.38 +@deprecated
1.39 +*/
1.40 +const TUid KUidMsgTypeSMTPServer = {0x10003923}; // 268450083
1.41 +
1.42 +
1.43 +class CImBaseEmailSettings : public CBase
1.44 +/**
1.45 +Parent class for CImPop3Settings, CImImap4Settings, CImSmtpSettings.
1.46 +
1.47 +This class should not be instantiated directly. It implements common email
1.48 +settings such as the hostname or IP address of the server, port number,
1.49 +and whether or not to use SSL.
1.50 +
1.51 +@see CImPop3Settings
1.52 +@see CImImap4Settings
1.53 +@see CImSmtpSettings
1.54 +
1.55 +@publishedAll
1.56 +@released
1.57 +*/
1.58 + {
1.59 +public:
1.60 + IMPORT_C CImBaseEmailSettings();
1.61 + IMPORT_C virtual ~CImBaseEmailSettings();
1.62 + IMPORT_C void Reset();
1.63 + IMPORT_C const TPtrC ServerAddress() const;
1.64 + IMPORT_C void SetServerAddressL(const TDesC& aServerAddress);
1.65 + IMPORT_C TUint Port() const;
1.66 + IMPORT_C void SetPort(const TUint aPortNumber);
1.67 + IMPORT_C TBool SecureSockets() const;
1.68 + IMPORT_C void SetSecureSockets(TBool aFlag);
1.69 + IMPORT_C TBool SSLWrapper() const;
1.70 + IMPORT_C void SetSSLWrapper(TBool aFlag);
1.71 + IMPORT_C CImBaseEmailSettings& CopyL(const CImBaseEmailSettings& aCImBaseEmailSettings);
1.72 + IMPORT_C TBool operator==(const CImBaseEmailSettings& aCImBaseEmailSettings) const;
1.73 + IMPORT_C void SetBearerMobility(TBool aFlag);
1.74 + IMPORT_C TBool BearerMobility() const;
1.75 +
1.76 + TUint32 SettingsFlags() const;
1.77 + void SetSettingsFlags(TUint32 aSetFlags);
1.78 +
1.79 +protected:
1.80 + enum TImBaseEmailSettings
1.81 + {
1.82 + EBaseEmailSettingsClearFlag = 0x00000000,
1.83 + EBaseEmailSettingsSecureSockets = 0x00000001,
1.84 + EBaseEmailSettingsSSLWrappedSockets = EBaseEmailSettingsSecureSockets << 1, //0x00000002,
1.85 + EBaseEmailSettingsLastUsedFlag = EBaseEmailSettingsSSLWrappedSockets, //0x00000002
1.86 + EBaseEmailSettingsBearerMobFlag = 0x80000000
1.87 + };
1.88 + TUint32 iPortNumber; // the port the TCP/IP connection be made on
1.89 +
1.90 + TUint32 iFlags; // space for flags info (now and for future)
1.91 +
1.92 +private:
1.93 + HBufC* iServerAddress; // remote server's IP address
1.94 + };
1.95 +
1.96 +#endif