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
45 class CPicolAppView : public CQikViewBase
\r
48 static CPicolAppView* NewLC(CQikAppUi& aAppUi, TPicoConfig& aCurrentConfig);
\r
51 // from CQikViewBase
\r
52 TVwsViewId ViewId()const;
\r
53 void HandleCommandL(CQikCommand& aCommand);
\r
54 void UpdateCommandList();
\r
57 // from CQikViewBase
\r
58 void ViewConstructL();
\r
61 CPicolAppView(CQikAppUi& aAppUi, TPicoConfig& aCurrentConfig);
\r
64 protected: // new stuf
\r
65 void DisplayAboutDialogL();
\r
66 void DisplayOpenROMDialogL();
\r
67 void DisplayConfigDialogL();
\r
68 void DisplayDebugDialogL();
\r
74 TPicoConfig& iCurrentConfig;
\r
81 class CPicolAppUi : public CQikAppUi
\r
87 CPicolAppView* iAppView;
\r
91 class CPicolDocument : public CQikDocument
\r
94 CPicolDocument(CQikApplication& aApp);
\r
95 void StoreL(CStreamStore& aStore, CStreamDictionary& aStreamDic) const;
\r
96 void RestoreL(const CStreamStore& aStore, const CStreamDictionary& aStreamDic);
\r
98 TPicoConfig iCurrentConfig;
\r
100 private: // from CQikDocument
\r
101 CQikAppUi* CreateAppUiL();
\r
105 class CPicolApplication : public CQikApplication
\r
107 private: // from CApaApplication
\r
108 CApaDocument* CreateDocumentL();
\r
109 TUid AppDllUid() const;
\r