]> git.sesse.net Git - vlc/blobdiff - modules/gui/beos/VlcWrapper.h
Changes done since Feb 28 2003:
[vlc] / modules / gui / beos / VlcWrapper.h
index 4623ebbf5afbf3e17b5c7ab5d173f8c9f20cd599..c873b771944f7ee042c0ba765fe32b528574b868 100644 (file)
@@ -2,7 +2,7 @@
  * VlcWrapper.h: BeOS plugin for vlc (derived from MacOS X port)
  *****************************************************************************
  * Copyright (C) 2001 VideoLAN
- * $Id: VlcWrapper.h,v 1.18 2003/01/29 00:02:09 titer Exp $
+ * $Id: VlcWrapper.h,v 1.19 2003/02/01 12:01:11 stippi Exp $
  *
  * Authors: Florian G. Pflug <fgp@phlo.org>
  *          Jon Lech Johansen <jon-vl@nanocrew.net>
@@ -79,7 +79,8 @@ public:
     bool         IsPlaying();
         
     /* Playlist */
-    void    OpenFiles( BList *o_files, bool replace = true );
+    void    OpenFiles( BList *o_files, bool replace = true,
+                                  int32 index = -1 );
     void    OpenDisc( BString o_type, BString o_device,
                      int i_title, int i_chapter );
     int     PlaylistSize();
@@ -99,6 +100,21 @@ public:
     void    NavigatePrev();
     void    NavigateNext();
 
+       /* Playlist manipulation */
+       bool    PlaylistLock() const;
+       void    PlaylistUnlock() const;
+       // playlist must be locked prior to calling all of these!
+       void*   PlaylistItemAt( int index ) const;
+                       // both functions return a copy of the removed item
+                       // so that it can be added at another index
+       void*   PlaylistRemoveItem( int index ) const;
+       void*   PlaylistRemoveItem( void* item ) const;
+                       // uses playlist_AddItem()
+       bool    PlaylistAddItem( void* item, int index ) const;
+       void*   PlaylistCloneItem( void* item ) const;
+                       // only modifies playlist, doesn't effect playback
+       void    PlaylistSetPlaying( int index ) const;
+
     /* Audio */
     bool           HasAudio();
     unsigned short GetVolume();
@@ -123,7 +139,7 @@ public:
     void    ChapterInfo( int32& currentIndex, int32& maxIndex );
     
     /* Miscellanous */
-    void LoadSubFile( char * psz_file );
+    void LoadSubFile( const char * psz_file );
     void FilterChange();
     
 private: