resource_selection.c File Reference

#include <gtk/gtk.h>
#include <cybergarage/util/cstring.h>
#include <string.h>
#include "resource_selection.h"

Functions

ResourceSelectionDialogresource_selection_dialog_new ()
void resource_selection_dialog_create_view_model (ResourceSelectionDialog *dialog)
void resource_selection_dialog_delete (ResourceSelectionDialog *dialog)
void resource_selection_dialog_update (ResourceSelectionDialog *dialog, gchar *resString)
gboolean resource_selection_dialog_get_selection (ResourceSelectionDialog *dialog, gchar **uri)
gboolean resource_selection_dialog_run (gchar *resString, gchar **selection)

Function Documentation

void resource_selection_dialog_create_view_model ResourceSelectionDialog dialog  ) 
 

Create the view & model components

void resource_selection_dialog_delete ResourceSelectionDialog dialog  ) 
 

Destroy a dialog

gboolean resource_selection_dialog_get_selection ResourceSelectionDialog dialog,
gchar **  selection
 

Get the selected text from the model

Parameters:
dialog The dialog
selection A newly-allocated string containing the selected text

ResourceSelectionDialog* resource_selection_dialog_new  ) 
 

Create a dialog

gboolean resource_selection_dialog_run gchar *  resString,
gchar **  selection
 

Shortcut function that displays the resource selection dialog.

Parameters:
resString A string containing resources
selection The URI that the user has selected
Returns:
TRUE if the user pressed OK; otherwise FALSE

void resource_selection_dialog_update ResourceSelectionDialog dialog,
gchar *  resString
 

Parse multiple URI strings that are passed in resString as <URI><URI>...


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