Attempt to represent the S^2->S^3 header reorganisation as a series of "hg rename" operations
1 // Copyright (c) 2005-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 the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 #ifndef __CMMSSETTINGS_H__
17 #define __CMMSSETTINGS_H__
27 Automatic Download Options.
32 enum TAutomaticDownloadOptions
34 /** Automatic Download Option Off */
35 EAutomaticDownloadOff = 0,
36 /** Automatic Download Option On */
38 /** Automatic Download Only When Roaming */
39 EAutomaticDownloadOnlyWhenRoaming
44 Creation Mode Options.
51 /** Creation Mode Free */
52 ECreationModeFree = 0,
53 /** Creation Mode Warning */
55 /** Creation Mode Restricted */
56 ECreationModeRestricted
61 Run-time MMS configuration settings.
63 Messaging clients should use an instance of this class to specify
64 and retrieve configuration settings.
66 This class should be used with CMmsAccounts to store and restore settings.
73 class CMmsSettings : public CBase
76 IMPORT_C static CMmsSettings* NewL( );
77 IMPORT_C static CMmsSettings* NewLC( );
78 IMPORT_C ~CMmsSettings( );
79 IMPORT_C void CopyL(const CMmsSettings& aMmsSettings);
81 IMPORT_C TInt ApplicationID( ) const;
82 IMPORT_C void SetApplicationID(const TInt aAppID);
84 IMPORT_C TPtrC Address( ) const;
85 IMPORT_C void SetAddressL(const TDesC& aAddress);
87 IMPORT_C TCreationMode CreationMode( ) const;
88 IMPORT_C void SetCreationModeL(TCreationMode aCreationMode);
90 IMPORT_C TInt ProxyCount( ) const;
91 IMPORT_C TUid GetProxy(TInt aIndex) const;
92 IMPORT_C void AddProxyL(const TUid aProxy);
93 IMPORT_C void RemoveProxy(TInt aIndex);
95 IMPORT_C TInt NapIdCount( ) const;
96 IMPORT_C TUid GetNapId (TInt aIndex) const;
97 IMPORT_C void AddNapIdL(const TUid aNapId);
98 IMPORT_C void RemoveNapId(TInt aIndex);
100 IMPORT_C TBool DisplayNotification( ) const;
101 IMPORT_C void SetDisplayNotification(TBool aFlag);
103 IMPORT_C TAutomaticDownloadOptions AutomaticDownload( ) const;
104 IMPORT_C void SetAutomaticDownload(TAutomaticDownloadOptions aDownloadOptions);
106 IMPORT_C TBool CreationModeReadOnly( ) const;
107 IMPORT_C void SetCreationModeReadOnly(TBool aFlag);
109 IMPORT_C TInt ValidityPeriod( ) const;
110 IMPORT_C void SetValidityPeriod(const TInt aValidityPeriod);
112 IMPORT_C TInt MaxDownloadSize( ) const;
113 IMPORT_C void SetMaxDownloadSize (const TInt aSize);
115 IMPORT_C TBool Priority( ) const;
116 IMPORT_C void SetPriority (TBool aFlag);
118 IMPORT_C TBool HideNumber( ) const;
119 IMPORT_C void SetHideNumber(TBool aFlag);
121 IMPORT_C TBool ReadReport( ) const;
122 IMPORT_C void SetReadReport(TBool aFlag);
124 IMPORT_C TBool DeliveryReport( ) const;
125 IMPORT_C void SetDeliveryReport(TBool aFlag);
127 IMPORT_C TBool ReplyWithHistory( ) const;
128 IMPORT_C void SetReplyWithHistory (TBool aFlag);
130 IMPORT_C TBool AllowDeliveryNotification( ) const;
131 IMPORT_C void SetAllowDeliveryNotification(TBool aFlag);
133 IMPORT_C TBool FilterAdvertisements( ) const;
134 IMPORT_C void SetFilterAdvertisements(TBool aFlag);
136 IMPORT_C TInt MaxDownloadRetries( ) const;
137 IMPORT_C void SetMaxDownloadRetries(const TInt aRetries);
139 IMPORT_C TInt DownloadRetryInterval( ) const;
140 IMPORT_C void SetDownloadRetryInterval(const TInt aInterval);
142 IMPORT_C TInt MaxSendMsgSize( ) const;
143 IMPORT_C void SetMaxSendMsgSize (const TInt aSize);
145 IMPORT_C TBool FullScreenPreview( ) const;
146 IMPORT_C void SetFullScreenPreview(TBool aFlag);
148 IMPORT_C TInt DeviceContentClass( ) const;
149 IMPORT_C void SetDeviceContentClass(const TInt aClass);
151 IMPORT_C TInt MaxImageHeight( ) const;
152 IMPORT_C void SetMaxImageHeight(const TInt aHeight);
154 IMPORT_C TInt MaxImageWidth( ) const;
155 IMPORT_C void SetMaxImageWidth(const TInt aWidth);
157 void RemoveAllProxies();
158 void RemoveAllNapIds();
160 TUint32 MmsSettingsFlags() const;
161 void SetMmsSettingsFlags(TUint32 aFlags);
166 enum TMmsSettingsFlags
168 ESmsSettingsNoFlags = 0x00000000,
169 ESmsSettingsDisplayNotification = 0x00000002,
170 ESmsSettingsCreationModeReadOnly = 0x00000004,
171 ESmsSettingsPriority = 0x00000008,
172 ESmsSettingsHideNumber = 0x00000010,
173 ESmsSettingsReadReport = 0x00000020,
174 ESmsSettingsDeliveryReport = 0x00000040,
175 ESmsSettingsReplyWithHistory = 0x00000080,
176 ESmsSettingsAllowDeliveryNotification = 0x00000100,
177 ESmsSettingsFilterAdvertisements = 0x00000200,
178 ESmsSettingsFullScreenPreview = 0x00000400
183 TUint32 iMmsSettingsFlags;
186 TCreationMode iCreationMode;
189 TAutomaticDownloadOptions iAutomaticDownloadOptions;
190 TInt iValidityPeriod;
191 TInt iMaxDownloadSize;
192 TInt iMaxDownloadRetries;
193 TInt iDownloadRetryInterval;
194 TInt iMaxSendMsgSize;
195 TInt iDeviceContentClass;
196 TInt iMaxImageHeight;
200 #endif // __CSMSACCOUNT_H__