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