/*****************************************************************************
- * VLCMediaList.h: VLC.framework VLCMediaList header
+ * VLCMediaList.h: VLCKit.framework VLCMediaList header
*****************************************************************************
* Copyright (C) 2007 Pierre d'Herbemont
* Copyright (C) 2007 the VideoLAN team
- * $Id: VLCMediaList.h 21564 2007-08-29 21:09:27Z pdherbemont $
+ * $Id$
*
* Authors: Pierre d'Herbemont <pdherbemont # videolan.org>
*
@class VLCMedia;
@class VLCMediaList;
-@class VLCMediaListAspect;
/**
* TODO: Documentation VLCMediaListDelegate
/**
* TODO: Documentation - [VLCMediaListDelegate mediaList:mediaAdded:atIndex:]
*/
-- (void)mediaList:(VLCMediaList *)aMediaList mediaAdded:(VLCMedia *)media atIndex:(int)index;
+- (void)mediaList:(VLCMediaList *)aMediaList mediaAdded:(VLCMedia *)media atIndex:(NSInteger)index;
/**
* TODO: Documentation - [VLCMediaListDelegate mediaList:mediaRemovedAtIndex:]
*/
-- (void)mediaList:(VLCMediaList *)aMediaList mediaRemovedAtIndex:(int)index;
+- (void)mediaList:(VLCMediaList *)aMediaList mediaRemovedAtIndex:(NSInteger)index;
@end
/**
id <VLCMediaListDelegate,NSObject> delegate; //< Delegate object
/* We need that private copy because of Cocoa Bindings, that need to be working on first thread */
NSMutableArray * cachedMedia; //< Private copy of media objects.
- VLCMediaListAspect * flatAspect; //< TODO: Documentation VLCMediaList.flatAspect
- VLCMediaListAspect * hierarchicalAspect; //< TODO: Documentation VLCMediaList.hierarchicalAspect
- VLCMediaListAspect * hierarchicalNodeAspect; //< TODO: Documentation VLCMediaList.hierarchicalNodeAspect
}
+/**
+ * Init a MediaList with the media contained in array.
+ * \array an array of VLCMedia.
+ */
+- (id)initWithArray:(NSArray *)array;
+
/* Operations */
/**
* TODO: Documentation - [VLCMediaList lock]
/**
* TODO: Documentation - [VLCMediaList addMedia:]
*/
-- (int)addMedia:(VLCMedia *)media;
+- (NSInteger)addMedia:(VLCMedia *)media;
/**
* TODO: Documentation - [VLCMediaList insertMedia:atIndex:]
*/
-- (void)insertMedia:(VLCMedia *)media atIndex:(int)index;
+- (void)insertMedia:(VLCMedia *)media atIndex:(NSInteger)index;
/**
* TODO: Documentation - [VLCMediaList removeMediaAtIndex:]
*/
-- (void)removeMediaAtIndex:(int)index;
+- (void)removeMediaAtIndex:(NSInteger)index;
/**
* TODO: Documentation - [VLCMediaList mediaAtIndex:]
*/
-- (VLCMedia *)mediaAtIndex:(int)index;
+- (VLCMedia *)mediaAtIndex:(NSInteger)index;
/**
* TODO: Documentation - [VLCMediaList indexOfMedia:]
*/
-- (int)indexOfMedia:(VLCMedia *)media;
+- (NSInteger)indexOfMedia:(VLCMedia *)media;
/* Properties */
/**
* TODO: Documentation VLCMediaList.count
*/
-@property (readonly) int count;
+@property (readonly) NSInteger count;
/**
* TODO: Documentation VLCMediaList.delegate
*/
@property (readonly) BOOL isReadOnly;
-/* Media list aspect */
-/**
- * TODO: Documentation VLCMediaList.hierarchicalAspect
- */
-@property (readonly) VLCMediaListAspect * hierarchicalAspect;
-
-/**
- * TODO: Documentation VLCMediaList.hierarchicalNodeAspect
- */
-@property (readonly) VLCMediaListAspect * hierarchicalNodeAspect;
-
-/**
- * TODO: Documentation VLCMediaList.flatAspect
- */
-@property (readonly) VLCMediaListAspect * flatAspect;
@end