conn::CSBJavaTransferType Class Reference

class conn::CSBJavaTransferType : public conn::CSBGenericTransferType

The Java Transfer Type identifies types of data belonging to particular MIDlet suites (identified by the Suite Hash)

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]

TJavaTransferType [4-bytes]

MIDlet suite hash length [4-bytes] (should be 32)

MIDlet suite hash [2*length]

The Java Transfer Type identifies types of data belonging to particular MIDlet suites (identified by the Suite Hash)

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]

TJavaTransferType [4-bytes]

MIDlet suite hash length [4-bytes] (should be 32)

MIDlet suite hash [2*length]

Inherits from

Public Member Functions
~CSBJavaTransferType()
IMPORT_C TJavaTransferTypeDataTypeL()
IMPORT_C CSBJavaTransferType *NewL(const TDesC &, TDriveNumber, TJavaTransferType)
IMPORT_C const TDesC &SuiteHashL()
Protected Member Functions
voidInitialiseL(TInt &)
voidInitialiseL(TInt &, const TDesC &, TDriveNumber, TJavaTransferType)
Private Member Functions
CSBJavaTransferType()
CSBJavaTransferType(const TDesC &)
voidConstructL(const TDesC &, TDriveNumber, TJavaTransferType)
voidConstructL(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
TPtrC iSuiteHash
TInt iTransferDataTypeOffset
Inherited Attributes
conn::CSBGenericDataType::iDataBuffer
conn::CSBGenericDataType::iDerivedTypeOffset
conn::CSBGenericDataType::iSize
conn::CSBGenericTransferType::iDriveNumberOffset

Constructor & Destructor Documentation

CSBJavaTransferType()

CSBJavaTransferType()[private]

C++ Constructor

CSBJavaTransferType(const TDesC &)

CSBJavaTransferType(const TDesC &aSuiteHash)[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

Parameters

const TDesC & aSuiteHash

~CSBJavaTransferType()

IMPORT_C~CSBJavaTransferType()

C++ Destructor

Member Functions Documentation

ConstructL(const TDesC &, TDriveNumber, TJavaTransferType)

voidConstructL(const TDesC &aSuiteHash,
TDriveNumberaDriveNumber,
TJavaTransferTypeaTransferDataType
)[private]

Symbian OS 2nd phase constructor.

Parameters

const TDesC & aSuiteHash
TDriveNumber aDriveNumberthe drive that contains the data
TJavaTransferType aTransferDataTypethe type of the data you wish to transfer

ConstructL(CSBGenericTransferType *)

voidConstructL(CSBGenericTransferType *aGenericTransferType)[private]

Parameters

CSBGenericTransferType * aGenericTransferType

DataTypeL()

IMPORT_C TJavaTransferTypeDataTypeL()const

InitialiseL(TInt &)

voidInitialiseL(TInt &aOffset)[protected, virtual]

Initialise all member pointers to data

Parameters

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

InitialiseL(TInt &, const TDesC &, TDriveNumber, TJavaTransferType)

voidInitialiseL(TInt &aOffset,
const TDesC &aSuiteHash,
TDriveNumberaDriveNumber,
TJavaTransferTypeaTransferDataType
)[protected]

Initialise all member pointers to data

Parameters

TInt & aOffsetThe running offset of where the descriptor has been parsed up to
const TDesC & aSuiteHashThe Java MIDlet suite hash
TDriveNumber aDriveNumber
TJavaTransferType aTransferDataType

NewL(const TDesC &, TDriveNumber, TJavaTransferType)

IMPORT_C CSBJavaTransferType *NewL(const TDesC &aSuiteHash,
TDriveNumberaDriveNumber,
TJavaTransferTypeaTransferDataType
)[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

const TDesC & aSuiteHash
TDriveNumber aDriveNumberthe drive that contains the data
TJavaTransferType aTransferDataTypethe type of the data you wish to transfer

SuiteHashL()

IMPORT_C const TDesC &SuiteHashL()const

Member Data Documentation

TPtrC iSuiteHash

TPtrC iSuiteHash[private]

The MIDlet suite Hash

TInt iTransferDataTypeOffset

TInt iTransferDataTypeOffset[private]

the transfer data type