From aedabc5aa0bcbf5154e671cdf05f40fbf9ad3a16 Mon Sep 17 00:00:00 2001 From: ehouse Date: Sun, 9 Jan 2005 18:47:05 +0000 Subject: [PATCH] add class for tmp storage of game info; new dialog has only one pane for players --- symbian/inc/symgamdl.h | 33 +++++++++++++++++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff --git a/symbian/inc/symgamdl.h b/symbian/inc/symgamdl.h index 72cf691b5..382f9d6fe 100644 --- a/symbian/inc/symgamdl.h +++ b/symbian/inc/symgamdl.h @@ -24,15 +24,34 @@ extern "C" { #include "comtypes.h" #include "xwstream.h" #include "mempool.h" +#include "game.h" } #include #include -class CXWGameInfoDlg : public CEikDialog +class TGameInfoBuf { public: - CXWGameInfoDlg( MPFORMAL_NOCOMMA ); + TGameInfoBuf::TGameInfoBuf( const CurGameInfo* aGi, + CDesC16ArrayFlat* aDictList ); + CDesC16ArrayFlat* GetDictList() { return iDictList; } + void CopyToL( MPFORMAL CurGameInfo* aGi ); + + TBool iIsRobot[MAX_NUM_PLAYERS]; + TBool iIsLocal[MAX_NUM_PLAYERS]; + + TBuf16<32> iPlayerNames[MAX_NUM_PLAYERS]; + + CDesC16ArrayFlat* iDictList; /* owned externally! */ + TInt iDictIndex; + TInt iNPlayers; +}; + +class CXWGameInfoDlg : public CEikDialog /* CEikForm instead? */ +{ + public: + CXWGameInfoDlg( MPFORMAL TGameInfoBuf* aGib, TBool aNewGame ); ~CXWGameInfoDlg(); private: @@ -40,6 +59,16 @@ class CXWGameInfoDlg : public CEikDialog void HandleControlStateChangeL( TInt aControlId ); TBool OkToExitL( TInt aKeyCode ); + void LoadPlayerInfo( TInt aWhich ); + void SavePlayerInfo( TInt aWhich ); + void SetPlayerShown( TInt aPlayer ); + CDesC16ArrayFlat* MakeNumListL( TInt aFirst, TInt aLast ); + + TBool iIsNewGame; + TGameInfoBuf* iGib; + + TInt iCurPlayerShown; + MPSLOT };