TSmsUtilities Class Reference

class TSmsUtilities

SMS Messaging utility functions.

Public Member Functions
IMPORT_C TIntGetDescription(const CSmsMessage &, TDes &, TInt)
IMPORT_C TIntGetDetails(RFs &, const CSmsMessage &, TDes &, TInt)
IMPORT_C TIntGetDetails(RFs &, const TDesC &, TDes &, TInt)
IMPORT_C RResourceFileOpenResourceFileL(RFs &)
IMPORT_C voidPopulateMsgEntry(TMsvEntry &, const CSmsMessage &, TMsvId, TUid)
IMPORT_C voidPopulateMsgEntry(TMsvEntry &, const CSmsMessage &, TMsvId, const CSmsSettings &, TUid)
IMPORT_C voidReadResourceStringL(RResourceFile, TInt, TDes &)
IMPORT_C voidServiceIdL(CMsvServerEntry &, TMsvId &, TUid, CMsvEntrySelection *)
IMPORT_C voidServiceIdL(CMsvEntry &, TMsvId &, TUid, CMsvEntrySelection *)
IMPORT_C voidServiceIdL(CMsvSession &, TMsvId &, TUid, CMsvEntrySelection *)
Private Member Functions
voidCompareEntryL(const TMsvEntry &, TUid, TMsvId &, CMsvEntrySelection *)
TBool DoGetDescriptionL(const CSmsMessage &, TDes &, TInt)
voidDoGetDetailsL(RFs &, const TDesC &, TDes &, TInt)
voidExtractDescriptionFromMessage(const CSmsMessage &, TDes &, TInt)
voidGetName(CContactItemField &, TUid, TDes &)
voidReplace(const TDesC &, const TDesC &, TDes &)
TBool ValidGsmNumber(const TDesC &)
Public Member Enumerations
enumTSmsUtilitiesSpecialMessageType { EVoiceMessageWaiting = 0, EFaxMessageWaiting, EEmailMessageWaiting, EOtherMessageWaiting, ESpecialMessageTypeMask = 0x7F }

Member Functions Documentation

CompareEntryL(const TMsvEntry &, TUid, TMsvId &, CMsvEntrySelection *)

voidCompareEntryL(const TMsvEntry &aEntry,
TUidaMtm,
TMsvId &aFirstId,
CMsvEntrySelection *aServiceIds
)[private, static]

Parameters

const TMsvEntry & aEntry
TUid aMtm
TMsvId & aFirstId
CMsvEntrySelection * aServiceIds

DoGetDescriptionL(const CSmsMessage &, TDes &, TInt)

TBool DoGetDescriptionL(const CSmsMessage &aMessage,
TDes &aDescription,
TIntaMaxLength
)[private, static]

Parameters

const CSmsMessage & aMessage
TDes & aDescription
TInt aMaxLength

DoGetDetailsL(RFs &, const TDesC &, TDes &, TInt)

voidDoGetDetailsL(RFs &aFs,
const TDesC &aFromAddress,
TDes &aDetails,
TIntaMaxLength
)[private, static]

Parameters

RFs & aFs
const TDesC & aFromAddress
TDes & aDetails
TInt aMaxLength

ExtractDescriptionFromMessage(const CSmsMessage &, TDes &, TInt)

voidExtractDescriptionFromMessage(const CSmsMessage &aMessage,
TDes &aDescription,
TIntaMaxLength
)[private, static]

Parameters

const CSmsMessage & aMessage
TDes & aDescription
TInt aMaxLength

GetDescription(const CSmsMessage &, TDes &, TInt)

IMPORT_C TIntGetDescription(const CSmsMessage &aMessage,
TDes &aDescription,
TIntaMaxLength =  KSmsDescriptionLength
)[static]

Parameters

const CSmsMessage & aMessage
TDes & aDescription
TInt aMaxLength =  KSmsDescriptionLength

GetDetails(RFs &, const CSmsMessage &, TDes &, TInt)

IMPORT_C TIntGetDetails(RFs &aFs,
const CSmsMessage &aMessage,
TDes &aDetails,
TIntaMaxLength =  KSmsDetailsLength
)[static]

Parameters

RFs & aFs
const CSmsMessage & aMessage
TDes & aDetails
TInt aMaxLength =  KSmsDetailsLength

GetDetails(RFs &, const TDesC &, TDes &, TInt)

IMPORT_C TIntGetDetails(RFs &aFs,
const TDesC &aFromAddress,
TDes &aDetails,
TIntaMaxLength =  KSmsDetailsLength
)[static]

Parameters

RFs & aFs
const TDesC & aFromAddress
TDes & aDetails
TInt aMaxLength =  KSmsDetailsLength

GetName(CContactItemField &, TUid, TDes &)

voidGetName(CContactItemField &aField,
TUidaFieldType,
TDes &aName
)[private, static]

Parameters

CContactItemField & aField
TUid aFieldType
TDes & aName

OpenResourceFileL(RFs &)

IMPORT_C RResourceFileOpenResourceFileL(RFs &aFs)[static]

Parameters

RFs & aFs

PopulateMsgEntry(TMsvEntry &, const CSmsMessage &, TMsvId, TUid)

IMPORT_C voidPopulateMsgEntry(TMsvEntry &aEntry,
const CSmsMessage &aMessage,
TMsvIdaServiceId,
TUidaMtm =  KUidMsgTypeSMS
)[static]

Parameters

TMsvEntry & aEntry
const CSmsMessage & aMessage
TMsvId aServiceId
TUid aMtm =  KUidMsgTypeSMS

PopulateMsgEntry(TMsvEntry &, const CSmsMessage &, TMsvId, const CSmsSettings &, TUid)

IMPORT_C voidPopulateMsgEntry(TMsvEntry &aEntry,
const CSmsMessage &aMessage,
TMsvIdaServiceId,
const CSmsSettings &aSettings,
TUidaMtm =  KUidMsgTypeSMS
)[static]

Parameters

TMsvEntry & aEntry
const CSmsMessage & aMessage
TMsvId aServiceId
const CSmsSettings & aSettings
TUid aMtm =  KUidMsgTypeSMS

ReadResourceStringL(RResourceFile, TInt, TDes &)

IMPORT_C voidReadResourceStringL(RResourceFileaResourceFile,
TIntaResourceId,
TDes &aString
)[static]

Parameters

RResourceFile aResourceFile
TInt aResourceId
TDes & aString

Replace(const TDesC &, const TDesC &, TDes &)

voidReplace(const TDesC &aOld,
const TDesC &aNew,
TDes &aString
)[private, static]

Parameters

const TDesC & aOld
const TDesC & aNew
TDes & aString

ServiceIdL(CMsvServerEntry &, TMsvId &, TUid, CMsvEntrySelection *)

IMPORT_C voidServiceIdL(CMsvServerEntry &aEntry,
TMsvId &aFirstId,
TUidaMtm =  KUidMsgTypeSMS ,
CMsvEntrySelection *aServiceIds = NULL
)[static]

Parameters

CMsvServerEntry & aEntry
TMsvId & aFirstId
TUid aMtm =  KUidMsgTypeSMS
CMsvEntrySelection * aServiceIds = NULL

ServiceIdL(CMsvEntry &, TMsvId &, TUid, CMsvEntrySelection *)

IMPORT_C voidServiceIdL(CMsvEntry &aEntry,
TMsvId &aFirstId,
TUidaMtm =  KUidMsgTypeSMS ,
CMsvEntrySelection *aServiceIds = NULL
)[static]

Parameters

CMsvEntry & aEntry
TMsvId & aFirstId
TUid aMtm =  KUidMsgTypeSMS
CMsvEntrySelection * aServiceIds = NULL

ServiceIdL(CMsvSession &, TMsvId &, TUid, CMsvEntrySelection *)

IMPORT_C voidServiceIdL(CMsvSession &aSession,
TMsvId &aFirstId,
TUidaMtm =  KUidMsgTypeSMS ,
CMsvEntrySelection *aServiceIds = NULL
)[static]

Parameters

CMsvSession & aSession
TMsvId & aFirstId
TUid aMtm =  KUidMsgTypeSMS
CMsvEntrySelection * aServiceIds = NULL

ValidGsmNumber(const TDesC &)

TBool ValidGsmNumber(const TDesC &aTelephone)[private, static]

Parameters

const TDesC & aTelephone

Member Enumerations Documentation

Enum TSmsUtilitiesSpecialMessageType

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.

Enumerators

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.