COandXAppUi Class Reference

List of all members.

Public Member Functions

 COandXAppUi ()
virtual ~COandXAppUi ()
void ReportWhoseTurn ()
void ReportWinnerL (TInt aWinner)
TStreamId StoreL (CStreamStore &aStore) const
void RestoreL (const CStreamStore &aStore, TStreamId aStreamId)
void ExternalizeL (RWriteStream &aStream) const
void InternalizeL (RReadStream &aStream)
void ReportWhoseTurn ()
void ReportWinnerL (TInt aWinner)
TStreamId StoreL (CStreamStore &aStore) const
void RestoreL (const CStreamStore &aStore, TStreamId aStreamId)
void ExternalizeL (RWriteStream &aStream) const
void InternalizeL (RReadStream &aStream)

Public Attributes

COandXControlleriController
COandXEngineiEngine

Detailed Description

Standard application UI class handles menu commands and reports information to the user.

Definition at line 28 of file oandxappui.h.


Constructor & Destructor Documentation

COandXAppUi::COandXAppUi (  ) 

This empty constructor is defined to ensure that exactly one instance is generated.

Definition at line 30 of file oandxappui.cpp.

COandXAppUi::~COandXAppUi (  )  [virtual]

This destructor undoes the secondary initialization in ConstructL.

See also:
ConstructL

Definition at line 59 of file oandxappui.cpp.


Member Function Documentation

void COandXAppUi::ReportWhoseTurn (  ) 

Tell the user whose turn it is by displaying a nought or cross symbol.

Definition at line 128 of file oandxappui.cpp.

void COandXAppUi::ReportWinnerL ( TInt  aWinner  ) 

Tell the user who won the game by displaying the information in a platform-specific dialog.

Definition at line 136 of file oandxappui.cpp.

TStreamId COandXAppUi::StoreL ( CStreamStore &  aStore  )  const

Store the current game state in the supplied stream store.

Parameters:
aStore Stream store which will contain new stream which encodes the game state.
Returns:
The new stream's ID.
See also:
RestoreL

Definition at line 148 of file oandxappui.cpp.

void COandXAppUi::RestoreL ( const CStreamStore &  aStore,
TStreamId  aStreamId 
)

Restore the current game state from the supplied stream.

Parameters:
aStore Stream store which contains a stream which contains the externalized game state.
aStreamId ID of stream in the store which contains the externalize game state.
See also:
StoreL

Definition at line 166 of file oandxappui.cpp.

void COandXAppUi::ExternalizeL ( RWriteStream &  aStream  )  const

Write the app ui's state, which includes all of the game state, to a writable stream.

Parameters:
aStream Stream to which game state should be written.

Definition at line 183 of file oandxappui.cpp.

void COandXAppUi::InternalizeL ( RReadStream &  aStream  ) 

Restore the game state from the supplied readable stream.

Parameters:
aStream Stream which contains externalized game state.

Definition at line 196 of file oandxappui.cpp.


Generated by  doxygen 1.6.2