class CSmsPDU : public CBase |
A generic interface to a GSM SMS PDU.
The class can be used on its own to encode GSM SMS PDUs. It is also the base class for the six real implementations of GSM SMS PDUs. The derived classes are built up from the elements defined in gsmuelem.h according to the ETSI GSM 03.40. All the SMS elements have generic encode and decode functions so that each PDU type knows how to encode and decode itself into a TGsmSms.
CSmsPDU and derived classes provide a human readable interface to a GSM SMS PDU, for example setting the destination address on a SUBMIT (CSmsSubmit). All the factory functions for CSmsPDUs are provided in the base class.
Protected Member Functions | |
---|---|
CSmsPDU(TSmsPDUType) | |
void | ConstructL(CCnvCharacterSetConverter &, RFs &) |
const TSmsDataCodingScheme * | DataCodingScheme() |
TUint8 * | EncodeL(TUint8 *) |
TUint8 * | EncodeL(TUint8 *, const TEncodeParams *) |
void | ExternalizeMessagePDUL(RWriteStream &) |
void | InternalizeMessagePDUL(RReadStream &) |
const TSmsParameterIndicator * | ParameterIndicator() |
const TSmsProtocolIdentifier * | ProtocolIdentifier() |
const CSmsAddress * | ToFromAddressPtr() |
const CSmsUserData * | UserDataPtr() |
Private Member Functions | |
---|---|
TBool | DoApplicationPortAddressing(TInt &, TInt &, TInt &, TBool *) |
void | DoSetApplicationPortAddressingL(TInt, TInt, TBool) |
void | DoSetTextConcatenatedL(TBool) |
TBool | DoTextConcatenated(TInt &, TBool *) |
Public Member Enumerations | |
---|---|
enum | TSmsPDUType { ESmsDeliver = 0, ESmsDeliverReport = 1, ESmsSubmit = 2, ESmsSubmitReport = 3, ESmsStatusReport = 4, ESmsCommand = 5 } |
Protected Attributes | |
---|---|
CSmsAddress * | iServiceCenterAddress |
Private Attributes | |
---|---|
const TSmsPDUType | iSmsPDUType |
IMPORT_C TBool | ApplicationPortAddressing | ( | TInt & | aDestination, |
TInt & | aOriginator, | |||
TBool * | aIs16Bit = NULL | |||
) | const |
IMPORT_C TBool | Class | ( | TSmsDataCodingScheme::TSmsClass & | aClass | ) | const |
TSmsDataCodingScheme::TSmsClass & aClass |
void | ConstructL | ( | CCnvCharacterSetConverter & | aCharacterSetConverter, |
RFs & | aFs | |||
) | [protected, pure virtual] |
CCnvCharacterSetConverter & aCharacterSetConverter | |
RFs & aFs |
TBool | DoApplicationPortAddressing | ( | TInt & | aIndex, |
TInt & | aDestination, | |||
TInt & | aOriginator, | |||
TBool * | aIs16Bit | |||
) | const [private] |
void | DoSetApplicationPortAddressingL | ( | TInt | aDestination, |
TInt | aOriginator, | |||
TBool | aIs16Bit | |||
) | [private] |
void | DoSetTextConcatenatedL | ( | TBool | aIs16Bit | ) | [private] |
TBool aIs16Bit |
TBool | DoTextConcatenated | ( | TInt & | aIndex, |
TBool * | aIs16Bit | |||
) | const [private] |
TUint8 * | EncodeL | ( | TUint8 * | aPtr | ) | const [protected, pure virtual] |
TUint8 * aPtr |
TUint8 * | EncodeL | ( | TUint8 * | aPtr, |
const TEncodeParams * | aEncodeParams | |||
) | const [protected, pure virtual] |
TUint8 * aPtr | |
const TEncodeParams * aEncodeParams |
IMPORT_C void | EncodeMessagePDUL | ( | TGsmSms & | aGsmSms | ) | const |
TGsmSms & aGsmSms |
void | EncodeMessagePDUL | ( | TGsmSms & | aGsmSms, |
const TEncodeParams * | aEncodeParams | |||
) | const |
TGsmSms & aGsmSms | |
const TEncodeParams * aEncodeParams |
IMPORT_C void | ExternalizeL | ( | RWriteStream & | aStream | ) | const |
RWriteStream & aStream |
void | ExternalizeMessagePDUL | ( | RWriteStream & | aStream | ) | const [protected, pure virtual] |
RWriteStream & aStream |
void | InternalizeMessagePDUL | ( | RReadStream & | aStream | ) | [protected, pure virtual] |
RReadStream & aStream |
IMPORT_C CSmsPDU * | NewL | ( | RReadStream & | aStream, |
CCnvCharacterSetConverter & | aCharacterSetConverter, | |||
RFs & | aFs | |||
) | [static] |
RReadStream & aStream | |
CCnvCharacterSetConverter & aCharacterSetConverter | |
RFs & aFs |
IMPORT_C CSmsPDU * | NewL | ( | const TGsmSms & | aGsmSms, |
CCnvCharacterSetConverter & | aCharacterSetConverter, | |||
RFs & | aFs, | |||
TBool | aIsRPError = EFalse, | |||
TBool | aIsMobileTerminated = ETrue | |||
) | [static] |
const TGsmSms & aGsmSms | |
CCnvCharacterSetConverter & aCharacterSetConverter | |
RFs & aFs | |
TBool aIsRPError = EFalse | |
TBool aIsMobileTerminated = ETrue |
IMPORT_C CSmsPDU * | NewL | ( | TSmsPDUType | aType, |
CCnvCharacterSetConverter & | aCharacterSetConverter, | |||
RFs & | aFs, | |||
TBool | aIsRPError = EFalse | |||
) | [static] |
TSmsPDUType aType | |
CCnvCharacterSetConverter & aCharacterSetConverter | |
RFs & aFs | |
TBool aIsRPError = EFalse |
IMPORT_C void | ParsedServiceCenterAddress | ( | TGsmSmsTelNumber & | aParsedAddress | ) | const |
TGsmSmsTelNumber & aParsedAddress |
IMPORT_C void | ParsedToFromAddress | ( | TGsmSmsTelNumber & | aParsedAddress | ) | const |
TGsmSmsTelNumber & aParsedAddress |
IMPORT_C void | SetAlphabet | ( | TSmsDataCodingScheme::TSmsAlphabet | aAlphabet | ) |
TSmsDataCodingScheme::TSmsAlphabet aAlphabet |
IMPORT_C void | SetApplicationPortAddressingL | ( | TBool | aAddressing, |
TInt | aDestination, | |||
TInt | aOriginator, | |||
TBool | aIs16Bit = EFalse | |||
) |
IMPORT_C void | SetBits7To4 | ( | TSmsDataCodingScheme::TSmsDCSBits7To4 | aBits7To4 | ) |
TSmsDataCodingScheme::TSmsDCSBits7To4 aBits7To4 |
IMPORT_C void | SetClass | ( | TBool | aClassDefined, |
TSmsDataCodingScheme::TSmsClass | aClass | |||
) |
TBool aClassDefined | |
TSmsDataCodingScheme::TSmsClass aClass |
IMPORT_C void | SetConcatenatedMessagePDUIndex | ( | TInt | aIndex | ) |
TInt aIndex |
IMPORT_C void | SetConcatenatedMessageReference | ( | TInt | aReference | ) |
TInt aReference |
IMPORT_C void | SetDataCodingSchemePresent | ( | TBool | aPresent | ) |
TBool aPresent |
IMPORT_C void | SetIndicationState | ( | TSmsDataCodingScheme::TSmsIndicationState | aState | ) |
TSmsDataCodingScheme::TSmsIndicationState aState |
IMPORT_C void | SetIndicationType | ( | TSmsDataCodingScheme::TSmsIndicationType | aType | ) |
TSmsDataCodingScheme::TSmsIndicationType aType |
IMPORT_C void | SetNationalLanguageEncodingL | ( | TSmsEncoding | aEncoding | ) |
TSmsEncoding aEncoding |
IMPORT_C void | SetNumConcatenatedMessagePDUs | ( | TInt | aNum | ) |
TInt aNum |
IMPORT_C void | SetPIDType | ( | TSmsProtocolIdentifier::TSmsPIDType | aSmsPIDType | ) |
TSmsProtocolIdentifier::TSmsPIDType aSmsPIDType |
IMPORT_C void | SetParsedServiceCenterAddressL | ( | const TGsmSmsTelNumber & | aParsedAddress | ) |
const TGsmSmsTelNumber & aParsedAddress |
IMPORT_C void | SetParsedToFromAddressL | ( | const TGsmSmsTelNumber & | aParsedAddress | ) |
const TGsmSmsTelNumber & aParsedAddress |
IMPORT_C void | SetProtocolIdentifierPresent | ( | TBool | aPresent | ) |
TBool aPresent |
IMPORT_C void | SetServiceCenterAddressL | ( | const TDesC & | aAddress | ) |
const TDesC & aAddress |
IMPORT_C void | SetShortMessageType | ( | TSmsProtocolIdentifier::TSmsShortMessageType | aShortMessageType | ) |
TSmsProtocolIdentifier::TSmsShortMessageType aShortMessageType |
IMPORT_C void | SetTelematicDeviceIndicator | ( | TSmsProtocolIdentifier::TSmsTelematicDeviceIndicator | aIndicator | ) |
TSmsProtocolIdentifier::TSmsTelematicDeviceIndicator aIndicator |
IMPORT_C void | SetTelematicDeviceType | ( | TSmsProtocolIdentifier::TSmsTelematicDeviceType | aDeviceType | ) |
TSmsProtocolIdentifier::TSmsTelematicDeviceType aDeviceType |
IMPORT_C void | SetTextCompressed | ( | TBool | aCompressed | ) |
TBool aCompressed |
IMPORT_C void | SetTextConcatenatedL | ( | TBool | aConcatenated, |
TBool | aIs16Bit = EFalse | |||
) |
IMPORT_C void | SetToFromAddressL | ( | const TDesC & | aAddress | ) |
const TDesC & aAddress |
IMPORT_C TSmsProtocolIdentifier::TSmsTelematicDeviceIndicator | TelematicDeviceIndicator | ( | ) | const |
IMPORT_C TSmsProtocolIdentifier::TSmsTelematicDeviceType | TelematicDeviceType | ( | ) | const |
IMPORT_C TBool | TextConcatenated | ( | TBool * | aIs16Bit = NULL | ) | const |
TBool * aIs16Bit = NULL |
void | UpdateConcatenationDataL | ( | TInt | aRef, |
TInt | aPduIndex, | |||
TInt | aMaxPdu | |||
) |
void | UpdateEmailHeaderDataL | ( | TInt & | aEmailOverallHeaderLength | ) |
TInt & aEmailOverallHeaderLength |
TBool | UpdateSMSCCtrlParameterL | ( | const TUint8 | aOctet | ) |
const TUint8 aOctet |
TBool | UpdateTPSRRL | ( | TSmsFirstOctet | aSmsReportRequest | ) |
TSmsFirstOctet aSmsReportRequest |
Flags for the 6 basic PDU types in GSM SMS messaging.
ESmsDeliver = 0 | |
ESmsDeliverReport = 1 | |
ESmsSubmit = 2 | |
ESmsSubmitReport = 3 | |
ESmsStatusReport = 4 | |
ESmsCommand = 5 |