conn::CSBPackageTransferType Class Reference

class conn::CSBPackageTransferType : public conn::CSBGenericTransferType

Package Transfer Type is used to identify data related to a particular Package ID

Byte Structure

All child classes have their data following on from the parent classes so that the parent classes may remain atomic with respect to the structure of their data. The binary structure of this data type inside the descriptor buffer is as follows. Note that the endianness of the data types specified below is determined by the platform and the PC must pack accordingly:

TSBDerivedType [4-bytes]

TDriveNumber [4-bytes]

TUid [4-bytes]

TPackageDataType [4-bytes]

Package Transfer Type is used to identify data related to a particular Package ID

Byte Structure

All child classes have their data following on from the parent classes so that the parent classes may remain atomic with respect to the structure of their data. The binary structure of this data type inside the descriptor buffer is as follows. Note that the endianness of the data types specified below is determined by the platform and the PC must pack accordingly:

TSBDerivedType [4-bytes]

TDriveNumber [4-bytes]

TUid [4-bytes]

TPackageDataType [4-bytes]

Public Member Functions
~CSBPackageTransferType ()
IMPORT_C TPackageDataType DataTypeL ()
IMPORT_C CSBPackageTransferType * NewL ( TUid , TDriveNumber , TPackageDataType )
IMPORT_C TUid PackageIdL ()
Protected Member Functions
void InitialiseL ( TInt &)
Private Member Functions
CSBPackageTransferType ()
void ConstructL ( TUid , TDriveNumber , TPackageDataType )
void ConstructL ( CSBGenericTransferType *)
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()
conn::CSBGenericDataType::BaseConstructL()
conn::CSBGenericDataType::CSBGenericDataType()
conn::CSBGenericDataType::ConstructL(const TDesC8 &)
conn::CSBGenericDataType::DerivedTypeL()const
conn::CSBGenericDataType::Externalise()const
conn::CSBGenericDataType::PackDescriptorTypeAdvance(const TDesC16 &,TInt &)
conn::CSBGenericDataType::PackDescriptorTypeAdvance(const TDesC8 &,TInt &)
conn::CSBGenericDataType::UnpackDescriptorTypeAdvance(TDesC16 &,TInt &)
conn::CSBGenericDataType::UnpackDescriptorTypeAdvance(TDesC8 &,TInt &)
conn::CSBGenericDataType::UnpackTPtrAdvance(TPtrC16 &,TInt &)
conn::CSBGenericDataType::UnpackTPtrAdvance(TPtrC8 &,TInt &)
conn::CSBGenericDataType::~CSBGenericDataType()
conn::CSBGenericTransferType::CSBGenericTransferType()
conn::CSBGenericTransferType::DriveNumberL()const
conn::CSBGenericTransferType::NewL(const TDesC8 &)
conn::CSBGenericTransferType::~CSBGenericTransferType()
Private Attributes
TInt iPackageDataTypeOffset
TInt iPackageIdOffset
Inherited Attributes
conn::CSBGenericDataType::iDataBuffer
conn::CSBGenericDataType::iDerivedTypeOffset
conn::CSBGenericDataType::iSize
conn::CSBGenericTransferType::iDriveNumberOffset

Constructor & Destructor Documentation

CSBPackageTransferType()

CSBPackageTransferType ( ) [private]

C++ Constructor. Any derived types must increment iSize in their C++ constructors in order that when CSBGenericDataType::BaseConstructL() is called, the data buffer is initialised to be large enough to accomodate the data stored by the derived type

~CSBPackageTransferType()

IMPORT_C ~CSBPackageTransferType ( )

C++ Destructor

Member Functions Documentation

ConstructL(TUid, TDriveNumber, TPackageDataType)

void ConstructL ( TUid aPackageId,
TDriveNumber aDriveNumber,
TPackageDataType aPackageDataType
) [private]

Symbian OS 2nd phase constructor.

Parameters

TUid aPackageId the secure identifier
TDriveNumber aDriveNumber the drive that contains the data
TPackageDataType aPackageDataType the type of the data you wish to transfer

ConstructL(CSBGenericTransferType *)

void ConstructL ( CSBGenericTransferType * aGenericTransferType ) [private]

Parameters

CSBGenericTransferType * aGenericTransferType

DataTypeL()

IMPORT_C TPackageDataType DataTypeL ( ) const

InitialiseL(TInt &)

void InitialiseL ( TInt & aOffset ) [protected, virtual]

Initialise all member pointers to data

Parameters

TInt & aOffset The running offset of where the descriptor has been parsed up to

NewL(TUid, TDriveNumber, TPackageDataType)

IMPORT_C CSBPackageTransferType * NewL ( TUid aPackageId,
TDriveNumber aDriveNUmber,
TPackageDataType aPackageDataType
) [static]

Symbian constructor used for creating a derived class from it's constituent parameters. Used for example when creating a derived type from scratch

Parameters

TUid aPackageId the package identifier
TDriveNumber aDriveNUmber the drive that contains the data
TPackageDataType aPackageDataType the type of the package data

PackageIdL()

IMPORT_C TUid PackageIdL ( ) const

Member Data Documentation

TInt iPackageDataTypeOffset

TInt iPackageDataTypeOffset [private]

the package data type

TInt iPackageIdOffset

TInt iPackageIdOffset [private]

the package identifier