~woodrow-shen/totem/mybranch

« back to all changes in this revision

Viewing changes to src/totem-playlist.h

Tags: 2.24.3-3
* totem-mozilla.docs: ship README.browser-plugin which explains how to 
  disable the plugin for some MIME types.
* rules: remove the hack that only let totem-xine support VCDs and 
  DVDs, now that GStreamer supports them. Closes: #370789.
* 01_fake_keypresses.patch: new patch. Completely disable the broken 
  XTEST code that generates fake keypresses. Closes: #500330.
* 90_autotools.patch: regenerated.
* Build-depend on nautilus 2.22 to be sure to build the extension for 
  the correct version.
* totem-xine depends on libxine1-x.
* Standards version is 3.8.1.
* Upload to unstable.
* 04_tracker_build.patch: new patch, stolen upstream. Fix build with 
  latest tracker version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
 
15
15
   You should have received a copy of the GNU Library General Public
16
16
   License along with the Gnome Library; see the file COPYING.LIB.  If not,
17
 
   write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18
 
   Boston, MA 02111-1307, USA.
 
17
   write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 
18
   Boston, MA 02110-1301  USA.
19
19
 
20
20
   Author: Bastien Nocera <hadess@hadess.net>
21
21
 */
24
24
#define TOTEM_PLAYLIST_H
25
25
 
26
26
#include <gtk/gtkvbox.h>
27
 
#include <libgnomevfs/gnome-vfs-volume.h>
28
27
#include <totem-pl-parser.h>
 
28
#include <gio/gio.h>
29
29
 
30
30
G_BEGIN_DECLS
31
31
 
32
32
#define TOTEM_TYPE_PLAYLIST            (totem_playlist_get_type ())
33
 
#define TOTEM_PLAYLIST(obj)            (GTK_CHECK_CAST ((obj), TOTEM_TYPE_PLAYLIST, TotemPlaylist))
34
 
#define TOTEM_PLAYLIST_CLASS(klass)    (GTK_CHECK_CLASS_CAST ((klass), TOTEM_TYPE_PLAYLIST, TotemPlaylistClass))
35
 
#define TOTEM_IS_PLAYLIST(obj)         (GTK_CHECK_TYPE ((obj), TOTEM_TYPE_PLAYLIST))
36
 
#define TOTEM_IS_PLAYLIST_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), TOTEM_TYPE_PLAYLIST))
 
33
#define TOTEM_PLAYLIST(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), TOTEM_TYPE_PLAYLIST, TotemPlaylist))
 
34
#define TOTEM_PLAYLIST_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), TOTEM_TYPE_PLAYLIST, TotemPlaylistClass))
 
35
#define TOTEM_IS_PLAYLIST(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TOTEM_TYPE_PLAYLIST))
 
36
#define TOTEM_IS_PLAYLIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TOTEM_TYPE_PLAYLIST))
37
37
 
38
38
typedef enum {
39
39
        TOTEM_PLAYLIST_STATUS_NONE,
74
74
        void (*item_removed) (TotemPlaylist *playlist, const gchar *filename, const gchar *uri);
75
75
};
76
76
 
77
 
GtkType    totem_playlist_get_type (void);
 
77
GType    totem_playlist_get_type (void);
78
78
GtkWidget *totem_playlist_new      (void);
79
79
 
80
80
/* The application is responsible for checking that the mrl is correct
96
96
/* totem_playlist_clear doesn't emit the current_removed signal, even if it does
97
97
 * because the caller should know what to do after it's done with clearing */
98
98
gboolean   totem_playlist_clear (TotemPlaylist *playlist);
99
 
void       totem_playlist_clear_with_gnome_vfs_volume (TotemPlaylist *playlist,
100
 
                                                       GnomeVFSVolume *volume);
 
99
void       totem_playlist_clear_with_g_mount (TotemPlaylist *playlist,
 
100
                                              GMount *mount);
101
101
char      *totem_playlist_get_current_mrl (TotemPlaylist *playlist,
102
102
                                           char **subtitle);
103
103
char      *totem_playlist_get_current_title (TotemPlaylist *playlist,
105
105
char      *totem_playlist_get_title (TotemPlaylist *playlist,
106
106
                                     guint index);
107
107
 
108
 
gboolean   totem_playlist_get_current_metadata (TotemPlaylist *playlist,
109
 
                                                char         **artist,
110
 
                                                char         **title,
111
 
                                                char         **album);
112
108
gboolean   totem_playlist_set_title (TotemPlaylist *playlist,
113
109
                                     const char *title,
114
110
                                     gboolean force);