| class TSmsUtilities |
SMS Messaging utility functions.
| Public Member Functions | |
|---|---|
| IMPORT_C TInt | GetDescription(const CSmsMessage &, TDes &, TInt) |
| IMPORT_C TInt | GetDetails(RFs &, const CSmsMessage &, TDes &, TInt) |
| IMPORT_C TInt | GetDetails(RFs &, const TDesC &, TDes &, TInt) |
| IMPORT_C RResourceFile | OpenResourceFileL(RFs &) |
| IMPORT_C void | PopulateMsgEntry(TMsvEntry &, const CSmsMessage &, TMsvId, TUid) |
| IMPORT_C void | PopulateMsgEntry(TMsvEntry &, const CSmsMessage &, TMsvId, const CSmsSettings &, TUid) |
| IMPORT_C void | ReadResourceStringL(RResourceFile, TInt, TDes &) |
| IMPORT_C void | ServiceIdL(CMsvServerEntry &, TMsvId &, TUid, CMsvEntrySelection *) |
| IMPORT_C void | ServiceIdL(CMsvEntry &, TMsvId &, TUid, CMsvEntrySelection *) |
| IMPORT_C void | ServiceIdL(CMsvSession &, TMsvId &, TUid, CMsvEntrySelection *) |
| Private Member Functions | |
|---|---|
| void | CompareEntryL(const TMsvEntry &, TUid, TMsvId &, CMsvEntrySelection *) |
| TBool | DoGetDescriptionL(const CSmsMessage &, TDes &, TInt) |
| void | DoGetDetailsL(RFs &, const TDesC &, TDes &, TInt) |
| void | ExtractDescriptionFromMessage(const CSmsMessage &, TDes &, TInt) |
| void | GetName(CContactItemField &, TUid, TDes &) |
| void | Replace(const TDesC &, const TDesC &, TDes &) |
| TBool | ValidGsmNumber(const TDesC &) |
| Public Member Enumerations | |
|---|---|
| enum | TSmsUtilitiesSpecialMessageType { EVoiceMessageWaiting = 0, EFaxMessageWaiting, EEmailMessageWaiting, EOtherMessageWaiting, ESpecialMessageTypeMask = 0x7F } |
| void | CompareEntryL | ( | const TMsvEntry & | aEntry, |
| TUid | aMtm, | |||
| TMsvId & | aFirstId, | |||
| CMsvEntrySelection * | aServiceIds | |||
| ) | [private, static] | |||
| const TMsvEntry & aEntry | |
| TUid aMtm | |
| TMsvId & aFirstId | |
| CMsvEntrySelection * aServiceIds |
| TBool | DoGetDescriptionL | ( | const CSmsMessage & | aMessage, |
| TDes & | aDescription, | |||
| TInt | aMaxLength | |||
| ) | [private, static] | |||
| const CSmsMessage & aMessage | |
| TDes & aDescription | |
| TInt aMaxLength |
| void | DoGetDetailsL | ( | RFs & | aFs, |
| const TDesC & | aFromAddress, | |||
| TDes & | aDetails, | |||
| TInt | aMaxLength | |||
| ) | [private, static] | |||
| void | ExtractDescriptionFromMessage | ( | const CSmsMessage & | aMessage, |
| TDes & | aDescription, | |||
| TInt | aMaxLength | |||
| ) | [private, static] | |||
| const CSmsMessage & aMessage | |
| TDes & aDescription | |
| TInt aMaxLength |
| IMPORT_C TInt | GetDescription | ( | const CSmsMessage & | aMessage, |
| TDes & | aDescription, | |||
| TInt | aMaxLength = KSmsDescriptionLength | |||
| ) | [static] | |||
| const CSmsMessage & aMessage | |
| TDes & aDescription | |
| TInt aMaxLength = KSmsDescriptionLength |
| IMPORT_C TInt | GetDetails | ( | RFs & | aFs, |
| const CSmsMessage & | aMessage, | |||
| TDes & | aDetails, | |||
| TInt | aMaxLength = KSmsDetailsLength | |||
| ) | [static] | |||
| RFs & aFs | |
| const CSmsMessage & aMessage | |
| TDes & aDetails | |
| TInt aMaxLength = KSmsDetailsLength |
| IMPORT_C TInt | GetDetails | ( | RFs & | aFs, |
| const TDesC & | aFromAddress, | |||
| TDes & | aDetails, | |||
| TInt | aMaxLength = KSmsDetailsLength | |||
| ) | [static] | |||
| RFs & aFs | |
| const TDesC & aFromAddress | |
| TDes & aDetails | |
| TInt aMaxLength = KSmsDetailsLength |
| void | GetName | ( | CContactItemField & | aField, |
| TUid | aFieldType, | |||
| TDes & | aName | |||
| ) | [private, static] | |||
| IMPORT_C RResourceFile | OpenResourceFileL | ( | RFs & | aFs | ) | [static] |
| RFs & aFs |
| IMPORT_C void | PopulateMsgEntry | ( | TMsvEntry & | aEntry, |
| const CSmsMessage & | aMessage, | |||
| TMsvId | aServiceId, | |||
| TUid | aMtm = KUidMsgTypeSMS | |||
| ) | [static] | |||
| TMsvEntry & aEntry | |
| const CSmsMessage & aMessage | |
| TMsvId aServiceId | |
| TUid aMtm = KUidMsgTypeSMS |
| IMPORT_C void | PopulateMsgEntry | ( | TMsvEntry & | aEntry, |
| const CSmsMessage & | aMessage, | |||
| TMsvId | aServiceId, | |||
| const CSmsSettings & | aSettings, | |||
| TUid | aMtm = KUidMsgTypeSMS | |||
| ) | [static] | |||
| TMsvEntry & aEntry | |
| const CSmsMessage & aMessage | |
| TMsvId aServiceId | |
| const CSmsSettings & aSettings | |
| TUid aMtm = KUidMsgTypeSMS |
| IMPORT_C void | ReadResourceStringL | ( | RResourceFile | aResourceFile, |
| TInt | aResourceId, | |||
| TDes & | aString | |||
| ) | [static] | |||
| RResourceFile aResourceFile | |
| TInt aResourceId | |
| TDes & aString |
| void | Replace | ( | const TDesC & | aOld, |
| const TDesC & | aNew, | |||
| TDes & | aString | |||
| ) | [private, static] | |||
| IMPORT_C void | ServiceIdL | ( | CMsvServerEntry & | aEntry, |
| TMsvId & | aFirstId, | |||
| TUid | aMtm = KUidMsgTypeSMS , | |||
| CMsvEntrySelection * | aServiceIds = NULL | |||
| ) | [static] | |||
| CMsvServerEntry & aEntry | |
| TMsvId & aFirstId | |
| TUid aMtm = KUidMsgTypeSMS | |
| CMsvEntrySelection * aServiceIds = NULL |
| IMPORT_C void | ServiceIdL | ( | CMsvEntry & | aEntry, |
| TMsvId & | aFirstId, | |||
| TUid | aMtm = KUidMsgTypeSMS , | |||
| CMsvEntrySelection * | aServiceIds = NULL | |||
| ) | [static] | |||
| CMsvEntry & aEntry | |
| TMsvId & aFirstId | |
| TUid aMtm = KUidMsgTypeSMS | |
| CMsvEntrySelection * aServiceIds = NULL |
| IMPORT_C void | ServiceIdL | ( | CMsvSession & | aSession, |
| TMsvId & | aFirstId, | |||
| TUid | aMtm = KUidMsgTypeSMS , | |||
| CMsvEntrySelection * | aServiceIds = NULL | |||
| ) | [static] | |||
| CMsvSession & aSession | |
| TMsvId & aFirstId | |
| TUid aMtm = KUidMsgTypeSMS | |
| CMsvEntrySelection * aServiceIds = NULL |
| TBool | ValidGsmNumber | ( | const TDesC & | aTelephone | ) | [private, static] |
| const TDesC & aTelephone |
Special SMS Message Indication Type.
A special SMS message indication is used to notify of waiting services, for instance a voicemail message.
The TSmsUtilitiesSpecialMessageType enum represents the flags for the known indication types.
| EVoiceMessageWaiting = 0 |
Voice message waiting. |
| EFaxMessageWaiting |
Fax message waiting. |
| EEmailMessageWaiting |
E-mail message waiting. |
| EOtherMessageWaiting |
Other message-type waiting (see 3GPP TS 23.038 [9] for definition of "other"). |
| ESpecialMessageTypeMask = 0x7F |
Mask used to obtain the mesasge indication type from the SMS data. |