1 /*******************************************************************
\r
5 * Author: Peter van Sebille (peter@yipton.net)
\r
7 * Modified/adapted for picodriveN by notaz, 2006
\r
9 * (c) Copyright 2006, notaz
\r
10 * (c) Copyright 2001, Peter van Sebille
\r
11 * All Rights Reserved
\r
13 *******************************************************************/
\r
18 #include <coecntrl.h>
\r
19 #include <coeccntx.h>
\r
20 #include <coemain.h>
\r
22 #include <qikappui.h>
\r
23 #include <qikapplication.h>
\r
24 #include <qikviewbase.h>
\r
25 //#include <eikapp.h>
\r
26 #include <qikdocument.h>
\r
29 #include "picodrive.hrh"
\r
31 const TUid KUidPicolApp = { 0xA00010F3 };
\r
32 const TUid KUidPicolMainView = { 0x00000001 };
\r
33 //const TUid KUidPicolFOView = { 0x1000C194 };
\r
34 //const TUid KUidPicolFCView = { 0x1000C195 };
\r
35 const TUid KUidPicolStore = { 0x00000011 }; // store stream UID
\r
39 // EScreenModeFlipOpen = 0,
\r
40 // EScreenModeFlipClosed
\r
44 extern "C" struct _currentConfig_t;
\r
46 class CPicolAppView : public CQikViewBase
\r
49 static CPicolAppView* NewLC(CQikAppUi& aAppUi, TPicoConfig &aCurrentConfig);
\r
52 // from CQikViewBase
\r
53 TVwsViewId ViewId()const;
\r
54 void HandleCommandL(CQikCommand& aCommand);
\r
55 void UpdateCommandList();
\r
58 // from CQikViewBase
\r
59 void ViewConstructL();
\r
62 CPicolAppView(CQikAppUi& aAppUi, TPicoConfig &aCurrentConfig);
\r
65 protected: // new stuf
\r
66 void DisplayAboutDialogL();
\r
67 void DisplayOpenROMDialogL();
\r
68 void DisplayConfigDialogL();
\r
69 void DisplayDebugDialogL();
\r
75 TPicoConfig &iCurrentConfig;
\r
82 class CPicolAppUi : public CQikAppUi
\r
88 CPicolAppView* iAppView;
\r
92 class CPicolDocument : public CQikDocument
\r
95 CPicolDocument(CQikApplication& aApp);
\r
96 void StoreL(CStreamStore& aStore, CStreamDictionary& aStreamDic) const;
\r
97 void RestoreL(const CStreamStore& aStore, const CStreamDictionary& aStreamDic);
\r
99 TPicoConfig iCurrentConfig;
\r
101 private: // from CQikDocument
\r
102 CQikAppUi* CreateAppUiL();
\r
106 class CPicolApplication : public CQikApplication
\r
108 private: // from CApaApplication
\r
109 CApaDocument* CreateDocumentL();
\r
110 TUid AppDllUid() const;
\r