CEnhancedVoiceMailBoxInformation Class Reference

class CEnhancedVoiceMailBoxInformation : public CBase

This is the base class for Enhanced Voice Mail Notifications and Enhanced Voice Mail Delete Confirmations. It encapsulates the attributes and encoding / decoding algorithms common to both types of Enhanced Voice Mail Information Element.

Inherits from

  • CEnhancedVoiceMailBoxInformation
Public Member Functions
~CEnhancedVoiceMailBoxInformation()
voidDecodeL(TGsmuLex8 &, CCnvCharacterSetConverter &, RFs &)
TUint8 *EncodeL(TUint8 *, CCnvCharacterSetConverter &, RFs &)
IMPORT_C TBoolMaximumCapacity()
CEnhancedVoiceMailBoxInformation *NewL()
IMPORT_C TUint8NumberOfVoiceMessages()
IMPORT_C voidParsedAccessAddress(TGsmSmsTelNumber &)
IMPORT_C voidSetAccessAddressL(const TDesC &)
IMPORT_C voidSetAlmostMaximumCapacity(TBool)
IMPORT_C voidSetMaximumCapacity(TBool)
IMPORT_C voidSetNumberOfVoiceMessages(TUint8)
IMPORT_C voidSetParsedAccessAddressL(const TGsmSmsTelNumber &)
IMPORT_C voidSetProfile(TSmsMessageProfileType)
IMPORT_C voidSetStorage(TBool)
IMPORT_C TBoolStore()
IMPORT_C TVoiceMailInfoTypeType()
Protected Member Functions
CEnhancedVoiceMailBoxInformation()
CEnhancedVoiceMailBoxInformation(TVoiceMailInfoType)
CEnhancedVoiceMailBoxInformation(const CEnhancedVoiceMailBoxInformation &)
voidConstructL()
voidDoSetParsedAddressL(const TDesC &)
voidNewBufferL(TInt)
voidoperator=(const CEnhancedVoiceMailBoxInformation &)
TBool operator==(const CEnhancedVoiceMailBoxInformation &)
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Public Member Enumerations
enumanonymous { KSmsMaxEnhancedVoiceMailSize = CSmsUserData::KSmsMaxUserDataSize - 3 }
Private Member Enumerations
enumTBitMasks { EMask1Bit = 0x01, EMask2Bits = 0x03, EMask4Bits = 0x0F }
Protected Attributes
HBufC *iAccessAddress
TBool iAlmostFull
TBool iExtensionIndicator
TBool iFull
TUint8 iNumberOfVoiceMessages
TBool iOctet1Bit1
TSmsMessageProfileType iProfile
TBool iStorage
TVoiceMailInfoType iType
TGsmSmsTypeOfAddress iTypeOfAddress

Constructor & Destructor Documentation

CEnhancedVoiceMailBoxInformation()

CEnhancedVoiceMailBoxInformation()[protected]

CEnhancedVoiceMailBoxInformation(TVoiceMailInfoType)

CEnhancedVoiceMailBoxInformation(TVoiceMailInfoTypeaTVoiceMailInfoType)[protected]

Parameters

TVoiceMailInfoType aTVoiceMailInfoType

CEnhancedVoiceMailBoxInformation(const CEnhancedVoiceMailBoxInformation &)

CEnhancedVoiceMailBoxInformation(const CEnhancedVoiceMailBoxInformation &)[protected]

Prevent clients from using the copy constructor by including it in the class definition but making it protected and not exporting it.

capability
None

~CEnhancedVoiceMailBoxInformation()

~CEnhancedVoiceMailBoxInformation()[virtual]

Member Functions Documentation

ConstructL()

voidConstructL()[protected]

DecodeL(TGsmuLex8 &, CCnvCharacterSetConverter &, RFs &)

voidDecodeL(TGsmuLex8 &aVoiceMailInfo,
CCnvCharacterSetConverter &aCharacterSetConverter,
RFs &aFs
)[virtual]

Parameters

TGsmuLex8 & aVoiceMailInfo
CCnvCharacterSetConverter & aCharacterSetConverter
RFs & aFs

DoSetParsedAddressL(const TDesC &)

voidDoSetParsedAddressL(const TDesC &aAddress)[protected]

Parameters

const TDesC & aAddress

EncodeL(TUint8 *, CCnvCharacterSetConverter &, RFs &)

TUint8 *EncodeL(TUint8 *aPtr,
CCnvCharacterSetConverter &aCharacterSetConverter,
RFs &aFs
)const [virtual]

Parameters

TUint8 * aPtr
CCnvCharacterSetConverter & aCharacterSetConverter
RFs & aFs

MaximumCapacity()

IMPORT_C TBoolMaximumCapacity()const

NewBufferL(TInt)

voidNewBufferL(TIntaLength)[protected]

Parameters

TInt aLength

NewL()

CEnhancedVoiceMailBoxInformation *NewL()[static]

NumberOfVoiceMessages()

IMPORT_C TUint8NumberOfVoiceMessages()const

ParsedAccessAddress(TGsmSmsTelNumber &)

IMPORT_C voidParsedAccessAddress(TGsmSmsTelNumber &aParsedAddress)const

Used to get the voice mail box number as a parsed address.

capability
None

Parameters

TGsmSmsTelNumber & aParsedAddressAn output parameter which is set to the parsed address.

SetAccessAddressL(const TDesC &)

IMPORT_C voidSetAccessAddressL(const TDesC &aParsedAddress)

Used to set the voice mail box number, overwriting any pre-existing number.

capability
None

Parameters

const TDesC & aParsedAddressThe voice mail box address.

SetAlmostMaximumCapacity(TBool)

IMPORT_C voidSetAlmostMaximumCapacity(TBoolaIsAlmostFull)

Parameters

TBool aIsAlmostFull

SetMaximumCapacity(TBool)

IMPORT_C voidSetMaximumCapacity(TBoolaIsFull)

Used to set or reset the voice mail status to full.

capability
None

Parameters

TBool aIsFull

SetNumberOfVoiceMessages(TUint8)

IMPORT_C voidSetNumberOfVoiceMessages(TUint8aNumber)

Sets the number of voice messages to a value in the range 0 to 255.

capability
None

Parameters

TUint8 aNumberThe number of voice messages.

SetParsedAccessAddressL(const TGsmSmsTelNumber &)

IMPORT_C voidSetParsedAccessAddressL(const TGsmSmsTelNumber &aParsedAddress)

Used to set the voice mail box number as a parsed address

capability
None

Parameters

const TGsmSmsTelNumber & aParsedAddressThe parsed address to be used as the voice mail box number.

SetProfile(TSmsMessageProfileType)

IMPORT_C voidSetProfile(TSmsMessageProfileTypeaProfile)

Parameters

TSmsMessageProfileType aProfile

SetStorage(TBool)

IMPORT_C voidSetStorage(TBoolaIsStored)

Configures the storage directive

capability
None

Parameters

TBool aIsStoredSet to True if the SM is to be stored in the ME or USIM, False is the SM is to be discarded.

Store()

IMPORT_C TBoolStore()const

Indicates whether the SM is to be stored or discarded

capability
None

Type()

IMPORT_C TVoiceMailInfoTypeType()const

Indicates whether this message is a Voice Mail Notification or a Voice Mail Deletion Confirmation.

capability
None

operator=(const CEnhancedVoiceMailBoxInformation &)

voidoperator=(const CEnhancedVoiceMailBoxInformation &)[protected]

operator==(const CEnhancedVoiceMailBoxInformation &)

TBool operator==(const CEnhancedVoiceMailBoxInformation &)[protected]

Prevent clients from using the equality operator by including it in the class definition but making it protected and not exporting it.

capability
None

Member Enumerations Documentation

Enum anonymous

Enumerators

KSmsMaxEnhancedVoiceMailSize = CSmsUserData::KSmsMaxUserDataSize - 3

Enum TBitMasks

Enumerators

EMask1Bit = 0x01
EMask2Bits = 0x03
EMask4Bits = 0x0F

Member Data Documentation

HBufC * iAccessAddress

HBufC *iAccessAddress[protected]

TBool iAlmostFull

TBool iAlmostFull[protected]

TBool iExtensionIndicator

TBool iExtensionIndicator[protected]

TBool iFull

TBool iFull[protected]

TUint8 iNumberOfVoiceMessages

TUint8 iNumberOfVoiceMessages[protected]

TBool iOctet1Bit1

TBool iOctet1Bit1[protected]

TSmsMessageProfileType iProfile

TSmsMessageProfileType iProfile[protected]

TBool iStorage

TBool iStorage[protected]

TVoiceMailInfoType iType

TVoiceMailInfoType iType[protected]

TGsmSmsTypeOfAddress iTypeOfAddress

TGsmSmsTypeOfAddress iTypeOfAddress[protected]