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.
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.
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.
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.
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.
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.
IMPORT_C void | GetSmsSettingsL | ( | CSmsMessageSettings & | aSmsSettings | ) | const |
CSmsMessageSettings & aSmsSettings |
IMPORT_C void | InternalizeL | ( | RMsvReadStream & | aStream | ) |
RMsvReadStream & aStream |
const CSmsMessage & | Message | ( | ) | const [inline] |
Gets 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.
CArrayPtrFlat < CSmsNumber > & | Recipients | ( | ) | [inline] |
Gets the (const) message recipients.
TBool | ReplyPathProvided | ( | ) | const [inline] |
Tests 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.
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] |
CSmsEmailFields * aEmailFields | |
const TDesC & aSubject | |
const TDesC & aSubjectFormat |
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.
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.
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.
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.
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.
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.
ESmsHeaderNoFlags = 0x00 | |
ESmsHeaderReplyPathProvided = 0x01 | |
ESmsHeaderCanConcatenate = 0x02 |
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.