2 * Copyright (C) 2010-2013 Team XBMC
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)
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.
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/>.
21 #import <Foundation/Foundation.h>
22 #import <BackRow/BackRow.h>
23 #import "IOSEAGLView.h"
24 #import "IOSSCreenManager.h"
25 #include "XBMC_keysym.h"
27 @interface XBMCController : BRController
29 int padding[16]; // credit is due here to SapphireCompatibilityClasses!!
31 BRController *m_controller;
34 IOSEAGLView *m_glView;
36 int m_screensaverTimeout;
37 int m_systemsleepTimeout;
40 // message from which our instance is obtained
41 //+ (XBMCController*) sharedInstance;
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;
65 extern XBMCController *g_xbmcController;