COandXDocument Class Reference

List of all members.

Public Member Functions

virtual ~COandXDocument ()
virtual CEikAppUi * CreateAppUiL ()
virtual void StoreL (CStreamStore &aStore, CStreamDictionary &aStreamDic) const
virtual void RestoreL (const CStreamStore &aStore, const CStreamDictionary &aStreamDic)
virtual CFileStore * OpenFileL (TBool aDoOpen, const TDesC &aFilename, RFs &aFs)
virtual CEikAppUi * CreateAppUiL ()
virtual void StoreL (CStreamStore &aStore, CStreamDictionary &aStreamDic) const
virtual void RestoreL (const CStreamStore &aStore, const CStreamDictionary &aStreamDic)
virtual CFileStore * OpenFileL (TBool aDoOpen, const TDesC &aFilename, RFs &aFs)

Static Public Member Functions

static COandXDocumentNewL (CEikApplication &aApp)
static COandXDocumentNewL (CEikApplication &aApp)

Detailed Description

Standard document class creates the application's UI, and stores and restores the game state.

Definition at line 27 of file oandxdocument.h.


Constructor & Destructor Documentation

COandXDocument::~COandXDocument (  )  [virtual]

This d'tor is empty but defining it here ensures that only one instance is generated.

Definition at line 49 of file oandxdocument.cpp.


Member Function Documentation

COandXDocument * COandXDocument::NewL ( CEikApplication &  aApp  )  [static]

Factory function allocates new initialized document object.

Parameters:
aApp The application object, which is used to initialize the newly-created document object.
Returns:
New initialized document object. The object is owned by the caller.

Definition at line 21 of file oandxdocument.cpp.

CEikAppUi * COandXDocument::CreateAppUiL (  )  [virtual]

Implement CEikDocument by creating a new app UI object.

Returns:
New app UI object. This is CBase-initialized and its constructor has been called, but no secondary initialization has been performed.

Definition at line 58 of file oandxdocument.cpp.

void COandXDocument::StoreL ( CStreamStore &  aStore,
CStreamDictionary &  aStreamDic 
) const [virtual]

Override CEikDocument by storing the current game state.

Parameters:
aStore Stream store whose streams will describe the game.
aStreamDic On exit associates stream UIDs with the corresponding stream IDs.
See also:
RestoreL

Definition at line 71 of file oandxdocument.cpp.

void COandXDocument::RestoreL ( const CStreamStore &  aStore,
const CStreamDictionary &  aStreamDic 
) [virtual]

Override CEikDocument by restoring a game from the supplied stream store.

Parameters:
aStore Stream store which contains the externalized game.
aStreamDic Associates stream UIDs with the corresponding stream IDs.
See also:
StoreL

Definition at line 85 of file oandxdocument.cpp.

CFileStore * COandXDocument::OpenFileL ( TBool  aDoOpen,
const TDesC &  aFilename,
RFs &  aFs 
) [virtual]

Overrides CAknDocument by directly calling CEikDocument::OpenFileL. This function must be defined for S60 because the CAknDocument implementation of OpenFileL does not support document-based applications.

Parameters:
aDoOpen Whether should open an existing file instead of creating a new file.
aFilename The path and name of the file to open or create.
aFs File server session to use.

Definition at line 98 of file oandxdocument.cpp.


Generated by  doxygen 1.6.2