equal
deleted
inserted
replaced
1 // Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
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 |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 // |
7 // |
8 // Initial Contributors: |
8 // Initial Contributors: |
9 // Nokia Corporation - initial contribution. |
9 // Nokia Corporation - initial contribution. |
10 // |
10 // |
11 // Contributors: |
11 // Contributors: |
12 // |
12 // |
13 // Description: |
13 // Description: |
|
14 // SMUTSET.H |
14 // |
15 // |
15 |
16 /** |
|
17 * @file |
|
18 * @publishedAll |
|
19 * @released |
|
20 */ |
16 #ifndef __SMUTSET_H__ |
21 #ifndef __SMUTSET_H__ |
17 #define __SMUTSET_H__ |
22 #define __SMUTSET_H__ |
18 |
|
19 |
|
20 |
|
21 |
23 |
22 #include <gsmumsg.h> |
24 #include <gsmumsg.h> |
23 #include <msvrcpt.h> |
25 #include <msvrcpt.h> |
24 #include <msvstore.h> |
26 #include <msvstore.h> |
25 #include <logwrap.h> |
27 #include <logwrap.h> |
174 Defines the flags and masks for some of the message settings. |
176 Defines the flags and masks for some of the message settings. |
175 |
177 |
176 The settings classes CSmsMessageSettings and CSmsSettings use these flags to |
178 The settings classes CSmsMessageSettings and CSmsSettings use these flags to |
177 store the specified information. |
179 store the specified information. |
178 |
180 |
179 @internalComponent |
181 @publishedAll |
180 @released |
182 @released |
181 */ |
183 */ |
182 enum TSmsSettingsFlags |
184 enum TSmsSettingsFlags |
183 { |
185 { |
184 /** |
186 /** |
185 Mask that resets the flags. |
187 Mask that resets the flags. |
186 */ |
188 */ |
187 ESmsSettingsNoFlags =0, |
189 ESmsSettingsNoFlags =0x00000000, |
188 /** |
190 /** |
189 Flag that indicates if messages can be concatenated. |
191 Flag that indicates if messages can be concatenated. |
190 |
192 |
191 If true, the UI should pass a long message in one piece to the MTM. If false, |
193 If true, the UI should pass a long message in one piece to the MTM. If false, |
192 it should split the message manually into 140 byte parts. The value of this |
194 it should split the message manually into 140 byte parts. The value of this |
230 Flag that indicates that the service center time stamp should be used for the date |
232 Flag that indicates that the service center time stamp should be used for the date |
231 field in any TMsvEntry that corresponds to a SMS message. |
233 field in any TMsvEntry that corresponds to a SMS message. |
232 */ |
234 */ |
233 ESmsSettingsUseServiceCenterTimeStamp =0x00000080, |
235 ESmsSettingsUseServiceCenterTimeStamp =0x00000080, |
234 /** |
236 /** |
|
237 Flag that indicates if message received from unknown port, |
|
238 discard the message without indicating the user. |
|
239 */ |
|
240 ESmsSettingsDiscardUnknownPortMsgs =0x00000100, |
|
241 /** |
235 Mask for the set of flags defined. |
242 Mask for the set of flags defined. |
236 */ |
243 */ |
237 ESmsSettingsMask =0x000000FF, |
244 ESmsSettingsMask =0x000000FF, |
238 }; |
245 }; |
239 |
246 |
428 SMS-SUBMIT type. |
435 SMS-SUBMIT type. |
429 |
436 |
430 @publishedAll |
437 @publishedAll |
431 @released |
438 @released |
432 */ |
439 */ |
433 class CSmsMessageSettings : public CBase |
440 NONSHARABLE_CLASS(CSmsMessageSettings): public CBase |
434 { |
441 { |
435 public: |
442 public: |
436 IMPORT_C virtual void InternalizeL(RReadStream& aReadStream); |
443 IMPORT_C virtual void InternalizeL(RReadStream& aReadStream); |
437 IMPORT_C virtual void ExternalizeL(RWriteStream& aWriteStream) const; |
444 IMPORT_C virtual void ExternalizeL(RWriteStream& aWriteStream) const; |
438 |
445 |
495 numbers. The default Service Centre is defined from this set. |
502 numbers. The default Service Centre is defined from this set. |
496 |
503 |
497 @publishedAll |
504 @publishedAll |
498 @released |
505 @released |
499 */ |
506 */ |
500 class CSmsSettings : public CSmsMessageSettings |
507 NONSHARABLE_CLASS(CSmsSettings): public CSmsMessageSettings |
501 { |
508 { |
502 public: |
509 public: |
503 |
510 |
504 /** |
511 /** |
505 Defines the ways in which status reports that are received by the watcher may |
512 Defines the ways in which status reports that are received by the watcher may |
616 inline TMsvId Class2Folder() const; |
623 inline TMsvId Class2Folder() const; |
617 |
624 |
618 inline void SetDescriptionLength(TInt aLength); |
625 inline void SetDescriptionLength(TInt aLength); |
619 inline TInt DescriptionLength() const; |
626 inline TInt DescriptionLength() const; |
620 |
627 |
|
628 inline TBool DiscardUnknownPortMessage() const; |
|
629 inline void SetDiscardUnknownPortMessage(TBool aDeleteMessage); |
621 TUint32 SettingsFlags() const; |
630 TUint32 SettingsFlags() const; |
622 void SetSettingsFlags(TUint32 aSetFlags); |
631 void SetSettingsFlags(TUint32 aSetFlags); |
623 |
632 |
624 void RemoveSCAddresses(); |
633 void RemoveSCAddresses(); |
625 void StoreToCommDbL() const; |
634 void StoreToCommDbL() const; |
650 A SMS-SUBMIT message may have several recipients |
659 A SMS-SUBMIT message may have several recipients |
651 |
660 |
652 @publishedAll |
661 @publishedAll |
653 @released |
662 @released |
654 */ |
663 */ |
655 class CSmsNumber : public CMsvRecipient |
664 NONSHARABLE_CLASS(CSmsNumber): public CMsvRecipient |
656 { |
665 { |
657 public: |
666 public: |
658 |
667 |
659 /** |
668 /** |
660 Defines the status of an acknowledgement for a recipient. |
669 Defines the status of an acknowledgement for a recipient. |
721 Used to store Service Centre numbers and their associated name. |
730 Used to store Service Centre numbers and their associated name. |
722 |
731 |
723 @publishedAll |
732 @publishedAll |
724 @released |
733 @released |
725 */ |
734 */ |
726 class CSmsServiceCenter : public CBase |
735 NONSHARABLE_CLASS (CSmsServiceCenter) : public CBase |
727 { |
736 { |
728 public: |
737 public: |
729 IMPORT_C static CSmsServiceCenter* NewL(); |
738 IMPORT_C static CSmsServiceCenter* NewL(); |
730 IMPORT_C static CSmsServiceCenter* NewL(const CSmsServiceCenter& aSmsSC); |
739 IMPORT_C static CSmsServiceCenter* NewL(const CSmsServiceCenter& aSmsSC); |
731 IMPORT_C ~CSmsServiceCenter(); |
740 IMPORT_C ~CSmsServiceCenter(); |