xbmc
xbmcclientwrapper.h
1 /*
2  * xbmcclient.cpp
3  * xbmclauncher
4  *
5  * Created by Stephan Diederich on 17.09.08.
6  * Copyright 2008 Stephan Diederich. All rights reserved.
7  *
8  */
9 // This program is free software: you can redistribute it and/or modify
10 // it under the terms of the GNU General Public License as published by
11 // the Free Software Foundation, either version 3 of the License, or
12 // (at your option) any later version.
13 //
14 // This program is distributed in the hope that it will be useful,
15 // but WITHOUT ANY WARRANTY; without even the implied warranty of
16 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 // GNU General Public License for more details.
18 //
19 // You should have received a copy of the GNU General Public License
20 // along with this program. If not, see <http://www.gnu.org/licenses/>.
21 #import <Cocoa/Cocoa.h>
22 
23 typedef enum{
24  ATV_BUTTON_DONT_USE_THIS = 0, //don't use zero, as those enums get converted to strings later
25  ATV_BUTTON_CENTER=1,
26  ATV_BUTTON_CENTER_H, //present on ATV>=2.2
27  ATV_BUTTON_RIGHT,
28  ATV_BUTTON_RIGHT_RELEASE,
29  ATV_BUTTON_RIGHT_H, //present on ATV<=2.1 and OSX v?
30  ATV_BUTTON_RIGHT_H_RELEASE,
31  ATV_BUTTON_LEFT,
32  ATV_BUTTON_LEFT_RELEASE,
33  ATV_BUTTON_LEFT_H, //present on ATV<=2.1 and OSX v?
34  ATV_BUTTON_LEFT_H_RELEASE,
35  ATV_BUTTON_UP,
36  ATV_BUTTON_UP_RELEASE,
37  ATV_BUTTON_DOWN,
38  ATV_BUTTON_DOWN_RELEASE,
39  ATV_BUTTON_MENU,
40  ATV_BUTTON_MENU_H,
41  ATV_LEARNED_PLAY,
42  ATV_LEARNED_PAUSE,
43  ATV_LEARNED_STOP,
44  ATV_LEARNED_PREVIOUS,
45  ATV_LEARNED_NEXT,
46  ATV_LEARNED_REWIND, //>=ATV 2.3
47  ATV_LEARNED_REWIND_RELEASE, //>=ATV 2.3
48  ATV_LEARNED_FORWARD, //>=ATV 2.3
49  ATV_LEARNED_FORWARD_RELEASE, //>=ATV 2.3
50  ATV_LEARNED_RETURN,
51  ATV_LEARNED_ENTER,
52  ATV_INVALID_BUTTON,
53  //new aluminium remote buttons
54  ATV_BUTTON_PLAY,
55  ATV_BUTTON_PLAY_H,
56 } eATVClientEvent;
57 
58 
59 typedef enum {
60  DEFAULT_MODE,
61  UNIVERSAL_MODE,
62  MULTIREMOTE_MODE
63 } eRemoteMode;
64 
65 
66 @interface XBMCClientWrapper : NSObject{
67  struct XBMCClientWrapperImpl* mp_impl;
68 }
69 - (id) initWithMode:(eRemoteMode) f_mode serverAddress:(NSString*) fp_server port:(int) f_port verbose:(bool) f_verbose;
70 - (void) setUniversalModeTimeout:(double) f_timeout;
71 
72 -(void) handleEvent:(eATVClientEvent) f_event;
73 -(void) switchRemote:(int) f_device_id;
74 
75 - (void) enableVerboseMode:(bool) f_really;
76 @end
Definition: xbmcclientwrapper.mm:81
Definition: xbmcclientwrapper.h:66