summaryrefslogtreecommitdiffstats
path: root/lib/libUPnP/Platinum/Source/Extras/ObjectiveC/PltUPnPObject.h
blob: 4c9b8edc6d5565d59f9253f82a596d8d479fc70f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
//
//  PltUPnPObject.h
//  Platinum
//
//  Created by Sylvain on 9/14/10.
//  Copyright 2010 Plutinosoft LLC. All rights reserved.
//

#import "Neptune.h"

#if defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE
#include <UIKit/UIKit.h>
#else
#import <Cocoa/Cocoa.h>
#endif


#if !defined(_PLATINUM_H_)
typedef struct PLT_UPnP PLT_UPnP;
typedef struct PLT_Action PLT_Action;
typedef struct PLT_DeviceHostReference PLT_DeviceHostReference;
#endif

/*----------------------------------------------------------------------
|   PLT_ActionObject
+---------------------------------------------------------------------*/
@interface PLT_ActionObject : NSObject {
@private
    PLT_Action* action;
}

- (id)initWithAction:(PLT_Action *)_action;
- (NPT_Result)setValue:(NSString*)value forArgument:(NSString*)argument;
- (NPT_Result)setErrorCode:(unsigned int)code withDescription:(NSString*)description;
@end

/*----------------------------------------------------------------------
|   PLT_DeviceHostObject
+---------------------------------------------------------------------*/
@interface PLT_DeviceHostObject : NSObject {
@private
    PLT_DeviceHostReference* device;
}

- (void)setDevice:(PLT_DeviceHostReference*)_device;
- (PLT_DeviceHostReference&)getDevice;
@end

/*----------------------------------------------------------------------
|   PLT_UPnPObject
+---------------------------------------------------------------------*/
@interface PLT_UPnPObject : NSObject

- (NPT_Result)start;
- (NPT_Result)stop;
- (bool)isRunning;

- (NPT_Result)addDevice:(PLT_DeviceHostObject*)device;
- (NPT_Result)removeDevice:(PLT_DeviceHostObject*)device;

@end