Move EpocSdlEnv functionality do CSDL.
[SDL.s60v3.git] / symbian / include / sdlepocapi.h
blob4e0d0b6f53df68021fdb4ffd60eff7e7b9d27424
1 #ifndef EPOC_SDL_H
2 #define EPOC_SDL_H
4 #include <e32std.h>
5 #include <remconcoreapitargetobserver.h>
6 #include "epoc_sdl.h"
8 class CDesC8Array;
9 class TWsEvent;
10 class RWindow;
11 class CAknAppUi;
12 class RWsSession;
13 class CWsScreenDevice;
14 class CBitmapContext;
15 class CFbsBitmap;
17 extern "C"
19 int SDL_main (int argc, char* argv[]);
22 class CSDL : public MRemConCoreApiTargetObserver
24 public:
25 CSDL();
26 virtual ~CSDL();
28 void SetContainerWindowL(RWindow& aWindow, RWsSession& aSession, CWsScreenDevice& aDevice);
29 void AppendWsEvent(const TWsEvent& aEvent); //give event to SDL
30 void CallMainL();
31 void Resize();
33 CEventQueue* EventQueue() { return m_eventQueue; }
34 void SetOrientation(CAknAppUi::TAppUiOrientation orientation, const TSize& aSize, TDisplayMode aMode);
36 private:
37 void MrccatoCommand(TRemConCoreApiOperationId aOperationId, TRemConCoreApiButtonAction aButtonAct);
39 CEventQueue* m_eventQueue;
40 bool m_orientationWait;
41 TSize m_size;
42 TDisplayMode m_mode;
45 extern CSDL* g_SDL;
47 #endif