VLCMediaList.h
/*****************************************************************************
* VLCMediaList.h: VLCKit.framework VLCMediaList 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>
*
* 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 "VLCMedia.h"
extern NSString *const VLCMediaListItemAdded;
extern NSString *const VLCMediaListItemDeleted;
@class VLCMedia;
@class VLCMediaList;
@protocol VLCMediaListDelegate
@optional
- (void)mediaList:(VLCMediaList *)aMediaList mediaAdded:(VLCMedia *)media atIndex:(NSInteger)index;
- (void)mediaList:(VLCMediaList *)aMediaList mediaRemovedAtIndex:(NSInteger)index;
@end
@interface VLCMediaList : NSObject
- (instancetype)initWithArray:(NSArray *)array;
/* Operations */
- (void)lock;
- (void)unlock;
- (NSInteger)addMedia:(VLCMedia *)media;
- (void)insertMedia:(VLCMedia *)media atIndex:(NSInteger)index;
- (void)removeMediaAtIndex:(NSInteger)index;
- (VLCMedia *)mediaAtIndex:(NSInteger)index;
- (NSInteger)indexOfMedia:(VLCMedia *)media;
/* Properties */
@property (readonly) NSInteger count;
@property (weak, nonatomic) id delegate;
@property (readonly) BOOL isReadOnly;
@end
-[VLCMediaList unlock]
void unlock()
VLCMediaList::delegate
id delegate
Definition: VLCMediaList.h:140
VLCMediaListDelegate-p
Definition: VLCMediaList.h:44
VLCMediaList
Definition: VLCMediaList.h:67
VLCMediaList::count
NSInteger count
Definition: VLCMediaList.h:135
VLCMediaList::isReadOnly
BOOL isReadOnly
Definition: VLCMediaList.h:146
VLCMedia
Definition: VLCMedia.h:112
-[VLCMediaList lock]
void lock()