This source file includes following definitions.
- Panic
#ifndef __OSMO4_UI_H__
#define __OSMO4_UI_H__
#include <aknappui.h>
class COsmo4AppView;
class CPlaylist;
enum TOsmo4Ids
{
EOsmo4PlayListView = 0x6001,
EOsmo4PlayListAdd,
EOsmo4PlayListRem,
EOsmo4PlayListMode,
EOsmo4PlayListMoveUp,
EOsmo4PlayListMoveDown,
EOsmo4PlayListClear,
EOsmo4PlayListAllFiles,
EOsmo4OpenURL,
EOsmo4OpenRecentFirst,
EOsmo4OpenRecentLast = EOsmo4OpenRecentFirst + 10,
EOsmo4Fullscreen,
EOsmo4ViewMaxSize,
EOsmo4AROriginal,
EOsmo4ARFillScreen,
EOsmo4AR4_3,
EOsmo4AR16_9,
EOsmo4NavReset,
EOsmo4NavNone,
EOsmo4NavSlide,
EOsmo4NavWalk,
EOsmo4NavFly,
EOsmo4NavExamine,
EOsmo4NavHeadlight,
EOsmo4NavGravity,
EOsmo4CollideNone,
EOsmo4CollideSimple,
EOsmo4CollideDisp,
EOsmo4ViewRTI,
EOsmo4OptEnableLogs,
EOsmo4OptOpenGL,
EOsmo4OptDirectDraw,
EOsmo4OptXMLProgressive,
};
enum TOsmo4Panics
{
EOsmo4Ui = 1
};
inline void Panic(TOsmo4Panics aReason)
{
_LIT(applicationName,"Osmo4");
User::Panic(applicationName, aReason);
}
#define MAX_KEY_CAP 10
typedef struct
{
TInt32 key_cap;
TInt32 key_cap_ud;
} KeyCapInfo;
class COsmo4AppUi : public CAknAppUi
{
public:
void ConstructL();
COsmo4AppUi();
virtual ~COsmo4AppUi();
private:
void HandleCommandL( TInt aCommand );
void HandleStatusPaneSizeChange();
virtual void DynInitMenuPaneL(TInt aResourceId, CEikMenuPane* aMenuPane);
public:
void PlayURL(const char *);
void SetTitle(const char *title, TBool store_it = ETrue);
void SetInfo(const char *);
private:
void TogglePlaylist();
void SetTitleInfo(const char *);
void HandleForegroundEventL(TBool aForeground);
void CaptureKeys(int do_capture);
void CaptureKey(TInt32 code, TInt32 scancode);
private:
COsmo4AppView* iAppView;
CPlaylist *iPlaylist;
int view_was_max;
int smenu_id;
char *m_title;
int view_mode;
KeyCapInfo keys[MAX_KEY_CAP];
int nb_keys;
};
#endif