resource_selection.h

Go to the documentation of this file.
00001 /*
00002  * UPnP Browser for Maemo
00003  *
00004  * resource_selection.h
00005  *
00006  * Copyright 2005 Nokia Corporation
00007  */
00008  
00009 #ifndef RESOURCE_SELECTION_H
00010 #define RESOURCE_SELECTION_H
00011 
00012 #include <gtk/gtk.h>
00013 #include <cybergarage/util/clist.h>
00014 #include <cybergarage/util/cstring.h>
00015 
00016 enum
00017 {
00018         RESOURCEMODEL_COLUMN_NAME = 0,
00019         RESOURCEMODEL_COLUMNS
00020 };
00021 
00022 typedef struct _ResourceSelectionDialog
00023 {
00024         GtkWidget* dialog;
00025         GtkWidget* vbox;
00026 
00027         GtkWidget* dialog_action_area;
00028         GtkWidget* ok_button;
00029         GtkWidget* cancel_button;
00030 
00031         GtkWidget* view;
00032         GtkListStore* model;
00033         GtkWidget* scrolled_window;
00034 
00035 } ResourceSelectionDialog;
00036 
00040 ResourceSelectionDialog* resource_selection_dialog_new();
00041 
00045 void resource_selection_dialog_create_view_model(ResourceSelectionDialog* dialog);
00046 
00050 void resource_selection_dialog_delete(ResourceSelectionDialog* dialog);
00051 
00058 void resource_selection_dialog_update(ResourceSelectionDialog* dialog,
00059                                       gchar* resString);
00060 
00067 gboolean resource_selection_dialog_get_selection(ResourceSelectionDialog* dialog,
00068                                                  gchar** selection);
00069                                                  
00077 gboolean resource_selection_dialog_run(gchar* resString, gchar** selection);
00078 
00079 #endif

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