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

Public Member Functions
~CAknLocalSkinInstance ()
IMPORT_C void ApplyL (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 &)
void DoApplyL (const TDesC &)
void DoOverrideBitmapDefinitionL ( TUint32 )
void DoOverrideColorTableDefinitionL ( TUint32 )
TUint32 DoOverrideEffectCommandsL (const TUint , TUint32 &, CAknsEffectQueueItemDef *, const TUint16 )
void DoOverrideEffectQueueL ( TUint32 )
void DoOverrideImageTableDefinitionL ( 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 )
void ProcessSkinFileL (const TDesC &, TBool )
void ReadAttributeChunkL (const TUint , TInt &, TInt &, TInt &, TInt &, TInt &, TInt &)
void ReadFromProtectedFileL ( TDes8 &, RFile &)
void RetrieveAHMirroringStateL ()
void UpdateOverriddenItem (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 void ApplyL ( 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 & aFilename the name of the skin file.
RArray < TAknsItemID > & aItemsToOverride list of skin items for which the skin to be applied.

DoApplyL(const TDesC &)

void DoApplyL ( const TDesC & aFilename ) [private]

Parameters

const TDesC & aFilename

DoOverrideBitmapDefinitionL(TUint32)

void DoOverrideBitmapDefinitionL ( TUint32 aOffset ) [private]

Parameters

TUint32 aOffset

DoOverrideColorTableDefinitionL(TUint32)

void DoOverrideColorTableDefinitionL ( TUint32 aOffset ) [private]

Parameters

TUint32 aOffset

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

TUint32 DoOverrideEffectCommandsL ( const TUint aOffset,
TUint32 & aBase,
CAknsEffectQueueItemDef * aEffectQueue,
const TUint16 aEffectCount
) [private]

Parameters

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

DoOverrideEffectQueueL(TUint32)

void DoOverrideEffectQueueL ( TUint32 aOffset ) [private]

Parameters

TUint32 aOffset

DoOverrideImageTableDefinitionL(TUint32)

void DoOverrideImageTableDefinitionL ( TUint32 fileoffset ) [private]

Parameters

TUint32 fileoffset

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

TUint32 DoOverrideParamsL ( const TUint aOffset,
TUint32 & aEqBase,
CAknsEffectItemDef * aEffect,
const TUint16 aParamCount
) [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 ( TUint32 aFileOffset ) [private]

Parameters

TUint32 aFileOffset

HandleClassChunkL(TUint32)

TInt HandleClassChunkL ( TUint32 aOffset ) [private]

Parameters

TUint32 aOffset

HandleFilenameChunkL(TUint32)

TInt HandleFilenameChunkL ( TUint32 offset ) [private]

Parameters

TUint32 offset

HandleGenericRelRestrictionChunkL(TUint32)

TInt HandleGenericRelRestrictionChunkL ( TUint32 aFileOffset ) [private]

Parameters

TUint32 aFileOffset

HandleLangRestrictionChunkL(TUint32)

TInt HandleLangRestrictionChunkL ( TUint32 aFileOffset ) [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 ( TUint32 aOffset,
TUint32 aChunkCount
) [private]

Parameters

TUint32 aOffset
TUint32 aChunkCount

ProcessSkinFileL(const TDesC &, TBool)

void ProcessSkinFileL ( const TDesC & aFilename,
TBool aIsDefaultSkin
) [private]

Load skin item from skin file.

Parameters

const TDesC & aFilename skin package file name.
TBool aIsDefaultSkin skin package is default skin.

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

void ReadAttributeChunkL ( const TUint aOffset,
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 &)

void ReadFromProtectedFileL ( TDes8 & aDes,
RFile & aFile
) [private]

Parameters

TDes8 & aDes
RFile & aFile

RetrieveAHMirroringStateL()

void RetrieveAHMirroringStateL ( ) [private]

Read arabic/hebrew mirroring state.

UpdateOverriddenItem(const CAknsItemDef *)

void UpdateOverriddenItem ( const CAknsItemDef * aItemDef ) [private]

Override local skin item.

Parameters

const CAknsItemDef * aItemDef skin 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]