Allow conditional audio device disabling.
[SDL.s60v3.git] / symbian / include / sdlepocapi.h
blob487a2dd9ba96f2a3d39177dabf4fefcf99217e71
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 enum SoundPauseReason
27 SPR_NONE = 0,
28 SPR_FOCUSLOST = 0x1,
29 SPR_SILENTPROFILE = 0x2
32 CSDL();
33 virtual ~CSDL();
35 void SetContainerWindowL(RWindow& aWindow, RWsSession& aSession, CWsScreenDevice& aDevice);
36 void AppendWsEvent(const TWsEvent& aEvent); //give event to SDL
37 void CallMainL();
38 void Resize();
40 CEventQueue* EventQueue() { return m_eventQueue; }
41 void SetOrientation(CAknAppUi::TAppUiOrientation orientation, const TSize& aSize, TDisplayMode aMode);
43 int GetSoundPauseReason() const { return m_soundPauseReason; }
44 void SetFocus(bool focused);
46 private:
47 void MrccatoCommand(TRemConCoreApiOperationId aOperationId, TRemConCoreApiButtonAction aButtonAct);
49 CEventQueue* m_eventQueue;
50 bool m_orientationWait;
51 TSize m_size;
52 TDisplayMode m_mode;
53 int m_soundPauseReason;
56 extern CSDL* g_SDL;
58 #endif