VLCMediaList.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /*****************************************************************************
  2. * VLCMediaList.h: VLC.framework VLCMediaList header
  3. *****************************************************************************
  4. * Copyright (C) 2007 Pierre d'Herbemont
  5. * Copyright (C) 2007 the VideoLAN team
  6. * $Id: VLCMediaList.h 21564 2007-08-29 21:09:27Z pdherbemont $
  7. *
  8. * Authors: Pierre d'Herbemont <pdherbemont # videolan.org>
  9. *
  10. * This program is free software; you can redistribute it and/or modify
  11. * it under the terms of the GNU General Public License as published by
  12. * the Free Software Foundation; either version 2 of the License, or
  13. * (at your option) any later version.
  14. *
  15. * This program is distributed in the hope that it will be useful,
  16. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18. * GNU General Public License for more details.
  19. *
  20. * You should have received a copy of the GNU General Public License
  21. * along with this program; if not, write to the Free Software
  22. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  23. *****************************************************************************/
  24. #import "VLCMedia.h"
  25. /* Notification Messages */
  26. extern NSString *VLCMediaListItemAdded;
  27. extern NSString *VLCMediaListItemDeleted;
  28. @class VLCMedia;
  29. @class VLCMediaList;
  30. // TODO: Documentation
  31. @protocol VLCMediaListDelegate
  32. - (void)mediaList:(VLCMediaList *) mediaAdded:(VLCMedia *)media atIndex:(int)index;
  33. - (void)mediaList:(VLCMediaList *) mediaRemovedAtIndex:(int)index;
  34. @end
  35. // TODO: Documentation
  36. @interface VLCMediaList : NSObject
  37. {
  38. void *p_mlist; //< Internal instance of media list
  39. id delegate; //< Delegate object
  40. }
  41. /* Properties */
  42. - (void)setDelegate:(id)value;
  43. - (id)delegate;
  44. /* Operations */
  45. - (void)lock;
  46. - (void)unlock;
  47. - (int)addMedia:(VLCMedia *)media;
  48. - (void)insertMedia:(VLCMedia *)media atIndex:(int)index;
  49. - (void)removeMediaAtIndex:(int)index;
  50. - (VLCMedia *)mediaAtIndex:(int)index;
  51. - (int)indexOfMedia:(VLCMedia *)media;
  52. - (int)count;
  53. - (NSArray *)sublists; // I don't see why this would be useful
  54. //- (VLCMediaList *)flatPlaylist; // nore this one
  55. //- (VLCMedia *)providerMedia; // I have no clue what this does
  56. @end