00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef __SERV_APP_MINIMAL_H__
00017 #define __SERV_APP_MINIMAL_H__
00018
00019 #include <eikenv.h>
00020 #include <eikappui.h>
00021 #include <eikapp.h>
00022 #include <eikdoc.h>
00023 #include <eikmenup.h>
00024
00025 #include "server.h"
00026 #include "session.h"
00027
00028
00029 class CMinimalSession : public CServAppSession
00030 {
00031 public:
00032 ~CMinimalSession();
00033 CMinimalSession();
00034 private:
00035 virtual void Display(const TDesC & aMessage);
00036 };
00037
00038
00039 class CExampleApplication : public CEikApplication
00040 {
00041 private:
00042 CApaDocument* CreateDocumentL();
00043 TUid AppDllUid() const;
00044 TFileName ResourceFileName() const;
00045 void NewAppServerL(CApaAppServer*& aAppServer);
00046 };
00047
00048
00049 class CExampleAppView : public CCoeControl
00050 {
00051 public:
00052 static CExampleAppView* NewL(const TRect& aRect);
00053 CExampleAppView();
00054 ~CExampleAppView();
00055 void ConstructL(const TRect& aRect);
00056
00057 private:
00058 void Draw(const TRect& ) const;
00059 };
00060
00061
00062 class CExampleAppUi : public CEikAppUi
00063 {
00064 public:
00065 void ConstructL();
00066 ~CExampleAppUi();
00067
00068 private:
00069 void HandleCommandL(TInt aCommand);
00070
00071 private:
00072 CCoeControl* iAppView;
00073 };
00074
00075
00076 class CExampleDocument : public CEikDocument
00077 {
00078 public:
00079 static CExampleDocument* NewL(CEikApplication& aApp);
00080 CExampleDocument(CEikApplication& aApp);
00081 void ConstructL();
00082 private:
00083 CEikAppUi* CreateAppUiL();
00084 };
00085
00086 #endif // __SERV_APP_MINIMAL_H__
00087