00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef CONSOLE_H
00017 #define CONSOLE_H
00018
00019 #define __NO_CONTROL_DURING_START__
00020
00021 #include <e32base.h>
00022
00023 class CPanConnections;
00024 class CConsoleBase;
00025 class CScabbyQueenDealer;
00026 class CScabbyQueenPlayer;
00027
00033 class CActiveConsole : public CActive
00034 {
00035 public:
00036 static CActiveConsole* NewLC(CConsoleBase* aConsole);
00037 ~CActiveConsole();
00038 void IapStartedCallBack();
00039 void DoCancel();
00040 void RunL();
00041 void RequestCharacterL();
00042 void ProcessKeyPressL(TChar aChar);
00043 void MenuLine();
00044 TUint32 GetIpAddress();
00045 TInt StartListening();
00046 CConsoleBase* Console();
00047 TInt GetCardNumber();
00048 TInt CheckBtConnectionL();
00049
00050 private:
00051 void ConstructL(CConsoleBase* aConsole);
00052 CActiveConsole(CConsoleBase* aConsole);
00053 void PlayerProcessL();
00054
00055 private:
00056
00057 TInt iCardNum;
00058 CConsoleBase* iConsole;
00059 CPanConnections* iPanConnection;
00060 CScabbyQueenDealer* iDealer;
00061 CScabbyQueenPlayer* iPlayer;
00062 enum TMenuMode
00063 {
00064 EPan,
00065 EScabbyQueen
00066 };
00067 enum TPlayerRole
00068 {
00069 EDealer,
00070 EPlayer
00071 };
00072 enum
00073 {
00074 EListeningWithoutIAP,
00075 EIAPLoadingAONotActive,
00076 };
00077 TMenuMode iMode;
00078 TPlayerRole iPlayerRole;
00079
00080 };
00081
00082
00083 #endif // CONSOLE_H