Merge pull request #4775 from jmarshallnz/empty_episode_playcount
[vuplus_xbmc] / xbmc / XBApplicationEx.h
1 /*
2  *      Copyright (C) 2005-2013 Team XBMC
3  *      http://xbmc.org
4  *
5  *  This Program is free software; you can redistribute it and/or modify
6  *  it under the terms of the GNU General Public License as published by
7  *  the Free Software Foundation; either version 2, or (at your option)
8  *  any later version.
9  *
10  *  This Program is distributed in the hope that it will be useful,
11  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  *  GNU General Public License for more details.
14  *
15  *  You should have received a copy of the GNU General Public License
16  *  along with XBMC; see the file COPYING.  If not, see
17  *  <http://www.gnu.org/licenses/>.
18  *
19  */
20
21 #ifndef XBAPPLICATIONEX_H
22 #define XBAPPLICATIONEX_H
23
24 #include "guilib/IWindowManagerCallback.h"
25
26 // Do not change the numbering, external scripts depend on them
27 enum {
28   EXITCODE_QUIT      = 0,
29   EXITCODE_POWERDOWN = 64,
30   EXITCODE_RESTARTAPP= 65,
31   EXITCODE_REBOOT    = 66,
32 };
33
34 class CXBApplicationEx : public IWindowManagerCallback
35 {
36 public:
37   CXBApplicationEx();
38   ~CXBApplicationEx();
39
40   // Variables for timing
41   bool m_bStop;
42   int  m_ExitCode;
43   bool m_AppFocused;
44   bool m_renderGUI;
45
46   // Overridable functions for the 3D scene created by the app
47   virtual bool Initialize() { return true; }
48   virtual bool Cleanup() { return true; }
49   virtual void SetRenderGUI(bool renderGUI) {};
50
51 public:
52   // Functions to create, run, and clean up the application
53   virtual bool Create();
54   INT Run();
55   VOID Destroy();
56
57 private:
58 };
59
60 #endif /* XBAPPLICATIONEX_H */