|
1 // Copyright (c) 1999-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 "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // This file contains the class definition for TSmsUserDataSettings |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file |
|
20 @publishedAll |
|
21 @released |
|
22 */ |
|
23 |
|
24 #ifndef __GSMUSET_H__ |
|
25 #define __GSMUSET_H__ |
|
26 |
|
27 #include <gsmuelem.h> |
|
28 |
|
29 /** |
|
30 * Operations on TP-UD User Data. |
|
31 */ |
|
32 class TSmsUserDataSettings |
|
33 { |
|
34 public: |
|
35 IMPORT_C TSmsUserDataSettings(); |
|
36 |
|
37 inline TSmsDataCodingScheme::TSmsAlphabet Alphabet() const; |
|
38 inline void SetAlphabet(TSmsDataCodingScheme::TSmsAlphabet aAlphabet); |
|
39 inline TBool TextCompressed() const; |
|
40 inline void SetTextCompressed(TBool aCompressed); |
|
41 IMPORT_C TBool TextConcatenated(TBool* aIs16Bit=NULL) const; |
|
42 IMPORT_C void SetTextConcatenated(TBool aConcatenated,TBool aIs16Bit=EFalse); |
|
43 |
|
44 IMPORT_C void InternalizeL(RReadStream& aStream); |
|
45 IMPORT_C void ExternalizeL(RWriteStream& aStream) const; |
|
46 |
|
47 private: |
|
48 enum TSmsUserDataSettingsFlags |
|
49 { |
|
50 ESmsFlagCompressed=0x01, |
|
51 ESmsFlagConcatenated=0x02, |
|
52 ESmsFlagConcatenatedUsing16BitReference=0x04 |
|
53 }; |
|
54 private: |
|
55 TSmsDataCodingScheme::TSmsAlphabet iAlphabet; |
|
56 TInt iFlags; |
|
57 }; |
|
58 |
|
59 |
|
60 #include "gsmuset.inl" |
|
61 |
|
62 #endif // !defined __GSMUSET_H__ |