]> git.sesse.net Git - vlc/blobdiff - projects/macosx/framework/Headers/Public/VLCMediaListPlayer.h
macosx/framework: Change the repeatMode setter to be a property so that it can evenut...
[vlc] / projects / macosx / framework / Headers / Public / VLCMediaListPlayer.h
index 17f3917683dc94ef345240b53102d5e1b30f720b..70026c9d1b14cd5e2487465df1045c6a627112b6 100644 (file)
 
 @class VLCMedia, VLCMediaPlayer, VLCMediaList;
 
+/**
+ * VLCRepeatMode
+ * (don't repeat anything, repeat one, repeat all)
+ */
+enum VLCRepeatMode {
+    VLCDoNotRepeat,
+    VLCRepeatCurrentItem,
+    VLCRepeatAllItems
+};
+typedef int VLCRepeatMode;
+
 @interface VLCMediaListPlayer : NSObject {
     void *instance;
     VLCMedia *_rootMedia;
     VLCMediaPlayer *_mediaPlayer;
     VLCMediaList *_mediaList;
+    VLCRepeatMode _repeatMode;
 }
 
 @property (readwrite, retain) VLCMediaList *mediaList;
 
 /**
  * Playmode selection (don't repeat anything, repeat one, repeat all)
+ * See VLCRepeatMode.
  */
-- (void)doNotRepeatAnyItem;
-- (void)repeatCurrentItem;
-- (void)repeatAllItems;
+
+@property (readwrite) VLCRepeatMode repeatMode;
 
 /**
  * media must be in the current media list.