VLCKit
VLCMediaDiscoverer.h
1 /*****************************************************************************
2  * VLCMediaDiscoverer.h: VLCKit.framework VLCMediaDiscoverer header
3  *****************************************************************************
4  * Copyright (C) 2007 Pierre d'Herbemont
5  * Copyright (C) 2015 Felix Paul Kühne
6  * Copyright (C) 2007, 2015 VLC authors and VideoLAN
7  * $Id$
8  *
9  * Authors: Pierre d'Herbemont <pdherbemont # videolan.org>
10  * Felix Paul Kühne <fkuehne # videolan.org>
11  *
12  * This program is free software; you can redistribute it and/or modify it
13  * under the terms of the GNU Lesser General Public License as published by
14  * the Free Software Foundation; either version 2.1 of the License, or
15  * (at your option) any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU Lesser General Public License for more details.
21  *
22  * You should have received a copy of the GNU Lesser General Public License
23  * along with this program; if not, write to the Free Software Foundation,
24  * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
25  *****************************************************************************/
26 
27 #import <Foundation/Foundation.h>
28 #import "VLCMediaList.h"
29 
30 @class VLCLibrary;
31 @class VLCMediaList;
32 @class VLCMediaDiscoverer;
33 
34 
35 typedef NS_ENUM(unsigned, VLCMediaDiscovererCategoryType)
36 {
37  VLCMediaDiscovererCategoryTypeDevices = 0,
38  VLCMediaDiscovererCategoryTypeLAN,
39  VLCMediaDiscovererCategoryTypePodcasts,
40  VLCMediaDiscovererCategoryTypeLocalDirectories
41 };
42 
43 /* discoverer keys */
44 extern NSString *const VLCMediaDiscovererName;
45 extern NSString *const VLCMediaDiscovererLongName;
46 extern NSString *const VLCMediaDiscovererCategory;
47 
52 @interface VLCMediaDiscoverer : NSObject
53 
58 @property (nonatomic, readonly) VLCLibrary *libraryInstance;
59 
65 + (NSArray *)availableMediaDiscoverer __attribute__((deprecated));
66 
71 + (NSArray *)availableMediaDiscovererForCategoryType:(VLCMediaDiscovererCategoryType)categoryType;
72 
73 /* Initializers */
80 - (instancetype)initWithName:(NSString *)aServiceName;
81 
86 - (instancetype)initWithName:(NSString *)aServiceName libraryInstance:(VLCLibrary *)libraryInstance;
87 
92 - (int)startDiscoverer;
93 
97 - (void)stopDiscoverer;
98 
102 @property (weak, readonly) VLCMediaList *discoveredMedia;
103 
108 @property (readonly, copy) NSString *localizedName __attribute__((deprecated));
109 
114 @property (readonly) BOOL isRunning;
115 @end
Definition: VLCMediaDiscoverer.h:52
typedef NS_ENUM(NSUInteger, VLCMediaType)
Definition: VLCMedia.h:170
Definition: VLCMediaList.h:67
Definition: VLCLibrary.h:41
VLCMediaList * discoveredMedia
Definition: VLCMediaDiscoverer.h:102
(deprecated __attribute__()
BOOL isRunning
Definition: VLCMediaDiscoverer.h:114
VLCLibrary * libraryInstance
Definition: VLCMediaDiscoverer.h:58