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 // SMSCLNT.H |
14 // |
15 // |
15 |
16 /** |
|
17 * @file |
|
18 * @publishedAll |
|
19 * @released |
|
20 */ |
16 #ifndef __SMSCLNT_H__ |
21 #ifndef __SMSCLNT_H__ |
17 #define __SMSCLNT_H__ |
22 #define __SMSCLNT_H__ |
18 |
23 |
19 #include <mtclbase.h> |
24 #include <mtclbase.h> |
20 #include <smuthdr.h> |
25 #include <smuthdr.h> |
21 |
|
22 |
|
23 /** |
|
24 The UID that indentifies the SMS message editor application. |
|
25 |
|
26 This is the response to the query for the KUidMsvMtmQueryEditorUidValue |
|
27 capability. |
|
28 |
|
29 @see CSmsClientMtm::QueryCapability |
|
30 |
|
31 @publishedPartner |
|
32 @released |
|
33 */ |
|
34 const TInt KUidMsgSmsEditorAppVal=0x1000163f; |
|
35 |
|
36 /** |
|
37 The maximum number of SMS PDUs allowed in a concatenated SMS message. |
|
38 |
|
39 Together with KSmcmMaxCharsInMessageConcatenated7Bit, this is the response to |
|
40 the query for the KUidMtmQueryMaxTotalMsgSizeValue capability. |
|
41 |
|
42 @see CSmsClientMtm::QueryCapability |
|
43 @see KSmcmMaxCharsInMessageConcatenated7Bit |
|
44 |
|
45 @internalComponent |
|
46 @released |
|
47 */ |
|
48 const TInt KSmcmMaxMessageNumber=0x32; |
|
49 |
|
50 /** |
|
51 The maximum number of characters in a concatenated SMS PDU. |
|
52 |
|
53 Together with KSmcmMaxMessageNumber, this is the response to the query for the |
|
54 KUidMtmQueryMaxTotalMsgSizeValue capability. |
|
55 |
|
56 @see CSmsClientMtm::QueryCapability |
|
57 @see KSmcmMaxCharsInMessageConcatenated7Bit |
|
58 |
|
59 @internalComponent |
|
60 @released |
|
61 */ |
|
62 const TInt KSmcmMaxCharsInMessageConcatenated7Bit=0x99; |
|
63 |
|
64 /** |
|
65 The maximum number of characters in a non-concatenated SMS PDU. |
|
66 |
|
67 This is the response to the query for the KUidMtmQueryMaxBodySizeValue |
|
68 capability. |
|
69 |
|
70 @see CSmsClientMtm::QueryCapability |
|
71 |
|
72 @internalComponent |
|
73 @released |
|
74 */ |
|
75 const TInt KSmcmMaxTotalMsgSize=160; |
|
76 |
|
77 /** |
|
78 The granularity of the in-memory buffer for CRichText objects. |
|
79 |
|
80 @see CRichText::NewL |
|
81 |
|
82 @internalComponent |
|
83 @released |
|
84 */ |
|
85 const TInt KSmcmRichTextConstant=256; |
|
86 |
26 |
87 class CSmsHeader; |
27 class CSmsHeader; |
88 class CSmsMessage; |
28 class CSmsMessage; |
89 class CSmsSettings; |
29 class CSmsSettings; |
90 class TSmsUtilities; |
30 class TSmsUtilities; |
116 @see CBaseMtm::SwitchCurrenEntryL |
56 @see CBaseMtm::SwitchCurrenEntryL |
117 |
57 |
118 @publishedAll |
58 @publishedAll |
119 @released |
59 @released |
120 */ |
60 */ |
121 class CSmsClientMtm : public CBaseMtm |
61 NONSHARABLE_CLASS (CSmsClientMtm) : public CBaseMtm |
122 { |
62 { |
123 public: |
63 public: |
124 |
64 |
125 IMPORT_C static CSmsClientMtm* NewL(CRegisteredMtmDll& aRegisteredMtmDll,CMsvSession& aSession); |
65 IMPORT_C static CSmsClientMtm* NewL(CRegisteredMtmDll& aRegisteredMtmDll,CMsvSession& aSession); |
126 virtual ~CSmsClientMtm(); |
66 virtual ~CSmsClientMtm(); |
133 inline const CSmsSettings& ServiceSettings() const; |
73 inline const CSmsSettings& ServiceSettings() const; |
134 inline TInt ServiceId() const; |
74 inline TInt ServiceId() const; |
135 |
75 |
136 IMPORT_C void RestoreServiceAndSettingsL(); |
76 IMPORT_C void RestoreServiceAndSettingsL(); |
137 IMPORT_C CSmsSimParamOperation* ReadSimParamsL(TRequestStatus& aObserverRequestStatus); |
77 IMPORT_C CSmsSimParamOperation* ReadSimParamsL(TRequestStatus& aObserverRequestStatus); |
138 IMPORT_C CSmsSimParamOperation* WriteSimParamsL(const CMobilePhoneSmspList& aList, TRequestStatus& aObserverRequestStatus); |
78 IMPORT_C CSmsSimParamOperation* WriteSimParamsL(const CMobilePhoneSmspList& aList, TRequestStatus& aObserverRequestStatus); |
139 |
79 IMPORT_C void SaveMessageL(CMsvStore& aEditStore, TMsvEntry& aEntry); |
|
80 IMPORT_C void CreateMessageL(TMsvEntry& aEntry); |
140 /** |
81 /** |
141 Sets the character encoding value. The character encoding value options are 7-bit, |
82 Sets the character encoding value. The character encoding value options are 7-bit, |
142 8-bit and 16-Bit Unicode. By default the character set encoding is 7 bit encoding. |
83 8-bit and 16-Bit Unicode. By default the character set encoding is 7 bit encoding. |
143 */ |
84 */ |
144 void SetMessageCharacterSetL(TSmsDataCodingScheme::TSmsAlphabet aTsmsAlphabet); |
85 void SetMessageCharacterSetL(TSmsDataCodingScheme::TSmsAlphabet aTsmsAlphabet); |