CGSBackgroundImage Class Reference

class CGSBackgroundImage : public CBase

CGSBackgroundImage is the background image API class of GS app. It provides functions to get and set background image values.

Inherits from

Constructor & Destructor Documentation

CGSBackgroundImage()

CGSBackgroundImage()[private]

C++ default constructor.

~CGSBackgroundImage()

IMPORT_C~CGSBackgroundImage()

Destructor.

Member Functions Documentation

BackgroundImageL()

IMPORT_C TIntBackgroundImageL()

Returns background image mode.

ConstructL()

voidConstructL()[private]

By default Symbian 2nd phase constructor is private.

DeleteImageL(const TDesC &)

IMPORT_C voidDeleteImageL(const TDesC &aImagePath)

Parameters

const TDesC & aImagePath

GetPlnsStatus()

IMPORT_C TIntGetPlnsStatus()

IsPersonalisationApplicationL()

IMPORT_C voidIsPersonalisationApplicationL()

LoadImageL(const TDesC &, TInt, TInt, TBool, TGSWallpaperType)

voidLoadImageL(const TDesC &aImagePath,
TIntaWidth,
TIntaHeight,
TBoolaBgImage,
TGSWallpaperTypeaWallpaperType
)[private]

Parameters

const TDesC & aImagePath
TInt aWidth
TInt aHeight
TBool aBgImage
TGSWallpaperType aWallpaperType

NewL()

IMPORT_C CGSBackgroundImage *NewL()[static]

Two-phased constructor.

SaveBitmapsL(TDes &, const TDesC &)

voidSaveBitmapsL(TDes &aBmpFileName,
const TDesC &aOriginalFullname
)[private]

Parameters

TDes & aBmpFileName
const TDesC & aOriginalFullname

SetBackgroundImageL(const TInt)

IMPORT_C voidSetBackgroundImageL(const TIntaImage)

Stores background image mode to shared data.

Parameters

const TInt aImageBackground image mode.

SetBackgroundImagePathL(const TDesC &)

IMPORT_C voidSetBackgroundImagePathL(const TDesC &aImagePath)

Converts an idle background image to bitmap and scales it to fit the screen if necessary.

After successful conversion, the background image path is stored into shared data.

Parameters

const TDesC & aImagePathDescriptor which contains the background image path. Max length is KGSMaxImagePath.

SetBackgroundImagePathL(const TDesC &, TDes &)

IMPORT_C voidSetBackgroundImagePathL(const TDesC &aImagePath,
TDes &aBmpFileName
)

Converts an idle background image to bitmap, scales it to fit the screen if necessary, and stores it to the given file.

Background image path is not stored into shared data, but must be set separately.

Parameters

const TDesC & aImagePathDescriptor which contains the background image path. Max length is KGSMaxImagePath.
TDes & aBmpFileNameDescriptor which contains the bitmap file name. Converted image is again stored back in this variable.

SetBackgroundImagePathL(const TDesC &, TDes &, TGSWallpaperType)

IMPORT_C voidSetBackgroundImagePathL(const TDesC &aImagePath,
TDes &aBmpFileName,
TGSWallpaperTypeaWallpaperType
)

Converts the background image to bitmap, scales it to fit the screen if necessary, and stores it to the given file.

Background image path is not stored into shared data, but must be set separately.

Since
2.6

Parameters

const TDesC & aImagePathDescriptor which contains the background image path. Max length is KGSMaxImagePath.
TDes & aBmpFileNameDescriptor which contains the bitmap file name. Converted image is again stored back in this variable.
TGSWallpaperType aWallpaperTypeType of the wallpaper.

SetVTStillImagePathL(const TDesC &, CGSAsyncImageHandling &)

IMPORT_C voidSetVTStillImagePathL(const TDesC &aImagePath,
CGSAsyncImageHandling &aImgHandler
)

Set the current image path for Still Image

Parameters

const TDesC & aImagePath
CGSAsyncImageHandling & aImgHandler

SetWelcomeNoteImageL(const TDesC &, CGSAsyncImageHandling &)

IMPORT_C voidSetWelcomeNoteImageL(const TDesC &aImagePath,
CGSAsyncImageHandling &aImgHandler
)

Converts the welcome note image to bitmap, scales it to fit the screen if necessary. Stores the bitmap to mbm file. Stores welcome note image path to shared data.

Parameters

const TDesC & aImagePathDescriptor which contains the welcome note image path. Max length is KGSMaxImagePath.
CGSAsyncImageHandling & aImgHandler

Member Data Documentation

CFbsBitmap * iBitmap

CFbsBitmap *iBitmap[private]

RSharedDataClient * iClient

RSharedDataClient *iClient[private]

TDisplayMode iDisplayMode

TDisplayMode iDisplayMode[private]

CGSAsyncImageHandling * iImgHandler

CGSAsyncImageHandling *iImgHandler[private]

RLibrary iLibrary

RLibrary iLibrary[private]

CRepository * iPersonalizationRepository

CRepository *iPersonalizationRepository[private]

RPhCltServer iPhoneClient

RPhCltServer iPhoneClient[private]

TInt iPlnsInDevice

TInt iPlnsInDevice

CRepository * iStartupConfRepository

CRepository *iStartupConfRepository[private]

CRepository * iTelephonyRepository

CRepository *iTelephonyRepository[private]