Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: apamdr.h
Link against: apparc.lib

Class CApaModelHeader

class CApaModelHeader : public CBase;

Description

An interface class that acts as a wrapper for an application model.

This is also known as an application model header.

The class provides the knowledge for internalizing and externalizing an application model's data. An instance of the class is used by CApaModelDoor.

A concrete implementation of the class must be supplied by the application model (not the application UI). An instance of the class is constructed by a factory object that implements the MApaModelHeaderFactory interface; the factory object is also supplied by the application model (not the application UI).

Derivation

Members

Defined in CApaModelHeader:
AppId(), CApaModelHeader(), DetachFromStoreL(), Reserved_1(), Reserved_2(), StoreL()

Inherited from CBase:
Delete(), Extension_(), operator new()

See also:


Construction and destruction


CApaModelHeader()

protected: IMPORT_C CApaModelHeader();

Description

Constructor for CApaModelHeader

[Top]


Member functions


StoreL()

virtual void StoreL(CStreamStore &aStore, CStreamDictionary &aDict) const=0;

Description

Stores the model and its components in the specified store.

Parameters

CStreamStore &aStore

The store in which the model's components are to be stored.

CStreamDictionary &aDict

The stream dictionary into which stream IDs and associated UIDs are put.


AppId()

virtual TApaAppIdentifier AppId() const=0;

Description

Gets the identity of the application associated with the application model.

Return value

TApaAppIdentifier

The application identity.


DetachFromStoreL()

virtual void DetachFromStoreL(CPicture::TDetach aDegree)=0;

Description

Restores the model to the specified degree.

An implementation of this function should propagate this call to all components of the model.

Parameters

CPicture::TDetach aDegree

The degree to which restoration is needed.


Reserved_1()

private: virtual IMPORT_C void Reserved_1();

Description

Reserved for future use


Reserved_2()

private: virtual IMPORT_C void Reserved_2();

Description

Reserved for future use