diff options
Diffstat (limited to 'tools/EventClients/Clients/OSXRemote/xbmcclientwrapper.h')
-rw-r--r-- | tools/EventClients/Clients/OSXRemote/xbmcclientwrapper.h | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/tools/EventClients/Clients/OSXRemote/xbmcclientwrapper.h b/tools/EventClients/Clients/OSXRemote/xbmcclientwrapper.h new file mode 100644 index 0000000000..8664b2d985 --- /dev/null +++ b/tools/EventClients/Clients/OSXRemote/xbmcclientwrapper.h @@ -0,0 +1,73 @@ +/* + * xbmcclient.cpp + * xbmclauncher + * + * Created by Stephan Diederich on 17.09.08. + * Copyright 2008 Stephan Diederich. All rights reserved. + * + */ +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see <http://www.gnu.org/licenses/>. +#import <Cocoa/Cocoa.h> + +typedef enum{ + ATV_BUTTON_DONT_USE_THIS = 0, //don't use zero, as those enums get converted to strings later + ATV_BUTTON_PLAY=1, + ATV_BUTTON_PLAY_H, //present on ATV>=2.2 + ATV_BUTTON_RIGHT, + ATV_BUTTON_RIGHT_RELEASE, + ATV_BUTTON_RIGHT_H, //present on ATV<=2.1 and OSX v? + ATV_BUTTON_RIGHT_H_RELEASE, + ATV_BUTTON_LEFT, + ATV_BUTTON_LEFT_RELEASE, + ATV_BUTTON_LEFT_H, //present on ATV<=2.1 and OSX v? + ATV_BUTTON_LEFT_H_RELEASE, + ATV_BUTTON_UP, + ATV_BUTTON_UP_RELEASE, + ATV_BUTTON_DOWN, + ATV_BUTTON_DOWN_RELEASE, + ATV_BUTTON_MENU, + ATV_BUTTON_MENU_H, + ATV_LEARNED_PLAY, + ATV_LEARNED_PAUSE, + ATV_LEARNED_STOP, + ATV_LEARNED_PREVIOUS, + ATV_LEARNED_NEXT, + ATV_LEARNED_REWIND, //>=ATV 2.3 + ATV_LEARNED_REWIND_RELEASE, //>=ATV 2.3 + ATV_LEARNED_FORWARD, //>=ATV 2.3 + ATV_LEARNED_FORWARD_RELEASE, //>=ATV 2.3 + ATV_LEARNED_RETURN, + ATV_LEARNED_ENTER, + ATV_INVALID_BUTTON +} eATVClientEvent; + + +typedef enum { + DEFAULT_MODE, + UNIVERSAL_MODE, + MULTIREMOTE_MODE +} eRemoteMode; + + +@interface XBMCClientWrapper : NSObject{ + struct XBMCClientWrapperImpl* mp_impl; +} +- (id) initWithMode:(eRemoteMode) f_mode serverAddress:(NSString*) fp_server verbose:(bool) f_verbose; +- (void) setUniversalModeTimeout:(double) f_timeout; + +-(void) handleEvent:(eATVClientEvent) f_event; +-(void) switchRemote:(int) f_device_id; + +- (void) enableVerboseMode:(bool) f_really; +@end
\ No newline at end of file |