kodi
lib
libUPnP
Platinum
Source
Extras
ObjectiveC
PltMediaServerObject.h
1
//
2
// PltMediaServerObject.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
#import "PltUPnPObject.h"
18
19
// define
20
#if !defined(_PLATINUM_H_)
21
typedef
class
PLT_HttpRequestContext
PLT_HttpRequestContext
;
22
typedef
class
NPT_HttpResponse
NPT_HttpResponse
;
23
#endif
24
25
/*----------------------------------------------------------------------
26
| PLT_MediaServerObject
27
+---------------------------------------------------------------------*/
28
@interface
PLT_MediaServerObject
:
PLT_DeviceHostObject
29
@property
(nonatomic, assign)
id
delegate;
30
@end
31
32
/*----------------------------------------------------------------------
33
| PLT_MediaServerBrowseCapsule
34
+---------------------------------------------------------------------*/
35
@interface
PLT_MediaServerBrowseCapsule
:
PLT_ActionObject
{
36
NSString* objectId;
37
NPT_UInt32 start;
38
NPT_UInt32 count;
39
NSString* filter;
40
NSString* sort;
41
PLT_HttpRequestContext
* context;
42
}
43
44
- (id)initWithAction:(
PLT_Action
*)action objectId:(
const
char
*)objectId filter:(
const
char
*)filter start:(NPT_UInt32)start count:(NPT_UInt32)count sort:(
const
char
*)sort context:(
PLT_HttpRequestContext
*)context;
45
46
@property
(readonly, copy) NSString* objectId;
47
@property
(readonly) NPT_UInt32 start;
48
@property
(readonly) NPT_UInt32 count;
49
@property
(readonly, copy) NSString* filter;
50
@property
(readonly, copy) NSString* sort;
51
@end
52
53
/*----------------------------------------------------------------------
54
| PLT_MediaServerSearchCapsule
55
+---------------------------------------------------------------------*/
56
@interface
PLT_MediaServerSearchCapsule
:
PLT_MediaServerBrowseCapsule
{
57
NSString* search;
58
}
59
60
- (id)initWithAction:(
PLT_Action
*)action objectId:(
const
char
*)objectId search:(
const
char
*)search filter:(
const
char
*)filter start:(NPT_UInt32)start count:(NPT_UInt32)count sort:(
const
char
*)sort context:(
PLT_HttpRequestContext
*)context;
61
62
@property
(readonly, copy) NSString* search;
63
@end
64
65
/*----------------------------------------------------------------------
66
| PLT_MediaServerFileRequestCapsule
67
+---------------------------------------------------------------------*/
68
@interface
PLT_MediaServerFileRequestCapsule
: NSObject {
69
NPT_HttpResponse
* response;
70
PLT_HttpRequestContext
* context;
71
}
72
73
- (id)initWithResponse:(
NPT_HttpResponse
*)response context:(
PLT_HttpRequestContext
*)context;
74
@end
75
76
/*----------------------------------------------------------------------
77
| PLT_MediaServerDelegateObject
78
+---------------------------------------------------------------------*/
79
@protocol
PLT_MediaServerDelegateObject
80
- (NPT_Result)onBrowseMetadata:(
PLT_MediaServerBrowseCapsule
*)info;
81
- (NPT_Result)onBrowseDirectChildren:(
PLT_MediaServerBrowseCapsule
*)info;
82
- (NPT_Result)onSearchContainer:(
PLT_MediaServerSearchCapsule
*)info;
83
- (NPT_Result)onFileRequest:(
PLT_MediaServerFileRequestCapsule
*)info;
84
@end
NPT_HttpResponse
Definition:
NptHttp.h:315
PLT_MediaServerSearchCapsule
Definition:
PltMediaServerObject.h:56
PLT_DeviceHostObject
Definition:
PltUPnPObject.h:40
PLT_MediaServerBrowseCapsule
Definition:
PltMediaServerObject.h:35
PLT_MediaServerFileRequestCapsule
Definition:
PltMediaServerObject.h:68
PLT_HttpRequestContext
The PLT_HttpRequestContext class holds information about the request sent, the local & remote ip addr...
Definition:
PltHttp.h:111
PLT_Action
The PLT_Action class provides a mechanism to call or verify the validity of a specific UPNP service a...
Definition:
PltAction.h:121
PLT_MediaServerDelegateObject-p
Definition:
PltMediaServerObject.h:79
PLT_MediaServerObject
Definition:
PltMediaServerObject.h:28
PLT_ActionObject
Definition:
PltUPnPObject.h:27
Generated by
1.8.13