class CSmsSettings : public CSmsMessageSettings |
The SMS Service settings.
An SMS service entry stores an object of this type in its message store. These settings define the default settings for mobile originated messages (SMS-SUBMIT type messages). They also provide some global settings that are applied to all messages, both outward going and received messages.
The SMS service also uses this class to store the set of avilable Servive Centre numbers. The default Service Centre is defined from this set.
Private Member Functions | |
---|---|
CSmsSettings () | |
void | ConstructL () |
Public Member Enumerations | |
---|---|
enum | TMobileSmsBearer { ESmsBearerPacketOnly , ESmsBearerCircuitOnly , ESmsBearerPacketPreferred , ESmsBearerCircuitPreferred } |
enum |
TSmsReportHandling
{
EMoveReportToInboxInvisible , EMoveReportToInboxVisible , EDiscardReport , EDoNotWatchForReport , EMoveReportToInboxInvisibleAndMatch , EMoveReportToInboxVisibleAndMatch , EDiscardReportAndMatch } |
enum | TSmsSettingsCommDbAction { ENone , EStoreToCommDb } |
IMPORT_C void | AddServiceCenterL | ( | const TDesC & | aName, |
const TDesC & | aNumber | |||
) |
TMsvId | Class2Folder | ( | ) | const [inline] |
Gets the folder ID into which received class 2 SMS-DELIVER messages are stored.
TSmsSettingsCommDbAction | CommDbAction | ( | ) | const [inline] |
Gets the communications database action.
For details, see CSmsSettings::SetCommDbAction() .
CSmsSettings::TSmsSettingsCommDbAction CSmsSettings::SetCommDbAction
IMPORT_C void | CopyL | ( | const CSmsSettings & | aSmsSettings | ) |
const CSmsSettings & aSmsSettings |
TSmsDelivery | Delivery | ( | ) | const [inline] |
Gets the default schedule delivery type of a new message created using the SMS client MTM.
TInt | DescriptionLength | ( | ) | const [inline] |
Gets the maximum length of the message entry description.
TBool | DiscardUnknownPortMessage | ( | ) | const [inline] |
Gets the boolean flag that indicates whether to discard unknown port message.
A value of ETrue indicates to discard unknown port message.
IMPORT_C CSmsServiceCenter & | GetServiceCenter | ( | TInt | aIndex | ) | const |
TInt aIndex |
TBool | ReplyQuoted | ( | ) | const [inline] |
Gets whether the editor should quote the received message at the beginning of the reply message.
void | SetClass2Folder | ( | TMsvId | aId | ) | [inline] |
Sets the folder ID into which received class 2 SMS-DELIVER messages are stored.
TMsvId aId | The folder ID for received class 2 messages. |
void | SetCommDbAction | ( | TSmsSettingsCommDbAction | aCommDbAction | ) | [inline] |
Sets whether the Service settings should be used to update the communications database.
If set, this uses the service settings to update the comms db MODEM table's MODEM_MESSAGE_CENTRE_NUMBER, MODEM_MESSAGE_VALIDITY_PERIOD and MODEM_MESSAGE_DELIVERY_REPORT fields. The update is done when the Service settings are stored into the message store using CSmsSettings::StoreL().
The default setting is for the comms db not to be updated - TSmsSettingsCommDbAction::ENone .
CSmsSettings::TSmsSettingsCommDbAction CSmsSettings::StoreL
TSmsSettingsCommDbAction aCommDbAction | The communications database action. |
IMPORT_C void | SetDefaultServiceCenter | ( | TInt | aDefaultSC | ) |
TInt aDefaultSC |
void | SetDelivery | ( | TSmsDelivery | ) | [inline] |
Sets the default schedule delivery type of a new message created using the SMS client MTM.
TSmsDelivery | The schedule delivery type. |
void | SetDescriptionLength | ( | TInt | aLength | ) | [inline] |
Sets the maximum length of the message entry description.
The default value is given by KSmsDescriptionLength.
TInt aLength | The maximum length. |
void | SetDiscardUnknownPortMessage | ( | TBool | aDeleteMessage | ) | [inline] |
Sets the boolean flag that indicates whether to discard unknown port message.
A value of ETrue indicates that discard unknown port message, it will be done without indicating the user.
TBool aDeleteMessage |
void | SetReplyQuoted | ( | TBool | ) | [inline] |
Sets whether the editor should quote the received message at the beginning of the reply message.
TBool |
void | SetSmsBearer | ( | TMobileSmsBearer | aSmsBearer | ) | [inline] |
Sets the SMS bearer.
TMobileSmsBearer aSmsBearer | The SMS bearer. |
void | SetSmsBearerAction | ( | TSmsSettingsCommDbAction | aSmsBearerAction | ) | [inline] |
Sets whether the Service's SMS bearer setting should be used to update the communications database.
If set, this uses the service setting to update the comm db global table's SMS_BEARER field. The update is done when the Service settings are stored into the message store using CSmsSettings::StoreL().
The default setting is for the comms db not to be updated - TSmsSettingsCommDbAction::ENone .
CSmsSettings::TSmsSettingsCommDbAction CSmsSettings::StoreL
TSmsSettingsCommDbAction aSmsBearerAction | The SMS bearer action. |
void | SetSpecialMessageHandling | ( | TSmsReportHandling | aSpecialMessageHandling | ) | [inline] |
Sets the way in which special messages that are received by the watcher are handled.
TSmsReportHandling aSpecialMessageHandling | The special messages handling data. |
void | SetStatusReportHandling | ( | TSmsReportHandling | aStatusReportHandling | ) | [inline] |
Sets the way in which status reports that are received by the watcher are handled.
TSmsReportHandling aStatusReportHandling | The SMS status report handling data. |
TSmsSettingsCommDbAction | SmsBearerAction | ( | ) | const [inline] |
Gets the SMS bearer action.
For details, see CSmsSettings::SetCommDbAction() .
CSmsSettings::TSmsSettingsCommDbAction CSmsSettings::SetSmsBearerAction
TSmsReportHandling | SpecialMessageHandling | ( | ) | const [inline] |
Gets the way in which special messages that are received by the watcher are handled.
By default, this is EDoNotWatchForReport. This value is not supported and therefore the value must be changed from the default.
TSmsReportHandling | StatusReportHandling | ( | ) | const [inline] |
Gets the way in which status reports that are received by the watcher are handled.
By default, this is EDoNotWatchForReport. This value is not supported and therefore the value must be changed from the default.
Defines the SMS bearer. Modes: GSM
ESmsBearerPacketOnly |
SMS messages will only be sent over a packet-switched (GPRS) network. |
ESmsBearerCircuitOnly |
SMS messages will only be sent over a circuit-switched (GSM) network. |
ESmsBearerPacketPreferred |
SMS messages will be sent over the packet-switched (GPRS) network if possible, otherwise over circuit-switched (GSM) network. |
ESmsBearerCircuitPreferred |
SMS messages will be sent over the circuit-switched (GSM) network if possible, otherwise over packet-switched (GPRS) network. |
Defines the ways in which status reports that are received by the watcher may be handled.
This can be applied to both SMS-STATUS-REPORT type messages and Special Messages (e.g. Voice Mail Indication messages).
EMoveReportToInboxInvisible |
The reports are put in the inbox and made invisible. |
EMoveReportToInboxVisible |
The reports are put in the inbox and made visible. |
EDiscardReport |
The reports are deleted. |
EDoNotWatchForReport |
Not supported. |
EMoveReportToInboxInvisibleAndMatch |
Reports are put in the inbox and made invisible. The status report is matched against the sent mesasge and its summary info updated. |
EMoveReportToInboxVisibleAndMatch |
Reports are put in the inbox and made visible. The status report is matched against the sent mesasge and its summary info updated. |
EDiscardReportAndMatch |
Reports are deleted. The status report is matched against the sent mesasge and its summary info updated. |
Sets whether the service settings should be used to update the communications database.
If the update is specified, it is done when the Service settings are stored into the message store.
ENone |
The comms database should not be updated. |
EStoreToCommDb |
Use the Service settings to update the comms datebase. |
CArrayPtrFlat < CSmsServiceCenter > * | iServiceCenters | [private] |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.