ChspsODT Class Reference

class ChspsODT : public CBase

Class represents an Object Description Tree of HSPS. ODT is cabable of marshaling itself into HBufC8 descriptor and unmarshaling from descriptor stream. A Header is an ODT instance which has not internalized it's resources nor it's DOM (XML payload).

hspsODT.lib
Since
S60 5.0

Inherits from

Public Member Functions
~ChspsODT()
IMPORT_C voidAddResourceL(ChspsResource *)
TInt CheckResourceL(ChspsResource *)
IMPORT_C ChspsODT *CloneL()
IMPORT_C voidCloneL(ChspsODT &)
IMPORT_C TUintConfigurationType()
IMPORT_C voidCopyDomDocumentL(ChspsDomDocument &)
IMPORT_C voidDeleteAllResources()
IMPORT_C voidDeleteResourceL(TInt)
IMPORT_C const TDesC &Description()
IMPORT_C ChspsDomDocument &DomDocument()
IMPORT_C voidExternalizeHeaderL(RWriteStream &)
IMPORT_C voidExternalizeL(RWriteStream &)
IMPORT_C voidExternalizeResourceListL(RWriteStream &)
IMPORT_C TUint32Family()
IMPORT_C TUintFlags()
IMPORT_C voidInternalizeHeaderL(RReadStream &)
IMPORT_C voidInternalizeL(RReadStream &)
IMPORT_C voidInternalizeResourceListL(RReadStream &)
IMPORT_C const TDesC &LogoFile()
IMPORT_C HBufC8 *MarshalHeaderL()
IMPORT_C TIntMultiInstance()
IMPORT_C ChspsODT *NewL()
IMPORT_C ChspsODT *NewLC(const TDesC8 &)
IMPORT_C TIntOdtLanguage()
IMPORT_C const TDesC &PreviewFile()
IMPORT_C const TDesC &ProviderName()
IMPORT_C TIntProviderUid()
IMPORT_C TIntResourceCount()
IMPORT_C ChspsResource &ResourceL(TInt)
IMPORT_C TIntRootUid()
IMPORT_C voidSetConfigurationType(TUint)
IMPORT_C voidSetDescriptionL(const TDesC &)
IMPORT_C voidSetFamily(const TUint32)
IMPORT_C voidSetFlags(TUint)
IMPORT_C voidSetLogoFileL(const TDesC &)
IMPORT_C voidSetMultiInstance(TInt)
IMPORT_C voidSetOdtLanguage(TInt)
IMPORT_C voidSetPreviewFileL(const TDesC &)
IMPORT_C voidSetProviderNameL(const TDesC &)
IMPORT_C voidSetProviderUid(TInt)
IMPORT_C voidSetRootUid(TInt)
IMPORT_C voidSetThemeFullNameL(const TDesC &)
IMPORT_C voidSetThemeShortNameL(const TDesC &)
IMPORT_C voidSetThemeUid(TInt)
IMPORT_C voidSetThemeVersionL(const TDesC &)
IMPORT_C const TDesC &ThemeFullName()
IMPORT_C const TDesC &ThemeShortName()
IMPORT_C TIntThemeUid()
IMPORT_C const TDesC &ThemeVersion()
IMPORT_C voidUnMarshalHeaderL(const TDesC8 &)
IMPORT_C ChspsODT *UnMarshalHeaderLC(const TDesC8 &)
Private Member Functions
ChspsODT()
voidConstructL()
voidCopyODTDataL(const ChspsODT &, ChspsODT &)
TInt HeaderSize()
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()
Private Attributes
TUint iConfigurationType
HBufC *iDescription
ChspsDomDocument *iDomDocument
TUint32 iFamilyMask
TUint iFlags
TInt iLanguage
HBufC *iLogoFile
TInt iMultiInstance
HBufC *iPreviewFile
HBufC *iProviderName
TUint iProviderUid
TAny *iReserved
CArrayPtrSeg< ChspsResource > *iResourceList
TUint iRootUid
HBufC *iThemeFullName
HBufC *iThemeShortName
TUint iThemeUid
HBufC *iThemeVersion

Constructor & Destructor Documentation

ChspsODT()

ChspsODT()[private]

C++ default constructor.

~ChspsODT()

~ChspsODT()[virtual]

Destructor.

Member Functions Documentation

AddResourceL(ChspsResource *)

IMPORT_C voidAddResourceL(ChspsResource *aResource)

Adds a resource-object into ODT.

Since
S60 5.0

Parameters

ChspsResource * aResourceChspsResource to add. ODT takes ownership.

CheckResourceL(ChspsResource *)

TInt CheckResourceL(ChspsResource *aResource)

Checks duplicates.

Since
S60 5.0

Parameters

ChspsResource * aResourceChspsResource to check.

CloneL()

IMPORT_C ChspsODT *CloneL()const

Clones this ChspsODT.

Since
S60 5.0

CloneL(ChspsODT &)

IMPORT_C voidCloneL(ChspsODT &aODT)

Clones given ODT to this ODT.

Since
S60 5.0

Parameters

ChspsODT & aODTSource ODT.

ConfigurationType()

IMPORT_C TUintConfigurationType()const

Get configuration type.

Since
S60 5.0

ConstructL()

voidConstructL()[private]

By default Symbian 2nd phase constructor is private.

CopyDomDocumentL(ChspsDomDocument &)

IMPORT_C voidCopyDomDocumentL(ChspsDomDocument &aDom)

Clones the aDom and sets it as this ChspsODT's DomDocument.

Since
S60 5.0

Parameters

ChspsDomDocument & aDomDom to be cloned.

CopyODTDataL(const ChspsODT &, ChspsODT &)

voidCopyODTDataL(const ChspsODT &aSource,
ChspsODT &aTarget
)[private, static]

Helper to ODT cloning. Prevents duplicate code in two clone methods.

Parameters

const ChspsODT & aSourceSource ODT
ChspsODT & aTargetTarget ODT

DeleteAllResources()

IMPORT_C voidDeleteAllResources()

Deletes all resources from the ODT.

Since
S60 5.0

DeleteResourceL(TInt)

IMPORT_C voidDeleteResourceL(TIntaIndex)

Deletes a resource from the ODT.

Since
S60 5.0

Parameters

TInt aIndexIndex of the resource to be deleted.

Description()

IMPORT_C const TDesC &Description()const
Gets description of the widget
Since
S60 5.0

DomDocument()

IMPORT_C ChspsDomDocument &DomDocument()const

Get the DomDocument.

Since
S60 5.0

ExternalizeHeaderL(RWriteStream &)

IMPORT_C voidExternalizeHeaderL(RWriteStream &aStream)const

Externalizes the ODT header.

Since
S60 5.0

Parameters

RWriteStream & aStreamThe read stream.

ExternalizeL(RWriteStream &)

IMPORT_C voidExternalizeL(RWriteStream &aStream)const

Externalizes the object.

Since
S60 5.0

Parameters

RWriteStream & aStreamThe write stream.

ExternalizeResourceListL(RWriteStream &)

IMPORT_C voidExternalizeResourceListL(RWriteStream &aStream)const

Externalizes the Resource List.

Since
S60 5.0

Parameters

RWriteStream & aStreamThe read stream.

Family()

IMPORT_C TUint32Family()const

Get family.

Since
S60 5.0

Flags()

IMPORT_C TUintFlags()const

Get status flag-definitions for themes.

Since
S60 5.0

HeaderSize()

TInt HeaderSize()const [private]

Calculate header size in bytes.

InternalizeHeaderL(RReadStream &)

IMPORT_C voidInternalizeHeaderL(RReadStream &aStream)

Internalizes the ODT header.

Since
S60 5.0

Parameters

RReadStream & aStreamThe read stream.

InternalizeL(RReadStream &)

IMPORT_C voidInternalizeL(RReadStream &aStream)

Internalizes the object.

Since
S60 5.0

Parameters

RReadStream & aStreamThe read stream.

InternalizeResourceListL(RReadStream &)

IMPORT_C voidInternalizeResourceListL(RReadStream &aStream)

Internalizes the Resource List.

Since
S60 5.0

Parameters

RReadStream & aStreamThe read stream.

LogoFile()

IMPORT_C const TDesC &LogoFile()const
Gets path to the logo file
Since
S60 5.0

MarshalHeaderL()

IMPORT_C HBufC8 *MarshalHeaderL()const

Marshals the ODT header into descriptor stream.

Since
S60 5.0

MultiInstance()

IMPORT_C TIntMultiInstance()const

Get Widget instance count

Since
S60 5.0

NewL()

IMPORT_C ChspsODT *NewL()[static]

Two-phased constructor.

Since
S60 5.0

NewLC(const TDesC8 &)

IMPORT_C ChspsODT *NewLC(const TDesC8 &aStreamData)[static]

Two-phased constructor.

Since
S60 5.0

Parameters

const TDesC8 & aStreamDataThe read stream.

OdtLanguage()

IMPORT_C TIntOdtLanguage()const

Get OdtLanguage.

Since
S60 5.0

PreviewFile()

IMPORT_C const TDesC &PreviewFile()const
Gets path to the preview file
Since
S60 5.0

ProviderName()

IMPORT_C const TDesC &ProviderName()const

Get ProviderName.

Since
S60 5.0

ProviderUid()

IMPORT_C TIntProviderUid()const

Get ProviderUid

Since
S60 5.0

ResourceCount()

IMPORT_C TIntResourceCount()const

Amount of resources in ODT.

Since
S60 5.0

ResourceL(TInt)

IMPORT_C ChspsResource &ResourceL(TIntaIndex)const

Gets a resource.

Since
S60 5.0

Parameters

TInt aIndexIndex of the resource to be retrieved.

RootUid()

IMPORT_C TIntRootUid()const

Get RootUid.

Since
S60 5.0

SetConfigurationType(TUint)

IMPORT_C voidSetConfigurationType(TUintaType)

Set configurationt type.

Since
S60 5.0

Parameters

TUint aTypeType.

SetDescriptionL(const TDesC &)

IMPORT_C voidSetDescriptionL(const TDesC &aDesc)
Sets description of the widget
Since
S60 5.0

Parameters

const TDesC & aDescText

SetFamily(const TUint32)

IMPORT_C voidSetFamily(const TUint32aFamilyMask)

Set family. Identifies the resolution and user interface for which the resource/widget was designed for (e.g. vga, qhd_tch).

Since
S60 5.0

Parameters

const TUint32 aFamilyMask

SetFlags(TUint)

IMPORT_C voidSetFlags(TUintaFlags)

Set status flag-definitions for themes.

Since
S60 5.0

Parameters

TUint aFlagsFlags to be set.

SetLogoFileL(const TDesC &)

IMPORT_C voidSetLogoFileL(const TDesC &aPath)
Sets path of the logo file
Since
S60 5.0

Parameters

const TDesC & aPathPath to the file

SetMultiInstance(TInt)

IMPORT_C voidSetMultiInstance(TIntaMultiInstance)

Set Widget instance count

Since
S60 5.0

Parameters

TInt aMultiInstancemultiinstance.

SetOdtLanguage(TInt)

IMPORT_C voidSetOdtLanguage(TIntaLanguage)

Set OdtLanguage.

Since
S60 5.0

Parameters

TInt aLanguageThemes' language.

SetPreviewFileL(const TDesC &)

IMPORT_C voidSetPreviewFileL(const TDesC &aPath)
Sets path of the preview file
Since
S60 5.0

Parameters

const TDesC & aPathPath to the file

SetProviderNameL(const TDesC &)

IMPORT_C voidSetProviderNameL(const TDesC &aName)

Set ProviderName.

Since
S60 5.0

Parameters

const TDesC & aNameThe name of the theme provider.

SetProviderUid(TInt)

IMPORT_C voidSetProviderUid(TIntaUid)

Set providerUid.

Since
S60 5.0

Parameters

TInt aUidThe UID of the theme provider.

SetRootUid(TInt)

IMPORT_C voidSetRootUid(TIntaUid)

Set Uid of the application or interface, which uses the theme.

Since
S60 5.0

Parameters

TInt aUidThe root UID.

SetThemeFullNameL(const TDesC &)

IMPORT_C voidSetThemeFullNameL(const TDesC &aName)

Set ThemeFullName.

Since
S60 5.0

Parameters

const TDesC & aNameThemes' name.

SetThemeShortNameL(const TDesC &)

IMPORT_C voidSetThemeShortNameL(const TDesC &aName)

Set ThemeShortName.

Since
S60 5.0

Parameters

const TDesC & aNameThemes' short name.

SetThemeUid(TInt)

IMPORT_C voidSetThemeUid(TIntaUid)

Set ThemeUid.

Since
S60 5.0

Parameters

TInt aUidTheme UID.

SetThemeVersionL(const TDesC &)

IMPORT_C voidSetThemeVersionL(const TDesC &aVersion)

Set ThemeVersion.

Since
S60 5.0

Parameters

const TDesC & aVersionThemes' version.

ThemeFullName()

IMPORT_C const TDesC &ThemeFullName()const

Get ThemeFullName.

Since
S60 5.0

ThemeShortName()

IMPORT_C const TDesC &ThemeShortName()const

Get ThemeShortName

Since
S60 5.0

ThemeUid()

IMPORT_C TIntThemeUid()const

Get ThemeUid.

Since
S60 5.0

ThemeVersion()

IMPORT_C const TDesC &ThemeVersion()const
Get ThemeVersion.
Since
S60 5.0

UnMarshalHeaderL(const TDesC8 &)

IMPORT_C voidUnMarshalHeaderL(const TDesC8 &aStreamData)

Unmarshals the header information from the stream and saves the data into same instance.

Since
S60 5.0

Parameters

const TDesC8 & aStreamDataDescriptor stream containing the ODT header data.

UnMarshalHeaderLC(const TDesC8 &)

IMPORT_C ChspsODT *UnMarshalHeaderLC(const TDesC8 &aStreamData)[static]

Unmarshals the header information from the stream and returns ODT instance.

Since
S60 5.0

Parameters

const TDesC8 & aStreamDataDescriptor stream containing the ODT header data.

Member Data Documentation

TUint iConfigurationType

TUint iConfigurationType[private]

HBufC * iDescription

HBufC *iDescription[private]

ChspsDomDocument * iDomDocument

ChspsDomDocument *iDomDocument[private]

TUint32 iFamilyMask

TUint32 iFamilyMask[private]

TUint iFlags

TUint iFlags[private]

TInt iLanguage

TInt iLanguage[private]

HBufC * iLogoFile

HBufC *iLogoFile[private]

TInt iMultiInstance

TInt iMultiInstance[private]

HBufC * iPreviewFile

HBufC *iPreviewFile[private]

HBufC * iProviderName

HBufC *iProviderName[private]

TUint iProviderUid

TUint iProviderUid[private]

TAny * iReserved

TAny *iReserved[private]

CArrayPtrSeg< ChspsResource > * iResourceList

CArrayPtrSeg< ChspsResource > *iResourceList[private]

TUint iRootUid

TUint iRootUid[private]

HBufC * iThemeFullName

HBufC *iThemeFullName[private]

HBufC * iThemeShortName

HBufC *iThemeShortName[private]

TUint iThemeUid

TUint iThemeUid[private]

HBufC * iThemeVersion

HBufC *iThemeVersion[private]