settings.h

Go to the documentation of this file.
00001 /*
00002  * UPnP Browser for Maemo
00003  *
00004  * settings.h
00005  *
00006  * Copyright 2005 Nokia Corporation
00007  */
00008 
00009 #ifndef SETTINGS_H
00010 #define SETTINGS_H
00011 
00012 #include <gtk/gtk.h>
00013 #include <gconf/gconf-client.h>
00014 
00015 #define _(String) gettext(String)
00016 
00017 typedef struct _UPnPBrowserSettings
00018 {
00019         gint transportUpdateInterval;
00020         gboolean updateServers;
00021         gboolean resolveTitles;
00022         gboolean sendMetaData;
00023         
00024 } UPnPBrowserSettings;
00025 
00026 gboolean settings_load(UPnPBrowserSettings* settings);
00027 gboolean settings_save(UPnPBrowserSettings* settings);
00028 
00029 gboolean settings_edit_dialog(UPnPBrowserSettings* settings);
00030 GtkWidget* create_settings_dialog(UPnPBrowserSettings* cache);
00031 
00032 /****************************************************************************
00033  * Callbacks
00034  ****************************************************************************/
00035 void transport_update_interval_changed(GtkSpinButton *spinbutton,
00036                                        gpointer user_data);
00037 
00038 void update_servers_toggled(GtkToggleButton *togglebutton,
00039                            gpointer user_data);
00040 
00041 void resolve_titles_toggled(GtkToggleButton *togglebutton,
00042                            gpointer user_data);
00043 
00044 void send_meta_data_toggled(GtkToggleButton *togglebutton,
00045                             gpointer user_data);
00046 
00047 #endif

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