kodi
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_)
23 #endif
24 
25 /*----------------------------------------------------------------------
26 | PLT_MediaServerObject
27 +---------------------------------------------------------------------*/
29 @property (nonatomic, assign) id delegate;
30 @end
31 
32 /*----------------------------------------------------------------------
33 | PLT_MediaServerBrowseCapsule
34 +---------------------------------------------------------------------*/
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 +---------------------------------------------------------------------*/
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 +---------------------------------------------------------------------*/
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
Definition: NptHttp.h:315
Definition: PltMediaServerObject.h:56
Definition: PltUPnPObject.h:40
Definition: PltMediaServerObject.h:35
Definition: PltMediaServerObject.h:68
The PLT_HttpRequestContext class holds information about the request sent, the local & remote ip addr...
Definition: PltHttp.h:111
The PLT_Action class provides a mechanism to call or verify the validity of a specific UPNP service a...
Definition: PltAction.h:121
Definition: PltMediaServerObject.h:79
Definition: PltMediaServerObject.h:28
Definition: PltUPnPObject.h:27