class conn::CSBJavaId : public conn::CSBGenericDataType |
Generic Data Type representing a MIDlet data owner identified by a Suite Name, Vendor Name, Version and a unique MIDlet Suite Hash. The Suite Hash should be used as the unique identifier for the MIDlet suite.
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] |
MIDlet suite name length [4-bytes] |
MIDlet suite name [2*length] |
MIDlet suite vendor length [4-bytes] |
MIDlet suite vendor [2*length] |
MIDlet suite version length [4-bytes] |
MIDlet suite version [2*length] |
MIDlet suite hash length [4-bytes] (should be 32) |
MIDlet suite hash [2*length] |
Generic Data Type representing a MIDlet data owner identified by a Suite Name, Vendor Name, Version and a unique MIDlet Suite Hash. The Suite Hash should be used as the unique identifier for the MIDlet suite.
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] |
MIDlet suite name length [4-bytes] |
MIDlet suite name [2*length] |
MIDlet suite vendor length [4-bytes] |
MIDlet suite vendor [2*length] |
MIDlet suite version length [4-bytes] |
MIDlet suite version [2*length] |
MIDlet suite hash length [4-bytes] (should be 32) |
MIDlet suite hash [2*length] |
Public Member Functions | |
---|---|
~CSBJavaId() | |
IMPORT_C CSBJavaId * | NewL(const TDesC &, const TDesC &, const TDesC &, const TDesC &) |
IMPORT_C const TDesC & | SuiteHashL() |
IMPORT_C const TDesC & | SuiteVendorL() |
IMPORT_C const TDesC & | SuiteVersionL() |
Protected Member Functions | |
---|---|
void | InitialiseL(TInt &) |
void | InitialiseL(TInt &, const TDesC &, const TDesC &, const TDesC &, const TDesC &) |
Private Member Functions | |
---|---|
CSBJavaId() | |
CSBJavaId(const TDesC &, const TDesC &, const TDesC &, const TDesC &) | |
void | ConstructFromExistingL(CSBGenericDataType *) |
void | ConstructL(const TDesC &, const TDesC &, const TDesC &, const TDesC &) |
Private Attributes | |
---|---|
TPtrC | iSuiteHash |
TPtrC | iSuiteName |
TPtrC | iSuiteVendor |
TPtrC | iSuiteVersion |
Inherited Attributes | |
---|---|
conn::CSBGenericDataType::iDataBuffer | |
conn::CSBGenericDataType::iDerivedTypeOffset | |
conn::CSBGenericDataType::iSize |
CSBJavaId | ( | const TDesC & | aSuiteName, |
const TDesC & | aSuiteVendor, | ||
const TDesC & | aSuiteVersion, | ||
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
void | ConstructFromExistingL | ( | CSBGenericDataType * | aGenericDataType | ) | [private] |
CSBGenericDataType * aGenericDataType |
void | ConstructL | ( | const TDesC & | aSuiteName, |
const TDesC & | aSuiteVendor, | |||
const TDesC & | aSuiteVersion, | |||
const TDesC & | aSuiteHash | |||
) | [private] |
Symbian OS 2nd phase constructor.
void | InitialiseL | ( | TInt & | aOffset | ) | [protected, virtual] |
Initialise all member pointers to data
TInt & aOffset | The running offset of where the descriptor has been parsed up to |
void | InitialiseL | ( | TInt & | aOffset, |
const TDesC & | aSuiteName, | |||
const TDesC & | aSuiteVendor, | |||
const TDesC & | aSuiteVersion, | |||
const TDesC & | aSuiteHash | |||
) | [protected] |
IMPORT_C CSBJavaId * | NewL | ( | const TDesC & | aSuiteName, |
const TDesC & | aSuiteVendor, | |||
const TDesC & | aSuiteVersion, | |||
const TDesC & | aSuiteHash | |||
) | [static] |
Symbian constructor used for creating a derived class from it's constituent parameters. Used for example when creating a derived type from scratch
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.