settings.c File Reference

#include <gtk/gtk.h>
#include <gconf/gconf-client.h>
#include <libintl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <string.h>
#include <stdio.h>
#include "settings.h"
#include "interface.h"
#include "now_playing.h"

Defines

#define KEY_BASE   "/nokia/extras/upnpbrowser"
#define KEY_TRANSPORT_UPDATE_INTERVAL   "/transport_update_interval"
#define KEY_UPDATE_SERVERS   "/update_servers"
#define KEY_RESOLVE_TITLES   "/resolve_titles"
#define KEY_SEND_META_DATA   "/send_meta_data"

Functions

gboolean settings_load (UPnPBrowserSettings *settings)
gboolean settings_save (UPnPBrowserSettings *settings)
gboolean settings_edit_dialog (UPnPBrowserSettings *settings)
GtkWidget * create_settings_dialog (UPnPBrowserSettings *cache)
void transport_update_interval_changed (GtkSpinButton *spinbutton, gpointer user_data)
void update_servers_toggled (GtkToggleButton *togglebutton, gpointer user_data)
void resolve_titles_toggled (GtkToggleButton *togglebutton, gpointer user_data)
void send_meta_data_toggled (GtkToggleButton *togglebutton, gpointer user_data)

Variables

UPnPBrowserWidgetswidgets

Define Documentation

#define KEY_BASE   "/nokia/extras/upnpbrowser"
 

#define KEY_RESOLVE_TITLES   "/resolve_titles"
 

#define KEY_SEND_META_DATA   "/send_meta_data"
 

#define KEY_TRANSPORT_UPDATE_INTERVAL   "/transport_update_interval"
 

#define KEY_UPDATE_SERVERS   "/update_servers"
 


Function Documentation

GtkWidget* create_settings_dialog UPnPBrowserSettings cache  ) 
 

Create the settings dialog

void resolve_titles_toggled GtkToggleButton *  togglebutton,
gpointer  user_data
 

void send_meta_data_toggled GtkToggleButton *  togglebutton,
gpointer  user_data
 

gboolean settings_edit_dialog UPnPBrowserSettings settings  ) 
 

Edit settings with a dialog

gboolean settings_load UPnPBrowserSettings settings  ) 
 

Load settings

gboolean settings_save UPnPBrowserSettings settings  ) 
 

Save settings

void transport_update_interval_changed GtkSpinButton *  spinbutton,
gpointer  user_data
 

void update_servers_toggled GtkToggleButton *  togglebutton,
gpointer  user_data
 


Variable Documentation

UPnPBrowserWidgets* widgets
 

Global struct that holds the application widgets


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