RAknsSrvSession Class Reference
class RAknsSrvSession : public RSessionBase |
The client side interface class for the skins server Provides functionality to change the system skin, to retrieve skin content definitions from the server and to listen for skin change events.
AknSkinSrv.lib
Public Member Functions |
---|
| RAknsSrvSession() |
TInt
| AcknowledgeSkinChangeNotification() |
IMPORT_C void | AddWallpaperL(const TDesC &, const TSize &) |
IMPORT_C TInt | CheckIconConfiguration(TUid) |
IMPORT_C TInt | ClearScalableGraphics() |
IMPORT_C void | ClientError(TInt) |
IMPORT_C void | Close() |
IMPORT_C TInt | Connect(MAknsSkinChangeObserver *, TInt) |
IMPORT_C TInt | CopySkin(const TAknsPkgID, TAknSkinSrvSkinPackageLocation, TAknSkinSrvSkinPackageLocation) |
IMPORT_C TInt | CopySoundFile(const TDesC &, const TDesC &) |
IMPORT_C CAknsSrvChunkLookup * | CreateChunkLookupL() |
IMPORT_C void | DecodeWallpaperImageL(const TDesC &, const TSize &, CFbsBitmap *&, CFbsBitmap *&) |
IMPORT_C TInt | DeleteSkin(const TAknsPkgID, TAknSkinSrvSkinPackageLocation) |
IMPORT_C void | DisableSkinChangeNotify() |
IMPORT_C void | EnableSkinChangeNotify() |
IMPORT_C CArrayPtr< CAknsSrvSkinInformationPkg > * | EnumerateSkinPackagesL(TAknSkinSrvSkinPackageLocation) |
IMPORT_C void | FreeUnnecessaryLayoutBitmaps(TAknsSrcScreenMode) |
IMPORT_C TInt | OpenBitmapFile(const TDesC &, TInt &) |
IMPORT_C TInt | OpenImageInifile(TAknsSrvInifileType, TInt &) |
IMPORT_C TInt | OpenInifile(const TAknsPkgID, TAknSkinSrvSkinPackageLocation, TInt &, TBool) |
IMPORT_C void | RemoveAllWallpapers() |
IMPORT_C void | RemoveWallpaper(const TDesC &) |
IMPORT_C TInt | SetAllDefinitionSets(const TAknsPkgID) |
IMPORT_C TInt | SetIdleWallpaper(const TDesC &) |
IMPORT_C TInt | SetSlideSetWallpaper(const CDesCArray &) |
IMPORT_C TInt | StoreScalableGraphics(const TAknsItemID &, const TInt, const TSize &, const CFbsBitmap *, const CFbsBitmap *, TBool) |
IMPORT_C CFbsBitmap * | WallpaperImageL(const TDesC &) |
Inherited Functions |
---|
| RHandleBase::Attributes()const |
| RHandleBase::BTraceId()const |
| RHandleBase::DoExtendedClose() |
| RHandleBase::Duplicate(const RThread &,TOwnerType) |
| RHandleBase::FullName()const |
| RHandleBase::FullName(TDes &)const |
| RHandleBase::Handle()const |
| RHandleBase::HandleInfo(THandleInfo *) |
| RHandleBase::Name()const |
| RHandleBase::NotifyDestruction(TRequestStatus &) |
| RHandleBase::Open(const TFindHandleBase &,TOwnerType) |
| RHandleBase::OpenByName(const TDesC &,TOwnerType,TInt) |
| RHandleBase::RHandleBase() |
| RHandleBase::RHandleBase(TInt) |
| RHandleBase::SetHandle(TInt) |
| RHandleBase::SetHandleNC(TInt) |
| RSessionBase::CreateSession(RServer2,const TVersion &) |
| RSessionBase::CreateSession(RServer2,const TVersion &,TInt) |
| RSessionBase::CreateSession(RServer2,const TVersion &,TInt,TIpcSessionType,const TSecurityPolicy *,TRequestStatus *) |
| RSessionBase::CreateSession(const TDesC &,const TVersion &) |
| RSessionBase::CreateSession(const TDesC &,const TVersion &,TInt) |
| RSessionBase::CreateSession(const TDesC &,const TVersion &,TInt,TIpcSessionType,const TSecurityPolicy *,TRequestStatus *) |
| RSessionBase::CreateSession(const TDesC &,const TVersion &,TInt,TRequestStatus *) |
| RSessionBase::Open(RMessagePtr2,TInt,TOwnerType) |
| RSessionBase::Open(RMessagePtr2,TInt,const TSecurityPolicy &,TOwnerType) |
| RSessionBase::Open(TInt,TOwnerType) |
| RSessionBase::Open(TInt,const TSecurityPolicy &,TOwnerType) |
| RSessionBase::Send(TInt)const |
| RSessionBase::Send(TInt,const TIpcArgs &)const |
| RSessionBase::SendReceive(TInt)const |
| RSessionBase::SendReceive(TInt,TRequestStatus &)const |
| RSessionBase::SendReceive(TInt,const TIpcArgs &)const |
| RSessionBase::SendReceive(TInt,const TIpcArgs &,TRequestStatus &)const |
| RSessionBase::SetReturnedHandle(TInt) |
| RSessionBase::SetReturnedHandle(TInt,RHandleBase &) |
| RSessionBase::SetReturnedHandle(TInt,const TSecurityPolicy &) |
| RSessionBase::ShareAuto() |
| RSessionBase::ShareProtected() |
Constructor & Destructor Documentation
RAknsSrvSession()
IMPORT_C | RAknsSrvSession | ( | ) | |
Member Functions Documentation
AcknowledgeSkinChangeNotification()
TInt
| AcknowledgeSkinChangeNotification | ( | ) | |
Acknowledges the skin change notification.
AddWallpaperL(const TDesC &, const TSize &)
IMPORT_C void | AddWallpaperL | ( | const TDesC & | aFilename, |
| const TSize & | aTargetSize |
| ) | |
Parameters
const TDesC & aFilename | a fully qualified path(incl. path + filename) of the wallpaper |
const TSize & aTargetSize | - Decoded size. if not set, Both portait and landscape(base on screen size) will be decoded. |
CheckIconConfiguration(TUid)
IMPORT_C TInt | CheckIconConfiguration | ( | TUid | aAppUid | ) | |
ClearScalableGraphics()
IMPORT_C TInt | ClearScalableGraphics | ( | ) | |
Instructs the server to cleanup any stored layout bitmaps.
ClientError(TInt)
IMPORT_C void | ClientError | ( | TInt | aErrorCode = 0 | ) | |
Notifies the server that the skin client has encountered an error while doing a skin change. After this call the server falls back to the system default skin and ignores any calls to this funcion to avoid infite loop.
Parameters
TInt aErrorCode = 0 | Error code. |
Connect(MAknsSkinChangeObserver *, TInt)
Starts the server if it's not allready started and creates a new session.
CopySkin(const TAknsPkgID, TAknSkinSrvSkinPackageLocation, TAknSkinSrvSkinPackageLocation)
CopySoundFile(const TDesC &, const TDesC &)
IMPORT_C TInt | CopySoundFile | ( | const TDesC & | aSourceFilename, |
| const TDesC & | aTargetFilename |
| ) | |
Parameters
const TDesC & aSourceFilename | |
const TDesC & aTargetFilename | |
CreateChunkLookupL()
Creates a chunk lookup object.
- Since
- 2.0
-
Exceptions:
- If construction fails, method leaves with an error code.
DecodeWallpaperImageL(const TDesC &, const TSize &, CFbsBitmap *&, CFbsBitmap *&)
DeleteSkin(const TAknsPkgID, TAknSkinSrvSkinPackageLocation)
DisableSkinChangeNotify()
IMPORT_C void | DisableSkinChangeNotify | ( | ) | |
Disables the servers skin change notification mechanism. After this call no notification events are generated until a subsequent EnableSkinChangeNotify() is called. The function affects all sessions.
EnableSkinChangeNotify()
IMPORT_C void | EnableSkinChangeNotify | ( | ) | |
Enables the servers skin change notifications mechanism. If the skin definitions have changed, or there are pending notification events, SkinContentChanged() is called for all sessions. The function affects all sessions.
EnumerateSkinPackagesL(TAknSkinSrvSkinPackageLocation)
Retrieves skin information for all the available skins packages in specified location. After a call to this function, the ownewship of the array and the items in it is transferred to the caller.
- Since
- 2.0
-
Exceptions:
- If enumeration failed, method leaves with an error code.
Parameters
TAknSkinSrvSkinPackageLocation aLocation = EAknsSrvPhone | the location from where to look for the skin packages. Default value is phone (i.e., c and z drives). |
EventHandled()
void | EventHandled | ( | ) | [private] |
Completes event handling.
FreeUnnecessaryLayoutBitmaps(TAknsSrcScreenMode)
OpenBitmapFile(const TDesC &, TInt &)
IMPORT_C TInt | OpenBitmapFile | ( | const TDesC & | aFilename, |
| TInt & | aFileHandle |
| ) | |
OpenImageInifile(TAknsSrvInifileType, TInt &)
OpenInifile(const TAknsPkgID, TAknSkinSrvSkinPackageLocation, TInt &, TBool)
RemoveAllWallpapers()
IMPORT_C void | RemoveAllWallpapers | ( | ) | |
Remove all decoded wallpaper.
RemoveWallpaper(const TDesC &)
IMPORT_C void | RemoveWallpaper | ( | const TDesC & | aFilename | ) | |
Remove one decoded wallpaper.
Parameters
const TDesC & aFilename | a fully qualified path(incl. path + filename) of the wallpaper |
Reserved1()
IMPORT_C TInt | Reserved1 | ( | ) | [private] |
Reserved2()
IMPORT_C TInt | Reserved2 | ( | ) | [private] |
Reserved3()
IMPORT_C TInt | Reserved3 | ( | ) | [private] |
Reserved4()
IMPORT_C void | Reserved4 | ( | ) | [private] |
SendCancel()
void | SendCancel | ( | ) | [private] |
SetAllDefinitionSets(const TAknsPkgID)
Sets all the active item definition sets (including all the classes). Item definition sets of the skin with the given package ID are activated and clients are notified about the skin change.
Parameters
const TAknsPkgID aPID | Package ID of the skin to be activated. |
SetIdleWallpaper(const TDesC &)
IMPORT_C TInt | SetIdleWallpaper | ( | const TDesC & | aFilename | ) | |
Sets the idle state wallpaper.
Parameters
const TDesC & aFilename | a fully qualified path(incl. path + filename) to the mbm file containing the wallpaper |
SetSlideSetWallpaper(const CDesCArray &)
StoreScalableGraphics(const TAknsItemID &, const TInt, const TSize &, const CFbsBitmap *, const CFbsBitmap *, TBool)
Stores a duplicate of the given bitmap (optionally with mask).
Parameters
const TAknsItemID & aIID | Item ID used as a key. |
const TInt aType | Layout type used as a key. |
const TSize & aLayoutSize | |
const CFbsBitmap * aBmp | Pointer to a bitmap. Must be non-NULL. No ownership is transferred. |
const CFbsBitmap * aMask | Pointer to a mask, or NULL. No ownership is transferred. |
TBool aMorphing = EFalse | |
WallpaperImageL(const TDesC &)
Member Data Documentation
TAknsSrvClientMemberData * iMemberData
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.