Skip to content

Commit

Permalink
[ios] fixed, xcode4 flags this as errors, move them into include inte…
Browse files Browse the repository at this point in the history
…rface def
  • Loading branch information
davilla committed May 16, 2012
1 parent 354381b commit 32bc1fc
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 22 deletions.
5 changes: 4 additions & 1 deletion xbmc/osx/IOSExternalTouchController.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@

@interface IOSExternalTouchController : UIViewController
{

UIWindow *_internalWindow;
UIView *_touchView;
NSTimer *_sleepTimer;
bool _startup;
}
- (id)init;
- (void)createGestureRecognizers;
Expand Down
9 changes: 1 addition & 8 deletions xbmc/osx/IOSExternalTouchController.mm
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,6 @@
const CGFloat touchScreenDimTimeoutSecs = 15.0;
const CGFloat timeFadeSecs = 2.0;

@interface IOSExternalTouchController ()
UIWindow *_internalWindow;
UIView *_touchView;
NSTimer *_sleepTimer;
bool _startup;
@end

@implementation IOSExternalTouchController
//--------------------------------------------------------------
- (id)init
Expand Down Expand Up @@ -206,7 +199,7 @@ - (void)createGestureRecognizers
[doubleFingerSingleTap release];

//1 finger single long tab - right mouse - alernative
UITapGestureRecognizer *singleFingerSingleLongTap = [[UILongPressGestureRecognizer alloc]
UITapGestureRecognizer *singleFingerSingleLongTap = (UITapGestureRecognizer*)[[UILongPressGestureRecognizer alloc]
initWithTarget:self action:@selector(handleSingleFingerSingleLongTap:)];
singleFingerSingleLongTap.delaysTouchesBegan = YES;
singleFingerSingleLongTap.delaysTouchesEnded = YES;
Expand Down
4 changes: 3 additions & 1 deletion xbmc/osx/IOSScreenManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,18 @@

@class IOSEAGLView;
@class XBMCController;
@class IOSExternalTouchController;

@interface IOSScreenManager : NSObject {

int _screenIdx;
bool _externalScreen;
IOSEAGLView *_glView;
IOSExternalTouchController *_externalTouchController;
}
@property int _screenIdx;
@property (readonly, getter=isExternalScreen)bool _externalScreen;
@property (assign, setter=setView) IOSEAGLView *_glView;
@property (assign, setter=setView:) IOSEAGLView *_glView;

// init the screenmanager with our eaglview
//- (id) initWithView:(IOSEAGLView *)view;
Expand Down
3 changes: 0 additions & 3 deletions xbmc/osx/IOSScreenManager.mm
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@

static CEvent screenChangeEvent;

@interface IOSScreenManager ()
IOSExternalTouchController *_externalTouchController;
@end
@implementation IOSScreenManager
@synthesize _screenIdx;
@synthesize _externalScreen;
Expand Down
9 changes: 7 additions & 2 deletions xbmc/osx/atv2/XBMCController.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,14 @@
{
int padding[16]; // credit is due here to SapphireCompatibilityClasses!!

int m_screensaverTimeout;

BRController *m_controller;

NSTimer *m_keyTimer;
IOSEAGLView *m_glView;

int m_screensaverTimeout;
int m_systemsleepTimeout;

}
// message from which our instance is obtained
//+ (XBMCController*) sharedInstance;
Expand Down
7 changes: 0 additions & 7 deletions xbmc/osx/atv2/XBMCController.mm
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
#import <BackRow/BackRow.h>

#import "XBMCController.h"
#import "IOSEAGLView.h"
#import "XBMCDebugHelpers.h"

//start repeating after 0.5s
Expand Down Expand Up @@ -176,12 +175,6 @@ -(int)sleepTimeout;
//--------------------------------------------------------------
//--------------------------------------------------------------
@interface XBMCController (PrivateMethods)
NSTimer *m_keyTimer;
IOSEAGLView *m_glView;

int m_screensaverTimeout;
int m_systemsleepTimeout;

- (void) observeDefaultCenterStuff: (NSNotification *) notification;
- (void) keyPressTimerCallback: (NSTimer*)theTimer;
- (void) startKeyPressTimer: (int) keyId;
Expand Down

0 comments on commit 32bc1fc

Please sign in to comment.