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 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.
20 Gets the message header for a message context.
22 The current context must be set to a message entry with type KUidMsvMessageEntryValue.
23 If the current context is not set, or is set to an entry not of type
24 KUidMsvMessageEntryValuethen a panic will occur.
26 The message header object is the SMS MTM encapsulation of an SMS message. The
27 contents of the message header has been extracted from the current context.
30 The (non-const) message header object.
33 The current context has not been set (debug only).
36 The current context was not of type KUidMsvMessageEntry (debug only).
40 inline CSmsHeader& CSmsClientMtm::SmsHeader()
42 __ASSERT_DEBUG(iMsvEntry, Panic(ESmscEntryNotSet));
43 __ASSERT_DEBUG(iMsvEntry->Entry().iType==KUidMsvMessageEntry, Panic(ESmscWrongContextType));
48 Gets the (const) message header for a message context.
50 The current context must be set to a message entry with type KUidMsvMessageEntryValue.
51 If the current context is not set, or is set to an entry not of type
52 KUidMsvMessageEntryValuethen a panic will occur.
54 The message header object is the SMS MTM encapsulation of an SMS message. The
55 contents of the message header has been extracted from the current context.
58 The (const) message header object.
61 The current context has not been set (debug only).
64 The current context was not of type KUidMsvMessageEntry (debug only).
68 inline const CSmsHeader& CSmsClientMtm::SmsHeader() const
70 __ASSERT_DEBUG(iMsvEntry, Panic(ESmscEntryNotSet));
71 __ASSERT_DEBUG(iMsvEntry->Entry().iType==KUidMsvMessageEntry, Panic(ESmscWrongContextType));
76 Gets the current SMS service settings.
78 The current context must be set. If the current context is not set then a panic
81 The SMS service settings must have been set or a panic will occur. The
82 CSmsClientMtm::RestoreServiceAndSettingsL API can restore the SMS service
83 settings. This also sets the SMS service ID.
86 The current (non-const) SMS service settings.
89 The current context has not been set (debug only).
92 The SMS Service settings have not been set (debug only).
94 @see CSmsClientMtm::RestoreServiceAndSettingsL
96 inline CSmsSettings& CSmsClientMtm::ServiceSettings()
98 __ASSERT_DEBUG(iMsvEntry, Panic(ESmscEntryNotSet));
99 __ASSERT_DEBUG(iServiceSettings, Panic(ESmscSettingsNotSet));
100 return *iServiceSettings;
104 Gets the current (const) SMS service settings.
106 The current context must be set. If the current context is not set then a panic
109 The SMS service settings must have been set or a panic will occur. The
110 CSmsClientMtm::RestoreServiceAndSettingsL API can restore the SMS service
111 settings. This also sets the SMS service ID.
114 The current (const) SMS service settings.
117 The current context has not been set (debug only).
120 The SMS Service settings have not been set (debug only).
122 @see CSmsClientMtm::RestoreServiceAndSettingsL
124 inline const CSmsSettings& CSmsClientMtm::ServiceSettings() const
126 __ASSERT_DEBUG(iMsvEntry, Panic(ESmscEntryNotSet));
127 __ASSERT_DEBUG(iServiceSettings, Panic(ESmscSettingsNotSet));
128 return *iServiceSettings;
132 Gets the ID of the current SMS service.
134 If there is no current SMS service, the ID will be a value of 0. The
135 CSmsClientMtm::RestoreServiceAndSettingsL API can set the SMS service IS. This
136 also restores the SMS service settings.
139 The ID for the current SMS service
141 @see CSmsClientMtm::RestoreServiceAndSettingsL
143 inline TInt CSmsClientMtm::ServiceId() const