kodi
PltUPnPObject.h
1 //
2 // PltUPnPObject.h
3 // Platinum
4 //
5 // Created by Sylvain on 9/14/10.
6 // Copyright 2010 Plutinosoft LLC. All rights reserved.
7 //
8 
9 #import "Neptune.h"
10 
11 #if defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE
12 #include <UIKit/UIKit.h>
13 #else
14 #import <Cocoa/Cocoa.h>
15 #endif
16 
17 
18 #if !defined(_PLATINUM_H_)
19 typedef struct PLT_UPnP PLT_UPnP;
20 typedef struct PLT_Action PLT_Action;
22 #endif
23 
24 /*----------------------------------------------------------------------
25 | PLT_ActionObject
26 +---------------------------------------------------------------------*/
27 @interface PLT_ActionObject : NSObject {
28 @private
29  PLT_Action* action;
30 }
31 
32 - (id)initWithAction:(PLT_Action *)_action;
33 - (NPT_Result)setValue:(NSString*)value forArgument:(NSString*)argument;
34 - (NPT_Result)setErrorCode:(unsigned int)code withDescription:(NSString*)description;
35 @end
36 
37 /*----------------------------------------------------------------------
38 | PLT_DeviceHostObject
39 +---------------------------------------------------------------------*/
40 @interface PLT_DeviceHostObject : NSObject {
41 @private
43 }
44 
45 - (void)setDevice:(PLT_DeviceHostReference*)_device;
46 - (PLT_DeviceHostReference&)getDevice;
47 @end
48 
49 /*----------------------------------------------------------------------
50 | PLT_UPnPObject
51 +---------------------------------------------------------------------*/
52 @interface PLT_UPnPObject : NSObject
53 
54 - (NPT_Result)start;
55 - (NPT_Result)stop;
56 - (bool)isRunning;
57 
58 - (NPT_Result)addDevice:(PLT_DeviceHostObject*)device;
59 - (NPT_Result)removeDevice:(PLT_DeviceHostObject*)device;
60 
61 @end
The PLT_UPnP class maintains a list of devices (PLT_DeviceHost) to advertise and/or control points (P...
Definition: PltUPnP.h:68
Definition: PltUPnPObject.h:40
Definition: PltUPnPObject.h:52
Definition: inftrees.h:24
The PLT_Action class provides a mechanism to call or verify the validity of a specific UPNP service a...
Definition: PltAction.h:121
Definition: NptReferences.h:45
Definition: PltUPnPObject.h:27