VLCMediaDiscoverer.h
/*****************************************************************************
* VLCMediaDiscoverer.h: VLCKit.framework VLCMediaDiscoverer header
*****************************************************************************
* Copyright (C) 2007 Pierre d'Herbemont
* Copyright (C) 2015 Felix Paul Kühne
* Copyright (C) 2007, 2015 VLC authors and VideoLAN
* $Id$
*
* Authors: Pierre d'Herbemont <pdherbemont # videolan.org>
* Felix Paul Kühne <fkuehne # videolan.org>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2.1 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#import <Foundation/Foundation.h>
#import "VLCMediaList.h"
@class VLCLibrary;
@class VLCMediaList;
@class VLCMediaDiscoverer;
typedef NS_ENUM(unsigned, VLCMediaDiscovererCategoryType)
{
VLCMediaDiscovererCategoryTypeDevices = 0,
VLCMediaDiscovererCategoryTypeLAN,
VLCMediaDiscovererCategoryTypePodcasts,
VLCMediaDiscovererCategoryTypeLocalDirectories
};
/* discoverer keys */
extern NSString *const VLCMediaDiscovererName;
extern NSString *const VLCMediaDiscovererLongName;
extern NSString *const VLCMediaDiscovererCategory;
@interface VLCMediaDiscoverer : NSObject
@property (nonatomic, readonly) VLCLibrary *libraryInstance;
+ (NSArray *)availableMediaDiscoverer __attribute__((deprecated));
+ (NSArray *)availableMediaDiscovererForCategoryType:(VLCMediaDiscovererCategoryType)categoryType;
/* Initializers */
- (instancetype)initWithName:(NSString *)aServiceName;
- (instancetype)initWithName:(NSString *)aServiceName libraryInstance:(VLCLibrary *)libraryInstance;
- (int)startDiscoverer;
- (void)stopDiscoverer;
@property (weak, readonly) VLCMediaList *discoveredMedia;
@property (readonly, copy) NSString *localizedName __attribute__((deprecated));
@property (readonly) BOOL isRunning;
@end
-[VLCMedia NS_ENUM]
typedef NS_ENUM(NSUInteger, VLCMediaOrientation)
Definition: VLCMedia.h:173
VLCMediaDiscoverer
Definition: VLCMediaDiscoverer.h:52
-[VLCMediaDiscoverer startDiscoverer]
int startDiscoverer()
-[VLCMediaDiscoverer stopDiscoverer]
void stopDiscoverer()
VLCMediaList
Definition: VLCMediaList.h:67
VLCLibrary
Definition: VLCLibrary.h:41
VLCMediaDiscoverer::discoveredMedia
VLCMediaList * discoveredMedia
Definition: VLCMediaDiscoverer.h:102
+[VLCMediaDiscoverer __attribute__]
(deprecated __attribute__()
VLCMediaDiscoverer::isRunning
BOOL isRunning
Definition: VLCMediaDiscoverer.h:114
VLCMediaDiscoverer::libraryInstance
VLCLibrary * libraryInstance
Definition: VLCMediaDiscoverer.h:58