1.1 --- a/epoc32/include/cmmssettings.h Tue Mar 16 16:12:26 2010 +0000
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,200 +0,0 @@
1.4 -// Copyright (c) 2005-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 -#ifndef __CMMSSETTINGS_H__
1.20 -#define __CMMSSETTINGS_H__
1.21 -
1.22 -
1.23 -#include <e32base.h>
1.24 -
1.25 -
1.26 -class CRepository;
1.27 -
1.28 -
1.29 -/**
1.30 -Automatic Download Options.
1.31 -
1.32 -@publishedAll
1.33 -@released
1.34 -*/
1.35 -enum TAutomaticDownloadOptions
1.36 - {
1.37 - /** Automatic Download Option Off */
1.38 - EAutomaticDownloadOff = 0,
1.39 - /** Automatic Download Option On */
1.40 - EAutomaticDownloadOn,
1.41 - /** Automatic Download Only When Roaming */
1.42 - EAutomaticDownloadOnlyWhenRoaming
1.43 - };
1.44 -
1.45 -
1.46 -/**
1.47 -Creation Mode Options.
1.48 -
1.49 -@publishedAll
1.50 -@released
1.51 -*/
1.52 -enum TCreationMode
1.53 - {
1.54 - /** Creation Mode Free */
1.55 - ECreationModeFree = 0,
1.56 - /** Creation Mode Warning */
1.57 - ECreationModeWarning,
1.58 - /** Creation Mode Restricted */
1.59 - ECreationModeRestricted
1.60 - };
1.61 -
1.62 -
1.63 -/**
1.64 -Run-time MMS configuration settings.
1.65 -
1.66 -Messaging clients should use an instance of this class to specify
1.67 -and retrieve configuration settings.
1.68 -
1.69 -This class should be used with CMmsAccounts to store and restore settings.
1.70 -
1.71 -@see CMmsAccounts
1.72 -
1.73 -@publishedAll
1.74 -@released
1.75 -*/
1.76 -class CMmsSettings : public CBase
1.77 - {
1.78 -public:
1.79 - IMPORT_C static CMmsSettings* NewL( );
1.80 - IMPORT_C static CMmsSettings* NewLC( );
1.81 - IMPORT_C ~CMmsSettings( );
1.82 - IMPORT_C void CopyL(const CMmsSettings& aMmsSettings);
1.83 -
1.84 - IMPORT_C TInt ApplicationID( ) const;
1.85 - IMPORT_C void SetApplicationID(const TInt aAppID);
1.86 -
1.87 - IMPORT_C TPtrC Address( ) const;
1.88 - IMPORT_C void SetAddressL(const TDesC& aAddress);
1.89 -
1.90 - IMPORT_C TCreationMode CreationMode( ) const;
1.91 - IMPORT_C void SetCreationModeL(TCreationMode aCreationMode);
1.92 -
1.93 - IMPORT_C TInt ProxyCount( ) const;
1.94 - IMPORT_C TUid GetProxy(TInt aIndex) const;
1.95 - IMPORT_C void AddProxyL(const TUid aProxy);
1.96 - IMPORT_C void RemoveProxy(TInt aIndex);
1.97 -
1.98 - IMPORT_C TInt NapIdCount( ) const;
1.99 - IMPORT_C TUid GetNapId (TInt aIndex) const;
1.100 - IMPORT_C void AddNapIdL(const TUid aNapId);
1.101 - IMPORT_C void RemoveNapId(TInt aIndex);
1.102 -
1.103 - IMPORT_C TBool DisplayNotification( ) const;
1.104 - IMPORT_C void SetDisplayNotification(TBool aFlag);
1.105 -
1.106 - IMPORT_C TAutomaticDownloadOptions AutomaticDownload( ) const;
1.107 - IMPORT_C void SetAutomaticDownload(TAutomaticDownloadOptions aDownloadOptions);
1.108 -
1.109 - IMPORT_C TBool CreationModeReadOnly( ) const;
1.110 - IMPORT_C void SetCreationModeReadOnly(TBool aFlag);
1.111 -
1.112 - IMPORT_C TInt ValidityPeriod( ) const;
1.113 - IMPORT_C void SetValidityPeriod(const TInt aValidityPeriod);
1.114 -
1.115 - IMPORT_C TInt MaxDownloadSize( ) const;
1.116 - IMPORT_C void SetMaxDownloadSize (const TInt aSize);
1.117 -
1.118 - IMPORT_C TBool Priority( ) const;
1.119 - IMPORT_C void SetPriority (TBool aFlag);
1.120 -
1.121 - IMPORT_C TBool HideNumber( ) const;
1.122 - IMPORT_C void SetHideNumber(TBool aFlag);
1.123 -
1.124 - IMPORT_C TBool ReadReport( ) const;
1.125 - IMPORT_C void SetReadReport(TBool aFlag);
1.126 -
1.127 - IMPORT_C TBool DeliveryReport( ) const;
1.128 - IMPORT_C void SetDeliveryReport(TBool aFlag);
1.129 -
1.130 - IMPORT_C TBool ReplyWithHistory( ) const;
1.131 - IMPORT_C void SetReplyWithHistory (TBool aFlag);
1.132 -
1.133 - IMPORT_C TBool AllowDeliveryNotification( ) const;
1.134 - IMPORT_C void SetAllowDeliveryNotification(TBool aFlag);
1.135 -
1.136 - IMPORT_C TBool FilterAdvertisements( ) const;
1.137 - IMPORT_C void SetFilterAdvertisements(TBool aFlag);
1.138 -
1.139 - IMPORT_C TInt MaxDownloadRetries( ) const;
1.140 - IMPORT_C void SetMaxDownloadRetries(const TInt aRetries);
1.141 -
1.142 - IMPORT_C TInt DownloadRetryInterval( ) const;
1.143 - IMPORT_C void SetDownloadRetryInterval(const TInt aInterval);
1.144 -
1.145 - IMPORT_C TInt MaxSendMsgSize( ) const;
1.146 - IMPORT_C void SetMaxSendMsgSize (const TInt aSize);
1.147 -
1.148 - IMPORT_C TBool FullScreenPreview( ) const;
1.149 - IMPORT_C void SetFullScreenPreview(TBool aFlag);
1.150 -
1.151 - IMPORT_C TInt DeviceContentClass( ) const;
1.152 - IMPORT_C void SetDeviceContentClass(const TInt aClass);
1.153 -
1.154 - IMPORT_C TInt MaxImageHeight( ) const;
1.155 - IMPORT_C void SetMaxImageHeight(const TInt aHeight);
1.156 -
1.157 - IMPORT_C TInt MaxImageWidth( ) const;
1.158 - IMPORT_C void SetMaxImageWidth(const TInt aWidth);
1.159 -
1.160 - void RemoveAllProxies();
1.161 - void RemoveAllNapIds();
1.162 -
1.163 - TUint32 MmsSettingsFlags() const;
1.164 - void SetMmsSettingsFlags(TUint32 aFlags);
1.165 -
1.166 -private:
1.167 - CMmsSettings();
1.168 -
1.169 - enum TMmsSettingsFlags
1.170 - {
1.171 - ESmsSettingsNoFlags = 0x00000000,
1.172 - ESmsSettingsDisplayNotification = 0x00000002,
1.173 - ESmsSettingsCreationModeReadOnly = 0x00000004,
1.174 - ESmsSettingsPriority = 0x00000008,
1.175 - ESmsSettingsHideNumber = 0x00000010,
1.176 - ESmsSettingsReadReport = 0x00000020,
1.177 - ESmsSettingsDeliveryReport = 0x00000040,
1.178 - ESmsSettingsReplyWithHistory = 0x00000080,
1.179 - ESmsSettingsAllowDeliveryNotification = 0x00000100,
1.180 - ESmsSettingsFilterAdvertisements = 0x00000200,
1.181 - ESmsSettingsFullScreenPreview = 0x00000400
1.182 - };
1.183 -
1.184 -private:
1.185 -
1.186 - TUint32 iMmsSettingsFlags;
1.187 - TInt iApplicationId;
1.188 - HBufC* iAddress;
1.189 - TCreationMode iCreationMode;
1.190 - RArray<TUid> iProxy;
1.191 - RArray<TUid> iNapId;
1.192 - TAutomaticDownloadOptions iAutomaticDownloadOptions;
1.193 - TInt iValidityPeriod;
1.194 - TInt iMaxDownloadSize;
1.195 - TInt iMaxDownloadRetries;
1.196 - TInt iDownloadRetryInterval;
1.197 - TInt iMaxSendMsgSize;
1.198 - TInt iDeviceContentClass;
1.199 - TInt iMaxImageHeight;
1.200 - TInt iMaxImageWidth;
1.201 - };
1.202 -
1.203 -#endif // __CSMSACCOUNT_H__