#include <app/smuthdr.h>
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
TBioMsgIdType | BioMsgIdType | ( | ) | const [inline] |
Gets the message's BIO message type identifier.
For non-BIO messages, this is EBioMsgIdNbs.
Returns: 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.
See also: CSmsHeader::Type
Returns: The SMS-COMMMAND PDU object.
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.
See also: CSmsHeader::Type
Returns: The SMS-COMMMAND PDU const object.
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.
See also: CSmsHeader::Type
Returns: The SMS-DELIVER PDU object.
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.
See also: CSmsHeader::Type
Returns: The SMS-DELIVER PDU const object.
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.
Returns: The originator address.
IMPORT_C void | GetSmsSettingsL | ( | CSmsMessageSettings & | aSmsSettings | ) | const |
CSmsMessage & | Message | ( | ) | [inline] |
Gets the SMS stack representation of the message.
See also: CSmsMessage
Returns: The SMS stack representation of the message
const CSmsMessage & | Message | ( | ) | const [inline] |
Gets the (const) SMS stack representation of the message.
Returns: The const SMS stack representation of the message
IMPORT_C CSmsHeader * | NewL | ( | CSmsPDU::TSmsPDUType | aType, |
CEditableText & | aText | |||
) | [static] |
IMPORT_C CSmsHeader * | NewL | ( | CSmsPDU::TSmsPDUType | aType, |
CEditableText & | aText, | |||
RFs & | aFs | |||
) | [static] |
const CArrayPtrFlat< CSmsNumber > & | Recipients | ( | ) | const [inline] |
Gets the (const) message recipients.
Returns: The const array of message recipients
CArrayPtrFlat< CSmsNumber > & | Recipients | ( | ) | [inline] |
Gets the (const) message recipients.
Returns: The array of message recipients
TBool | ReplyPathProvided | ( | ) | const [inline] |
Tests if the message contains a reply path.
Returns: 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.
See also: CSmsHeader::Type
Returns: The Service Center address.
void | SetBioMsgIdType | ( | TBioMsgIdType | aBioMsgIdType = EBioMsgIdNbs | ) | [inline] |
Sets the message's BIO message type identifier.
Parameter | Description |
---|---|
aBioMsgIdType | The BIO message type identifier |
IMPORT_C void | SetEmailFieldsL | ( | const CSmsEmailFields & | aEmailFields | ) |
void | SetForwardEmailFieldsL | ( | const CSmsEmailFields & | aEmailFields, |
const TDesC & | aForwardSubjectFormat | |||
) |
void | SetFromAddressL | ( | const TDesC & | aAddress | ) | [inline] |
Sets the originator address.
Parameter | Description |
---|---|
aAddress | The originator address |
void | SetReplyEmailFieldsL | ( | const CSmsEmailFields & | aEmailFields, |
const TDesC & | aReplySubjectFormat | |||
) |
void | SetReplyPathProvided | ( | TBool | aReplyPathProvided | ) | [inline] |
Set the message flag that indicates whether it contains a reply path.
Parameter | Description |
---|---|
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.
See also: CSmsHeader::Type
Parameter | Description |
---|---|
aAddress | The Service Center address |
IMPORT_C void | SetSmsSettingsL | ( | 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.
See also: CSmsHeader::Type
Returns: The SMS-STATUS-REPORT PDU object.
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.
See also: CSmsHeader::Type
Returns: The SMS-STATUS-REPORT PDU const object.
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.
See also: CSmsHeader::Type
Returns: The SMS-SUBMIT PDU object.
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.
See also: CSmsHeader::Type
Returns: The SMS-SUBMIT PDU const object.
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.
See also: CSmsPDU::TSmsPDUType
Returns: The message PDU type.