This source file includes following definitions.
- GetApp
 
#if !defined(AFX_GPAC_H__8B06A368_E142_47E3_ABE7_0B459FC0E853__INCLUDED_)
#define AFX_GPAC_H__8B06A368_E142_47E3_ABE7_0B459FC0E853__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif 
#ifndef __AFXWIN_H__
#error include 'stdafx.h' before including this file for PCH
#endif
#include "resource.h"       
#include <gpac/terminal.h>
#include <gpac/term_info.h>
enum {
        WM_SCENE_DONE = WM_USER + 1,
        WM_NAVIGATE,
        WM_SETSIZE,
        WM_OPENURL,
        WM_RESTARTURL,
        WM_CONSOLEMSG,
        WM_NEWINSTANCE,
};
const char *static_gpac_get_url();
class Osmo4 : public CWinApp
{
public:
        Osmo4();
        GF_Terminal *m_term;
        GF_User m_user;
        Bool m_isopen, m_reset;
        u32 max_duration;
        Bool can_seek;
        u32 orig_width,orig_height, m_reconnect_time;
        CString m_navigate_url;
        void Pause();
        void PlayFromTime(u32 time);
        void SetOptions();
        void UpdateRenderSwitch();
        void UpdatePlayButton(Bool force_play = GF_FALSE);
        
        Bool m_Loop, m_LookForSubtitles, m_NoConsole, m_ViewXMTA, m_SingleInstance, m_NoMimeFetch;
        u32 start_mode;
        CString GetFileFilter();
        char szApplicationPath[GF_MAX_PATH];
        char szUserPath[GF_MAX_PATH];
        FILE *m_logs;
        HANDLE m_hMutex;
        
        
public:
        virtual BOOL InitInstance();
        virtual int ExitInstance();
        
public:
        
        afx_msg void OnOpenFile();
        afx_msg void OnMainPause();
        afx_msg void OnFileStep();
        afx_msg void OnOpenUrl();
        afx_msg void OnFileReload();
        afx_msg void OnFileMigrate();
        afx_msg void OnConfigReload();
        afx_msg void OnFilePlay();
        afx_msg void OnUpdateFilePlay(CCmdUI* pCmdUI);
        afx_msg void OnUpdateFileStep(CCmdUI* pCmdUI);
        afx_msg void OnFileStop();
        afx_msg void OnUpdateFileStop(CCmdUI* pCmdUI);
        afx_msg void OnSwitchRender();
        afx_msg void OnAbout();
        
        DECLARE_MESSAGE_MAP()
};
inline Osmo4 *GetApp() {
        return (Osmo4 *)AfxGetApp();
}
#endif