A_SN's curve
[picodrive.git] / platform / s60 / Picodriveapps60.h
CommitLineData
cc68a136 1#ifndef picodriveapps60h\r
2#define picodriveapps60h\r
3\r
4#include <aknapp.h>\r
5#include <eikapp.h>\r
6#include <e32base.h>\r
7#include <coecntrl.h>\r
8#include <eikenv.h>\r
9#include <coeview.h>\r
10#include <eikappui.h>\r
11class CPicoView:public MCoeView,public CCoeControl\r
12{\r
13public:\r
14 CPicoView() {};\r
15 ~CPicoView(){};\r
16 void ConstructL(){CreateWindowL();SetRect(iEikonEnv->EikAppUi()->ClientRect());ActivateL();SetBlank();};\r
17 void ViewDeactivated(){MakeVisible(EFalse);};\r
18 void ViewActivatedL(const TVwsViewId& /*aPrevViewId*/,TUid /*aCustomMessageId*/,const TDesC8& /*aCustomMessage*/)\r
19 {\r
20 MakeVisible(ETrue);\r
21 }\r
22 TVwsViewId ViewId() const\r
23 {\r
24 TVwsViewId viewId(TUid::Uid(0x101F9B49),TUid::Uid(0x101010));\r
25 return viewId;\r
26 }\r
27};\r
28\r
29class CPicoDrive:public CEikApplication\r
30{\r
31public:\r
32 CPicoDrive();\r
33 ~CPicoDrive();\r
34 CApaDocument* CreateDocumentL();\r
35 TUid AppDllUid() const;\r
36};\r
37\r
38\r
39#include <AKNdoc.h>\r
40\r
41class CPicoDriveDoc:public CAknDocument\r
42{\r
43public:\r
44 ~CPicoDriveDoc();\r
45 CEikAppUi* CreateAppUiL();\r
46 void ConstructL();\r
47 CPicoDriveDoc(CEikApplication& aApplicaiton);\r
48};\r
49\r
50#include <aknappui.h>\r
51class CPicoDriveUi;\r
52class CPicoWatcher:public CActive\r
53{\r
54public:\r
55 CPicoWatcher();\r
56 ~CPicoWatcher();\r
57 void DoCancel();\r
58 void RunL();\r
59 CPicoDriveUi* iAppUi;\r
60};\r
61\r
62class CPicoDriveUi:public CAknAppUi\r
63{\r
64public:\r
65 CPicoDriveUi();\r
66 ~CPicoDriveUi();\r
67 void ConstructL();\r
68 void HandleCommandL(TInt aCommand);\r
69 void HandleForegroundEventL(TBool aForeground);\r
70 void BringUpEmulatorL();\r
71private:\r
72 CPicoView* iView;\r
73 TThreadId iThreadId;\r
74 TInt iExeWgId;\r
75 RThread iThreadWatch;\r
76 CPicoWatcher* iWatcher;\r
77};\r
78#endif