class conn::CSBPackageId : public conn::CSBGenericDataType |
Generic Data Type representing a data owner identified by a Package Id, Secure Id and Package Name. Package Id's are used to represent multiple SID's installed under a single package. There would potentially be several CSBPackageId's associated with a package, each detailing a single SID.
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] |
TUid [4-bytes] |
TSecureId [4-bytes] |
Pkg name length [4-bytes] |
Pkg name data [variable] |
Generic Data Type representing a data owner identified by a Package Id, Secure Id and Package Name. Package Id's are used to represent multiple SID's installed under a single package. There would potentially be several CSBPackageId's associated with a package, each detailing a single SID.
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] |
TUid [4-bytes] |
TSecureId [4-bytes] |
Pkg name length [4-bytes] |
Pkg name data [variable] |
Public Member Functions | |
---|---|
~CSBPackageId () | |
IMPORT_C CSBPackageId * | NewL ( TUid , TSecureId , const TDesC &) |
IMPORT_C TPackageName | PackageNameL () |
IMPORT_C TSecureId | SecureIdL () |
Protected Member Functions | |
---|---|
void | InitialiseL ( TInt &) |
void | InitialiseL ( TInt &, TInt ) |
Private Member Functions | |
---|---|
CSBPackageId () | |
void | ConstructL ( TUid , TSecureId , const TDesC &) |
void | ConstructL ( CSBGenericDataType *) |
Private Attributes | |
---|---|
TInt | iPackageIdOffset |
TInt | iPackageNameOffset |
TInt | iSecureIdOffset |
Inherited Attributes | |
---|---|
conn::CSBGenericDataType::iDataBuffer | |
conn::CSBGenericDataType::iDerivedTypeOffset | |
conn::CSBGenericDataType::iSize |
CSBPackageId | ( | ) | [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 | ConstructL | ( | TUid | aPackageId, |
TSecureId | aSecureId, | |||
const TDesC & | aPackageName | |||
) | [private] |
Symbian OS 2nd phase constructor.
void | ConstructL | ( | CSBGenericDataType * | aGenericDataType | ) | [private] |
CSBGenericDataType * aGenericDataType |
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 |
IMPORT_C CSBPackageId * | NewL | ( | TUid | aPackageId, |
TSecureId | aSecureId, | |||
const TDesC & | aPackageName | |||
) | [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.