now_playing.h File Reference

Go to the source code of this file.

Defines

#define UPDATE_NOW_PLAYING_INTERVAL   1000
#define RENDERER_COMBO_WIDTH   250

Enumerations

enum  {
  RENDERERMODEL_COLUMN_NAME, RENDERERMODEL_COLUMN_DEVUDN, RENDERERMODEL_COLUMN_CURRENT_URI, RENDERERMODEL_COLUMN_CURRENT_NAME,
  RENDERERMODEL_COLUMNS
}
enum  { RENDERERMODEL_ROW_LOCAL, RENDERERMODEL_ROW_FIRST_REMOTE }

Functions

int create_now_playing_bar ()
int create_renderer_combo_model ()
int create_now_playing_text_view_model ()
void renderer_combo_selection_changed (GtkComboBox *widget, gpointer user_data)
void update_now_playing_text ()
void reset_now_playing_update_timeout (guint seconds)
gboolean now_playing_update_timeout (gpointer data)
void update_local_now_playing_text (GtkTextBuffer *buffer)
void update_renderers ()
gboolean get_current_renderer (gchar **udn, gchar **uri, gchar **name)
gboolean cache_current_track_for_current_renderer (gchar *uri, gchar *trackName)
void update_active_renderer_widgets ()
void set_seek_bar_limit (gchar *max_limit)
void set_seek_bar_limit_long (long max_limit)
void set_seek_bar_position (gchar *position)
void set_seek_bar_position_long (long position)


Define Documentation

#define RENDERER_COMBO_WIDTH   250
 

#define UPDATE_NOW_PLAYING_INTERVAL   1000
 


Enumeration Type Documentation

anonymous enum
 

Enumerator:
RENDERERMODEL_COLUMN_NAME 
RENDERERMODEL_COLUMN_DEVUDN 
RENDERERMODEL_COLUMN_CURRENT_URI 
RENDERERMODEL_COLUMN_CURRENT_NAME 
RENDERERMODEL_COLUMNS 

anonymous enum
 

Enumerator:
RENDERERMODEL_ROW_LOCAL 
RENDERERMODEL_ROW_FIRST_REMOTE 


Function Documentation

gboolean cache_current_track_for_current_renderer gchar *  uri,
gchar *  trackName
 

Cache the currently playing URI and track name to the renderer model

Parameters:
uri The URI of the currently playing track (used for comparison)
trackName The name of the currently playing track
Returns:
TRUE if current renderer was updated; otherwise FALSE

int create_now_playing_bar  ) 
 

Create the "Now Playing" tuuba

int create_now_playing_text_view_model  ) 
 

Create the "Now Playing" text view

int create_renderer_combo_model  ) 
 

Create the renderer combo & model

gboolean get_current_renderer gchar **  udn,
gchar **  uri,
gchar **  name
 

Helper function to get the currently selected renderer device's UDN

Parameters:
udn The Renderer device's UDN
Returns:
TRUE if UDN was set; otherwise FALSE

gboolean now_playing_update_timeout gpointer  data  ) 
 

Timeout callback to update the now playing area

void renderer_combo_selection_changed GtkComboBox *  widget,
gpointer  user_data
 

Callback for selecting an item from the renderer combo

void reset_now_playing_update_timeout guint  seconds  ) 
 

Reset the timeout that updates the now playing bar

Parameters:
seconds Use 0 to disable the timeout, otherwise give the timeout interval in seconds

void set_seek_bar_limit gchar *  max_limit  ) 
 

Set the maximum limit for the seek bar. If max_limit results in 0, the seek bar is disabled

Parameters:
max_limit CurrentTrackDuration (H+:MM:SS)

void set_seek_bar_limit_long long  max_limit  ) 
 

Set the maximum limit for the seek bar.

Parameters:
max_limit The limit in seconds (long)

void set_seek_bar_position gchar *  position  ) 
 

Set the seek bar's position as a TrackDuration string

void set_seek_bar_position_long long  position  ) 
 

Set the seek bar's position as a long representation (seconds)

void update_active_renderer_widgets  ) 
 

Checks for some actions from the selected renderer device and de/activates widgets according to their presence/absence

void update_local_now_playing_text GtkTextBuffer *  buffer  ) 
 

Update the text displayed in the "Now Playing" area from local renderer

void update_now_playing_text  ) 
 

Update the text displayed in the "Now Playing" area

void update_renderers  ) 
 

Update the list of available renderer devices


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