TApaPictureFactory Class Reference

class TApaPictureFactory : public MPictureFactory

A factory class for instantiating and restoring an application's door.

A door factory object is constructed by the UI environment and can be accessed by calling CEikonEnv::PictureFactory().

CEikonEnv::PictureFactory() CApaDoor

Inherits from

Public Member Functions
TApaPictureFactory(CApaProcess *)
IMPORT_C voidNewPictureL(TPictureHeader &, const CStreamStore &)
voidSetIconSize(TSize)
Protected Member Functions
TApaPictureFactory()
Private Attributes
CApaProcess *iApaProcess
TSize iIconSize
TInt iSpare

Constructor & Destructor Documentation

TApaPictureFactory(CApaProcess *)

IMPORT_CTApaPictureFactory(CApaProcess *aAppProcess)

Constructs a door factory object for the specified application process.

Parameters

CApaProcess * aAppProcessThe application process.

TApaPictureFactory()

IMPORT_CTApaPictureFactory()[protected]

Constructor for TApaPictureFactory

Member Functions Documentation

NewPictureL(TPictureHeader &, const CStreamStore &)

IMPORT_C voidNewPictureL(TPictureHeader &aPictureHeader,
const CStreamStore &aPictureStore
)const [virtual]

Constructs and restores an application's door (picture) from a stream in the specified store.

The restored door is a CApaDoor type object.

Note that the function can leave with KErrNoMemory if creation of the CApaDoor object fails.

TPictureHeader TPictureHeader::iPicture

Parameters

TPictureHeader & aPictureHeaderThe header identifying the door to be restored. The UID identifying the door must be KUidPictureTypeDoor, otherwise the function leaves with KErrNotSupported. On entry, the door picture must be represented by a stream ID, otherwise the function leaves with KErrBadHandle; on return, the door picture is represented by a pointer to an internalized CApaDoor object.
const CStreamStore & aPictureStoreThe store from which the door will be restored.

SetIconSize(TSize)

voidSetIconSize(TSizeaIconSizeInTwips)[inline]

Sets the size of the icon.

Parameters

TSize aIconSizeInTwipsThe size of the icon, in twips.

Member Data Documentation

CApaProcess * iApaProcess

CApaProcess *iApaProcess[private]

TSize iIconSize

TSize iIconSize[private]

TInt iSpare

TInt iSpare[private]