playlist_dialog.h

Go to the documentation of this file.
00001 /*
00002  * UPnP Browser for Maemo
00003  *
00004  * playlist_dialog.h
00005  *
00006  * Copyright 2005 Nokia Corporation
00007  */
00008  
00009 #ifndef PLAYLIST_DIALOG_H
00010 #define PLAYLIST_DIALOG_H
00011 
00012 #include <gtk/gtk.h>
00013 #include <cybergarage/util/clist.h>
00014 #include <cybergarage/util/cstring.h>
00015 
00016 #include "playlist.h"
00017 
00018 enum
00019 {
00020         PLAYLISTMODEL_COLUMN_NAME = 0,
00021         PLAYLISTMODEL_COLUMN_URI,
00022         PLAYLISTMODEL_COLUMN_SERVER,
00023         PLAYLISTMODEL_COLUMN_RENDERER,
00024         PLAYLISTMODEL_COLUMNS
00025 };
00026 
00027 typedef struct _PlaylistDialog
00028 {
00029         GtkWidget* playlist_dialog;
00030         GtkWidget* vbox;
00031 
00032         GtkWidget* dialog_action_area;
00033         GtkWidget* remove_button;
00034         GtkWidget* clear_button;
00035         GtkWidget* close_button;
00036         
00037         GtkWidget* playlist_view;
00038         GtkWidget* scrolled_window;
00039         GtkListStore* playlist_model;
00040 
00041 } PlaylistDialog;
00042 
00046 PlaylistDialog* playlist_dialog_new();
00047 
00051 void playlist_dialog_create_view_model(PlaylistDialog* dialog);
00052 
00056 void playlist_dialog_delete(PlaylistDialog* dialog);
00057 
00064 void playlist_dialog_update(PlaylistDialog* dialog, Playlist* list);
00065 
00071 gchar* playlist_dialog_get_selection(PlaylistDialog* dialog);
00072 
00077 void playlist_dialog_run();
00078 
00079 #endif

Generated on Mon Aug 14 10:23:32 2006 for CyberLinkC-AV by  doxygen 1.4.6