TApaModelDoorFactory Class Reference

#include <mw/apamdr.h>

Link against: apparc.lib

class TApaModelDoorFactory : public MPictureFactory

Inherits from

  • TApaModelDoorFactory
    Public Member Functions
    TApaModelDoorFactory(const MApaModelHeaderFactory *)
    virtual IMPORT_C voidNewPictureL(TPictureHeader &, const CStreamStore &)

    Detailed Description

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

    Constructor & Destructor Documentation

    TApaModelDoorFactory ( const MApaModelHeaderFactory * )

    IMPORT_CTApaModelDoorFactory(const MApaModelHeaderFactory *aFactory)

    Constructs a door factory object.

    See also: CApaModelHeader MApaModelHeaderFactory

    ParameterDescription
    aFactoryA pointer to a factory object for constructing the application model wrapper object, also known as the application model header, a CApaModelHeader type. The application model wrapper is provided by the application model (not the application UI), and supplies the knowledge for internalizing the application model data from an embedded store.

    Member Function Documentation

    NewPictureL ( TPictureHeader &, const CStreamStore & )

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

    Reimplemented from MPictureFactory::NewPictureL(TPictureHeader &,const CStreamStore &)const

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

    The restored door is a CApaModelDoor type object.

    See also: TPictureHeader::iPicture

    ParameterDescription
    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 CApaModelDoor object.
    aPictureStoreThe store from which the door will be restored.