[cosmetics] update date in GPL header
[vuplus_xbmc] / xbmc / osx / atv2 / XBMCController.h
1 /*
2  *      Copyright (C) 2010-2013 Team XBMC
3  *      http://www.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 #import <Foundation/Foundation.h>
22 #import <BackRow/BackRow.h>
23 #import "IOSEAGLView.h"
24 #import "IOSSCreenManager.h"
25 #include "XBMC_keysym.h"
26
27 @interface XBMCController : BRController
28 {
29   int padding[16];  // credit is due here to SapphireCompatibilityClasses!!
30         
31   BRController *m_controller;
32
33   NSTimer      *m_keyTimer;
34   IOSEAGLView  *m_glView;
35
36   int           m_screensaverTimeout;
37   int           m_systemsleepTimeout;
38
39 }
40 // message from which our instance is obtained
41 //+ (XBMCController*) sharedInstance;
42
43 - (void) applicationDidExit;
44 - (void) initDisplayLink;
45 - (void) deinitDisplayLink;
46 - (double) getDisplayLinkFPS;
47 - (void) setFramebuffer;
48 - (bool) presentFramebuffer;
49 - (CGSize) getScreenSize;
50 - (void) sendKey: (XBMCKey) key;
51 - (void) disableSystemSleep;
52 - (void) enableSystemSleep;
53 - (void) disableScreenSaver;
54 - (void) enableScreenSaver;
55 - (void) pauseAnimation;
56 - (void) resumeAnimation;
57 - (void) startAnimation;
58 - (void) stopAnimation;
59 - (bool) changeScreen: (unsigned int)screenIdx withMode:(UIScreenMode *)mode;
60 - (void) activateScreen: (UIScreen *)screen;
61
62
63 @end
64
65 extern XBMCController *g_xbmcController;