now_playing.h

Go to the documentation of this file.
00001 /*
00002  * UPnP Browser for Maemo
00003  *
00004  * now_playing.h
00005  *
00006  * Copyright 2005 Nokia Corporation
00007  */
00008  
00009 #ifndef NOW_PLAYING_H
00010 #define NOW_PLAYING_H
00011 
00012 #define UPDATE_NOW_PLAYING_INTERVAL 1000
00013 #define RENDERER_COMBO_WIDTH 250
00014 
00015 enum {
00016         RENDERERMODEL_COLUMN_NAME,
00017         RENDERERMODEL_COLUMN_DEVUDN,
00018         RENDERERMODEL_COLUMN_CURRENT_URI,
00019         RENDERERMODEL_COLUMN_CURRENT_NAME,
00020         RENDERERMODEL_COLUMNS
00021 };
00022 
00023 enum {
00024         RENDERERMODEL_ROW_LOCAL,
00025         RENDERERMODEL_ROW_FIRST_REMOTE
00026 };
00027 
00031 int create_now_playing_bar();
00032 
00036 int create_renderer_combo_model();
00037 
00041 int create_now_playing_text_view_model();
00042 
00046 void renderer_combo_selection_changed(GtkComboBox *widget,
00047                                         gpointer user_data);
00048 
00053 void update_now_playing_text();
00054 
00055 
00062 void reset_now_playing_update_timeout(guint seconds);
00063 
00067 gboolean now_playing_update_timeout(gpointer data);
00068 
00075 void update_local_now_playing_text(GtkTextBuffer* buffer);
00076 
00081 void update_renderers();
00082 
00091 gboolean get_current_renderer(gchar** udn, gchar** uri, gchar** name);
00092 
00100 gboolean cache_current_track_for_current_renderer(gchar* uri,
00101                                                   gchar* trackName);
00102 
00107 void update_active_renderer_widgets();
00108 
00115 void set_seek_bar_limit(gchar* max_limit);
00116 
00122 void set_seek_bar_limit_long(long max_limit);
00123 
00128 void set_seek_bar_position(gchar* position);
00129 
00133 void set_seek_bar_position_long(long position);
00134 
00135 #endif

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