class CSmsHeader : public CBase |
The SMS MTM encapsulation of an SMS message.
This class allows a messaging client to access the lower-level message encapsulation used by the SMS stack.
It also provides functionality to restore and store an SMS message from/to the message store.
An SMS message is encapsulated in a Protocol Data Unit (PDU). In GSM there are six types of SMS message PDU. In the descriptions below, SC means Service Center and MS means Mobile Station (the phone).
1. SMS-DELIVER - sent from SC to MS
2. SMS-DELIVER-REPORT - sent from MS to SC
3. SMS-SUBMIT - sent from MS to SC
4. SMS-SUBMIT-REPORT - sent from SC to MS
5. SMS-STATUS-REPORT - sent from SC to MS
6. SMS-COMMAND - sent from MS to SC
Private Member Functions | |
---|---|
CSmsHeader(CSmsMessage *) | |
TBool | CanConcatenate() |
void | ConstructL(CSmsPDU::TSmsPDUType, CEditableText &) |
void | ConstructL(CSmsPDU::TSmsPDUType, CEditableText &, RFs &) |
void | ConstructL() |
void | SetCanConcatenate(TBool) |
void | SetEmailReplyForwardSubjectL(CSmsEmailFields *, const TDesC &, const TDesC &) |
Private Member Enumerations | |
---|---|
enum | TSmsHeaderFlags { ESmsHeaderNoFlags = 0x00, ESmsHeaderReplyPathProvided = 0x01, ESmsHeaderCanConcatenate = 0x02 } |
Private Attributes | |
---|---|
TBioMsgIdType | iBioMsgIdType |
TBool | iCloseFs |
CSmsEmailFields * | iEmailFields |
TUint32 | iFlags |
RFs | iFs |
CSmsMessage * | iMessage |
CArrayPtrFlat< CSmsNumber > | iRecipients |
CSmsHeader | ( | CSmsMessage * | aSmsMessage = NULL | ) | [private] |
CSmsMessage * aSmsMessage = NULL |
TBioMsgIdType | BioMsgIdType | ( | ) | const [inline] |
Gets the message's BIO message type identifier.
For non-BIO messages, this is EBioMsgIdNbs.
The BIO message type identifier
CSmsCommand & | Command | ( | ) | [inline] |
Gets the message PDU for a SMS-COMMMAND type message.
The message PDU type can be checked by using the CSmsHeader::Type API.
The SMS-COMMMAND PDU object.
panic
SMCM 0 The message was not a PDU of type SMS-COMMMAND (debug only).
const CSmsCommand & | Command | ( | ) | const [inline] |
Gets the (const) message PDU for a SMS-COMMMAND type message.
The message PDU type can be checked by using the CSmsHeader::Type API.
The SMS-COMMMAND PDU const object.
panic
SMCM 0 The message was not a PDU of type SMS-COMMMAND (debug only).
void | ConstructL | ( | CSmsPDU::TSmsPDUType | aType, |
CEditableText & | aText | |||
) | [private] |
CSmsPDU::TSmsPDUType aType | |
CEditableText & aText |
void | ConstructL | ( | CSmsPDU::TSmsPDUType | aType, |
CEditableText & | aText, | |||
RFs & | aFs | |||
) | [private] |
CSmsPDU::TSmsPDUType aType | |
CEditableText & aText | |
RFs & aFs |
IMPORT_C TBool | ContainsSmsHeaderL | ( | const CMsvStore & | aStore | ) |
const CMsvStore & aStore |
CSmsDeliver & | Deliver | ( | ) | [inline] |
Gets the message PDU for a SMS-DELIVER type message.
The message PDU type can be checked by using the CSmsHeader::Type API.
The SMS-DELIVER PDU object.
panic
SMCM 0 The message was not a PDU of type SMS-DELIVER (debug only).
const CSmsDeliver & | Deliver | ( | ) | const [inline] |
Gets the (const) message PDU for a SMS-DELIVER type message.
The message PDU type can be checked by using the CSmsHeader::Type API.
The SMS-DELIVER PDU const object.
panic
SMCM 0 The message was not a PDU of type SMS-DELIVER (debug only).
IMPORT_C void | ExternalizeL | ( | RMsvWriteStream & | aStream | ) | const |
RMsvWriteStream & aStream |
TPtrC | FromAddress | ( | ) | const [inline] |
Gets the originator address.
Only valid for SMS-DELIVER and SMS-SUBMIT type messages. With any other message types the returned originator address is empty.
The originator address.
IMPORT_C void | GetSmsSettingsL | ( | CSmsMessageSettings & | aSmsSettings | ) | const |
CSmsMessageSettings & aSmsSettings |
IMPORT_C void | InternalizeL | ( | RMsvReadStream & | aStream | ) |
RMsvReadStream & aStream |
CSmsMessage & | Message | ( | ) | [inline] |
Gets the SMS stack representation of the message.
The SMS stack representation of the message
const CSmsMessage & | Message | ( | ) | const [inline] |
Gets the (const) SMS stack representation of the message.
The const SMS stack representation of the message
IMPORT_C CSmsHeader * | NewL | ( | CSmsPDU::TSmsPDUType | aType, |
CEditableText & | aText | |||
) | [static] |
CSmsPDU::TSmsPDUType aType | |
CEditableText & aText |
IMPORT_C CSmsHeader * | NewL | ( | CSmsPDU::TSmsPDUType | aType, |
CEditableText & | aText, | |||
RFs & | aFs | |||
) | [static] |
CSmsPDU::TSmsPDUType aType | |
CEditableText & aText | |
RFs & aFs |
IMPORT_C CSmsHeader * | NewL | ( | CSmsMessage * | aMessage | ) | [static] |
CSmsMessage * aMessage |
const CArrayPtrFlat< CSmsNumber > & | Recipients | ( | ) | const [inline] |
Gets the (const) message recipients.
The const array of message recipients
CArrayPtrFlat< CSmsNumber > & | Recipients | ( | ) | [inline] |
Gets the (const) message recipients.
The array of message recipients
TBool | ReplyPathProvided | ( | ) | const [inline] |
Tests if the message contains a reply path.
A value of True if the message contains a reply path.
TPtrC | ServiceCenterAddress | ( | ) | const [inline] |
Gets the message's service center address.
This can only be used on SMS-SUBMIT type messages. The message PDU type can be checked by using the CSmsHeader::Type API.
The Service Center address.
panic
SMCM 0 The message was not a PDU of type SMS-SUBMIT (debug only).
void | SetBioMsgIdType | ( | TBioMsgIdType | aBioMsgIdType = EBioMsgIdNbs | ) | [inline] |
Sets the message's BIO message type identifier.
TBioMsgIdType aBioMsgIdType = EBioMsgIdNbs | The BIO message type identifier |
void | SetCanConcatenate | ( | TBool | aCanConcatenate | ) | [private] |
TBool aCanConcatenate |
IMPORT_C void | SetEmailFieldsL | ( | const CSmsEmailFields & | aEmailFields | ) |
const CSmsEmailFields & aEmailFields |
void | SetEmailReplyForwardSubjectL | ( | CSmsEmailFields * | aEmailFields, |
const TDesC & | aSubject, | |||
const TDesC & | aSubjectFormat | |||
) | [private] |
void | SetForwardEmailFieldsL | ( | const CSmsEmailFields & | aEmailFields, |
const TDesC & | aForwardSubjectFormat | |||
) |
const CSmsEmailFields & aEmailFields | |
const TDesC & aForwardSubjectFormat |
void | SetFromAddressL | ( | const TDesC & | aAddress | ) | [inline] |
Sets the originator address.
const TDesC & aAddress | The originator address |
void | SetReplyEmailFieldsL | ( | const CSmsEmailFields & | aEmailFields, |
const TDesC & | aReplySubjectFormat | |||
) |
const CSmsEmailFields & aEmailFields | |
const TDesC & aReplySubjectFormat |
void | SetReplyPathProvided | ( | TBool | aReplyPathProvided | ) | [inline] |
Set the message flag that indicates whether it contains a reply path.
TBool aReplyPathProvided | A value of True to set the flag. |
void | SetServiceCenterAddressL | ( | const TDesC & | aAddress | ) | [inline] |
Sets the message's service center address.
This can only be used on SMS-SUBMIT type messages. The message PDU type can be checked by using the CSmsHeader::Type API.
panic
SMCM 0 The message was not a PDU of type SMS-SUBMIT (debug only).
const TDesC & aAddress | The Service Center address |
IMPORT_C void | SetSmsSettingsL | ( | const CSmsMessageSettings & | aSmsSettings | ) |
const CSmsMessageSettings & aSmsSettings |
CSmsStatusReport & | StatusReport | ( | ) | [inline] |
Gets the message PDU for a SMS-STATUS-REPORT type message.
The message PDU type can be checked by using the CSmsHeader::Type API.
The SMS-STATUS-REPORT PDU object.
panic
SMCM 0 The message was not a PDU of type SMS-STATUS-REPORT (debug only).
const CSmsStatusReport & | StatusReport | ( | ) | const [inline] |
Gets the (const) message PDU for a SMS-STATUS-REPORT type message.
The message PDU type can be checked by using the CSmsHeader::Type API.
The SMS-STATUS-REPORT PDU const object.
panic
SMCM 0 The message was not a PDU of type SMS-STATUS-REPORT (debug only).
CSmsSubmit & | Submit | ( | ) | [inline] |
Gets the message PDU for a SMS-SUBMIT type message.
The message PDU type can be checked by using the CSmsHeader::Type API.
The SMS-SUBMIT PDU object.
panic
SMCM 0 The message was not a PDU of type SMS-SUBMIT (debug only).
const CSmsSubmit & | Submit | ( | ) | const [inline] |
Gets the (const) message PDU for a SMS-SUBMIT type message.
The message PDU type can be checked by using the CSmsHeader::Type API.
The SMS-SUBMIT PDU const object.
panic
SMCM 0 The message was not a PDU of type SMS-SUBMIT (debug only).
CSmsPDU::TSmsPDUType | Type | ( | ) | const [inline] |
Gets the message PDU type.
There are six types of PDU - SMS-DELIVER, SMS-DELIVER-REPORT, SMS-SUBMIT, SMS-SUBMIT-REPORT, SMS-STATUS-REPORT and SMS-COMMAND.
There is access to only to SMS-DELIVER, SMS-SUBMIT, SMS-STATUS-REPORT and SMS-COMMAND PDUs via the CSmsHeader encapsulation.
The message PDU type.
ESmsHeaderNoFlags = 0x00 | |
ESmsHeaderReplyPathProvided = 0x01 | |
ESmsHeaderCanConcatenate = 0x02 |