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 | |
COandXController * | iController |
COandXEngine * | iEngine |
Standard application UI class handles menu commands and reports information to the user.
Definition at line 28 of file oandxappui.h.
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.
Definition at line 59 of file oandxappui.cpp.
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.
aStore | Stream store which will contain new stream which encodes the game state. |
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.
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. |
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.
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.
aStream | Stream which contains externalized game state. |
Definition at line 196 of file oandxappui.cpp.