Texture: got rid of the image resizing, since you can just pass null data to glTexIma...
[io/quag.git] / projects / symbian / symbianmain.h
blob2e99f11ac55461bad560f917ed680a195ad39975
1 #if !defined(SYMBIANMAIN_H)
2 #define SYMBIANMAIN_H
4 #include <coecntrl.h>
5 #include <es_sock.h>
6 #include <f32file.h>
7 #include <eikappui.h>
8 #include <e32des16.h>
10 class CIoUi;
11 class CPlainText;
12 class CEikConsoleScreen;
14 class CConsoleControl : public CCoeControl
16 public:
17 RFs fileServer;
18 RSocketServ socketServer;
19 CPlainText* clipboardText;
20 CEikConsoleScreen* iConsole; // Standard EIKON console control
21 CIoUi* pUI;
23 public:
24 static CConsoleControl* NewL(CIoUi* ui, IoState* vm, TRect& rect);
25 ~CConsoleControl();
26 void ConstructL(CIoUi* ui, IoState* vm, TRect& rect);
28 // Override CCoeControl
29 TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);
30 void ActivateL();
32 void Print(const TDesC& aDes);
33 void Flush();
34 void SetFont(TFontSpec& font) const;
36 protected:
37 CConsoleControl();
39 private:
40 IoState* pVM;
41 char keyBuffer[1024];
42 int keyIndex;
43 char* historyBuffer[100];
44 int historyCount;
45 int currentHistoryCount;
48 class CIoUi : public CEikAppUi
50 public:
51 CIoUi(IoState* pVM);
52 void ConstructL();
53 void CreateConsoleL();
55 void DynInitMenuPaneL(TInt resourceID, CEikMenuPane* pane);
56 void AddControl(CCoeControl* control);
57 void RemoveControl(CCoeControl* control);
58 void MakeVisible(CCoeControl* control);
59 CEikButtonGroupContainer* GetCba();
60 ~CIoUi();
61 private:
62 // Override CEikAppUi
63 void HandleCommandL(TInt aCommand);
64 void OnExitCommand();
66 private:
67 CConsoleControl* iConsoleControl;
68 IoState* pVM;
69 RPointerArray<CCoeControl> iControlList;
72 // Utility functions
73 TPtr16 stringToPtr16(char const* s, int len = -1);
75 #endif