CAknLocalSkinInstance Class Reference

class CAknLocalSkinInstance : public CBase

This class provides support for local skinning.

For example an application can change its skin locally without affecting the look of the rest of the system.

Since
S60 v5.0

Inherits from

  • CAknLocalSkinInstance
Public Member Functions
~CAknLocalSkinInstance()
IMPORT_C voidApplyL(const TDesC &, RArray< TAknsItemID > &)
IMPORT_C CAknLocalSkinInstance *NewL(const RFs &, const RAknsSrvSession &)
Protected Member Functions
CAknLocalSkinInstance(const RFs &, const RAknsSrvSession &)
Private Member Functions
TBool AlreadyOverrideElement(const TAknsItemID &)
voidDoApplyL(const TDesC &)
voidDoOverrideBitmapDefinitionL(TUint32)
voidDoOverrideColorTableDefinitionL(TUint32)
TUint32 DoOverrideEffectCommandsL(const TUint, TUint32 &, CAknsEffectQueueItemDef *, const TUint16)
voidDoOverrideEffectQueueL(TUint32)
voidDoOverrideImageTableDefinitionL(TUint32)
TUint32 DoOverrideParamsL(const TUint, TUint32 &, CAknsEffectItemDef *, const TUint16)
TInt GetRightsDetailsL(RFile &)
TInt Handle26RelRestrictionChunkL(TUint32)
TInt HandleClassChunkL(TUint32)
TInt HandleFilenameChunkL(TUint32)
TInt HandleGenericRelRestrictionChunkL(TUint32)
TInt HandleLangRestrictionChunkL(TUint32)
TBool IsDrmProtectedL(RFile &)
TBool IsScalableItem(const TAknsItemID &)
TBool OverrideElement(const TAknsItemID &)
TInt ProcessChunksL(TUint32, TUint32)
voidProcessSkinFileL(const TDesC &, TBool)
voidReadAttributeChunkL(const TUint, TInt &, TInt &, TInt &, TInt &, TInt &, TInt &)
voidReadFromProtectedFileL(TDes8 &, RFile &)
voidRetrieveAHMirroringStateL()
voidUpdateOverriddenItem(const CAknsItemDef *)
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
TBool iAHMirroringActive
HBufC *iBitmapFilename
HBufC *iBitmapPath
TBool iColorsFound
TUint8 *iDataPtr
HBufC8 *iDefaultSknBuffer
CDRMHelper *iDrmHelper
RFs iFs
TInt iInitialCount
RArray< TAknsItemID >iItemsToOVerride
TBool iNoColors
RPointerArray< CAknsItemDef >iOverriddenItems
TAknsPkgID iPkg
TUint iPlatformMajor
TUint iPlatformMinor
RAknsSrvSession iSkinSrv
HBufC8 *iSknBuffer

Constructor & Destructor Documentation

CAknLocalSkinInstance(const RFs &, const RAknsSrvSession &)

CAknLocalSkinInstance(const RFs &aFileSystem,
const RAknsSrvSession &aSkinSrv
)[protected]

Parameters

const RFs & aFileSystem
const RAknsSrvSession & aSkinSrv

~CAknLocalSkinInstance()

IMPORT_C~CAknLocalSkinInstance()[virtual]

Destructor.

Member Functions Documentation

AlreadyOverrideElement(const TAknsItemID &)

TBool AlreadyOverrideElement(const TAknsItemID &aId)[private]

Check skin item override state.

Parameters

const TAknsItemID & aId

ApplyL(const TDesC &, RArray< TAknsItemID > &)

IMPORT_C voidApplyL(const TDesC &aFilename,
RArray< TAknsItemID > &aItemsToOverride
)

Applies the given skin to a list of skin items.

leave
EAknsSrvProtected if the skin (aFilename) is DRM-protected and can't be applied locally.

Parameters

const TDesC & aFilenamethe name of the skin file.
RArray< TAknsItemID > & aItemsToOverridelist of skin items for which the skin to be applied.

DoApplyL(const TDesC &)

voidDoApplyL(const TDesC &aFilename)[private]

Parameters

const TDesC & aFilename

DoOverrideBitmapDefinitionL(TUint32)

voidDoOverrideBitmapDefinitionL(TUint32aOffset)[private]

Parameters

TUint32 aOffset

DoOverrideColorTableDefinitionL(TUint32)

voidDoOverrideColorTableDefinitionL(TUint32aOffset)[private]

Parameters

TUint32 aOffset

DoOverrideEffectCommandsL(const TUint, TUint32 &, CAknsEffectQueueItemDef *, const TUint16)

TUint32 DoOverrideEffectCommandsL(const TUintaOffset,
TUint32 &aBase,
CAknsEffectQueueItemDef *aEffectQueue,
const TUint16aEffectCount
)[private]

Parameters

const TUint aOffset
TUint32 & aBase
CAknsEffectQueueItemDef * aEffectQueue
const TUint16 aEffectCount

DoOverrideEffectQueueL(TUint32)

voidDoOverrideEffectQueueL(TUint32aOffset)[private]

Parameters

TUint32 aOffset

DoOverrideImageTableDefinitionL(TUint32)

voidDoOverrideImageTableDefinitionL(TUint32fileoffset)[private]

Parameters

TUint32 fileoffset

DoOverrideParamsL(const TUint, TUint32 &, CAknsEffectItemDef *, const TUint16)

TUint32 DoOverrideParamsL(const TUintaOffset,
TUint32 &aEqBase,
CAknsEffectItemDef *aEffect,
const TUint16aParamCount
)[private]

Parameters

const TUint aOffset
TUint32 & aEqBase
CAknsEffectItemDef * aEffect
const TUint16 aParamCount

GetRightsDetailsL(RFile &)

TInt GetRightsDetailsL(RFile &aFile)[private]

Parameters

RFile & aFile

Handle26RelRestrictionChunkL(TUint32)

TInt Handle26RelRestrictionChunkL(TUint32aFileOffset)[private]

Parameters

TUint32 aFileOffset

HandleClassChunkL(TUint32)

TInt HandleClassChunkL(TUint32aOffset)[private]

Parameters

TUint32 aOffset

HandleFilenameChunkL(TUint32)

TInt HandleFilenameChunkL(TUint32offset)[private]

Parameters

TUint32 offset

HandleGenericRelRestrictionChunkL(TUint32)

TInt HandleGenericRelRestrictionChunkL(TUint32aFileOffset)[private]

Parameters

TUint32 aFileOffset

HandleLangRestrictionChunkL(TUint32)

TInt HandleLangRestrictionChunkL(TUint32aFileOffset)[private]

Handles language restriction chunk..

Parameters

TUint32 aFileOffset

IsDrmProtectedL(RFile &)

TBool IsDrmProtectedL(RFile &aFile)[private]

Parameters

RFile & aFile

IsScalableItem(const TAknsItemID &)

TBool IsScalableItem(const TAknsItemID &aId)[private]

Parameters

const TAknsItemID & aId

NewL(const RFs &, const RAknsSrvSession &)

IMPORT_C CAknLocalSkinInstance *NewL(const RFs &aFilesystem,
const RAknsSrvSession &aSkinSrv
)[static]

Two-phased constructor.

Parameters

const RFs & aFilesystem
const RAknsSrvSession & aSkinSrv

OverrideElement(const TAknsItemID &)

TBool OverrideElement(const TAknsItemID &aId)[private]

Parameters

const TAknsItemID & aId

ProcessChunksL(TUint32, TUint32)

TInt ProcessChunksL(TUint32aOffset,
TUint32aChunkCount
)[private]

Parameters

TUint32 aOffset
TUint32 aChunkCount

ProcessSkinFileL(const TDesC &, TBool)

voidProcessSkinFileL(const TDesC &aFilename,
TBoolaIsDefaultSkin
)[private]

Load skin item from skin file.

Parameters

const TDesC & aFilenameskin package file name.
TBool aIsDefaultSkinskin package is default skin.

ReadAttributeChunkL(const TUint, TInt &, TInt &, TInt &, TInt &, TInt &, TInt &)

voidReadAttributeChunkL(const TUintaOffset,
TInt &aAttributes,
TInt &aAlignment,
TInt &aCoordX,
TInt &aCoordY,
TInt &aSizeW,
TInt &aSizeH
)[private]

Parameters

const TUint aOffset
TInt & aAttributes
TInt & aAlignment
TInt & aCoordX
TInt & aCoordY
TInt & aSizeW
TInt & aSizeH

ReadFromProtectedFileL(TDes8 &, RFile &)

voidReadFromProtectedFileL(TDes8 &aDes,
RFile &aFile
)[private]

Parameters

TDes8 & aDes
RFile & aFile

RetrieveAHMirroringStateL()

voidRetrieveAHMirroringStateL()[private]

Read arabic/hebrew mirroring state.

UpdateOverriddenItem(const CAknsItemDef *)

voidUpdateOverriddenItem(const CAknsItemDef *aItemDef)[private]

Override local skin item.

Parameters

const CAknsItemDef * aItemDefskin item to be overridden.

Member Data Documentation

TBool iAHMirroringActive

TBool iAHMirroringActive[private]

HBufC * iBitmapFilename

HBufC *iBitmapFilename[private]

HBufC * iBitmapPath

HBufC *iBitmapPath[private]

TBool iColorsFound

TBool iColorsFound[private]

TUint8 * iDataPtr

TUint8 *iDataPtr[private]

HBufC8 * iDefaultSknBuffer

HBufC8 *iDefaultSknBuffer[private]

CDRMHelper * iDrmHelper

CDRMHelper *iDrmHelper[private]

RFs iFs

RFs iFs[private]

TInt iInitialCount

TInt iInitialCount[private]

RArray< TAknsItemID > iItemsToOVerride

RArray< TAknsItemID >iItemsToOVerride[private]

TBool iNoColors

TBool iNoColors[private]

RPointerArray< CAknsItemDef > iOverriddenItems

RPointerArray< CAknsItemDef >iOverriddenItems[private]

TAknsPkgID iPkg

TAknsPkgID iPkg[private]

TUint iPlatformMajor

TUint iPlatformMajor[private]

TUint iPlatformMinor

TUint iPlatformMinor[private]

RAknsSrvSession iSkinSrv

RAknsSrvSession iSkinSrv[private]

HBufC8 * iSknBuffer

HBufC8 *iSknBuffer[private]