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.
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
*)
|
Constructor & Destructor Documentation
CAknLocalSkinInstance(const RFs &, const RAknsSrvSession &)
CAknLocalSkinInstance
|
(
|
const
RFs
&
|
aFileSystem,
|
|
const
RAknsSrvSession
&
|
aSkinSrv
|
|
)
|
[protected]
|
~CAknLocalSkinInstance()
IMPORT_C
|
~CAknLocalSkinInstance
|
(
|
)
|
[virtual]
|
Member Functions Documentation
AlreadyOverrideElement(const TAknsItemID &)
Check skin item override state.
ApplyL(const TDesC &, RArray< TAknsItemID > &)
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]
|
DoOverrideBitmapDefinitionL(TUint32)
void
|
DoOverrideBitmapDefinitionL
|
(
|
TUint32
|
aOffset
|
)
|
[private]
|
DoOverrideColorTableDefinitionL(TUint32)
void
|
DoOverrideColorTableDefinitionL
|
(
|
TUint32
|
aOffset
|
)
|
[private]
|
DoOverrideEffectCommandsL(const TUint, TUint32 &, CAknsEffectQueueItemDef *, const TUint16)
DoOverrideEffectQueueL(TUint32)
void
|
DoOverrideEffectQueueL
|
(
|
TUint32
|
aOffset
|
)
|
[private]
|
DoOverrideImageTableDefinitionL(TUint32)
void
|
DoOverrideImageTableDefinitionL
|
(
|
TUint32
|
fileoffset
|
)
|
[private]
|
DoOverrideParamsL(const TUint, TUint32 &, CAknsEffectItemDef *, const TUint16)
GetRightsDetailsL(RFile &)
TInt
|
GetRightsDetailsL
|
(
|
RFile
&
|
aFile
|
)
|
[private]
|
Handle26RelRestrictionChunkL(TUint32)
TInt
|
Handle26RelRestrictionChunkL
|
(
|
TUint32
|
aFileOffset
|
)
|
[private]
|
HandleClassChunkL(TUint32)
HandleFilenameChunkL(TUint32)
HandleGenericRelRestrictionChunkL(TUint32)
TInt
|
HandleGenericRelRestrictionChunkL
|
(
|
TUint32
|
aFileOffset
|
)
|
[private]
|
HandleLangRestrictionChunkL(TUint32)
TInt
|
HandleLangRestrictionChunkL
|
(
|
TUint32
|
aFileOffset
|
)
|
[private]
|
Handles language restriction chunk..
IsScalableItem(const TAknsItemID &)
NewL(const RFs &, const RAknsSrvSession &)
OverrideElement(const TAknsItemID &)
ProcessChunksL(TUint32, TUint32)
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]
|
ReadFromProtectedFileL(TDes8 &, RFile &)
void
|
ReadFromProtectedFileL
|
(
|
TDes8
&
|
aDes,
|
|
RFile
&
|
aFile
|
|
)
|
[private]
|
RetrieveAHMirroringStateL()
void
|
RetrieveAHMirroringStateL
|
(
|
)
|
[private]
|
Read arabic/hebrew mirroring state.
UpdateOverriddenItem(const CAknsItemDef *)
void
|
UpdateOverriddenItem
|
(
|
const
CAknsItemDef
*
|
aItemDef
|
)
|
[private]
|
Override local skin item.
Member Data Documentation
TBool
iAHMirroringActive
TBool
|
iAHMirroringActive
|
[private]
|
HBufC * iBitmapFilename
HBufC
*
|
iBitmapFilename
|
[private]
|
HBufC * iBitmapPath
HBufC
*
|
iBitmapPath
|
[private]
|
TBool
iColorsFound
TBool
|
iColorsFound
|
[private]
|
HBufC8 * iDefaultSknBuffer
HBufC8
*
|
iDefaultSknBuffer
|
[private]
|
TInt
iInitialCount
TInt
|
iInitialCount
|
[private]
|
RArray< TAknsItemID > iItemsToOVerride
TBool
iNoColors
TBool
|
iNoColors
|
[private]
|
RPointerArray< CAknsItemDef > iOverriddenItems
TUint
iPlatformMajor
TUint
|
iPlatformMajor
|
[private]
|
TUint
iPlatformMinor
TUint
|
iPlatformMinor
|
[private]
|
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.