00001 // Copyright 2002 Kenneth Guy, 00002 // 00003 // You are free to take the source and do as you wish with it. 00004 // However it would be nice if you let me know if the code was useful 00005 // to you and give me an acknowledgement if you use a significant portion 00006 // of the code in an application. 00007 // 00008 // CGameAppView.h 00009 // 00010 00011 #ifndef _CGAMEAPPVIEW_H_ 00012 #define _CGAMEAPPVIEW_H_ 00013 00018 #include <eikappui.h> 00019 #include <eikapp.h> 00020 #include <eikdoc.h> 00021 #include <eikenv.h> 00022 #include <uikon.hrh> 00023 #include <eikmfne.h> 00024 #include <eikdialg.h> 00025 #include <eikon.hrh> 00026 00027 class CGameState; 00028 00033 class CGameAppView : public CCoeControl, public MCoeControlContext { 00034 public: 00035 void ConstructL(const TRect& aRect, CGameState *aState); 00036 ~CGameAppView(); 00037 private: 00038 void Draw(const TRect& aRect) const; 00039 void DrawHighScores() const; 00040 void DrawPaused() const; 00041 void DrawLevelCompleted() const; 00042 00043 private: 00044 CGameState *iGameState; 00045 HBufC* iCompleteString; 00046 HBufC* iPausedString; 00047 HBufC* iScoresString; 00048 }; 00049 00050 00051 #endif