![]() |
![]() |
![]() |
libinfgtk-0.3 Reference Manual | ![]() |
---|---|---|---|---|
#define INF_GTK_TYPE_BROWSER_MODEL_STATUS InfGtkBrowserModel; enum InfGtkBrowserModelStatus; enum InfGtkBrowserModelColumn; void inf_gtk_browser_model_set_browser (InfGtkBrowserModel *model, GtkTreePath *path, GtkTreeIter *iter, InfcBrowser *browser); void inf_gtk_browser_model_resolve (InfGtkBrowserModel *model, InfDiscovery *discovery, InfDiscoveryInfo *info); gboolean inf_gtk_browser_model_browser_iter_to_tree_iter (InfGtkBrowserModel *model, InfcBrowser *browser, InfcBrowserIter *browser_iter, GtkTreeIter *tree_iter);
#define INF_GTK_TYPE_BROWSER_MODEL_STATUS (inf_gtk_browser_model_status_get_type())
typedef enum _InfGtkBrowserModelStatus { INF_GTK_BROWSER_MODEL_INVALID, INF_GTK_BROWSER_MODEL_DISCOVERED, INF_GTK_BROWSER_MODEL_RESOLVING, INF_GTK_BROWSER_MODEL_CONNECTING, INF_GTK_BROWSER_MODEL_CONNECTED, INF_GTK_BROWSER_MODEL_ERROR } InfGtkBrowserModelStatus;
typedef enum _InfGtkBrowserModelColumn { INF_GTK_BROWSER_MODEL_COL_DISCOVERY_INFO, INF_GTK_BROWSER_MODEL_COL_DISCOVERY, INF_GTK_BROWSER_MODEL_COL_BROWSER, INF_GTK_BROWSER_MODEL_COL_STATUS, /* only toplevel */ INF_GTK_BROWSER_MODEL_COL_NAME, INF_GTK_BROWSER_MODEL_COL_ERROR, INF_GTK_BROWSER_MODEL_COL_NODE, INF_GTK_BROWSER_MODEL_NUM_COLS } InfGtkBrowserModelColumn;
void inf_gtk_browser_model_set_browser (InfGtkBrowserModel *model, GtkTreePath *path, GtkTreeIter *iter, InfcBrowser *browser);
Emits the "set-browser" signal. This is supposed to only be called by implementations of InfGtkBrowserModel whenever they set or unset a browser on a row.
|
A InfGtkBrowserModel. |
|
A GtkTreePath to a top-level row. |
|
A GtkTreeIter pointing to the same row. |
|
The new InfcBrowser to set. |
void inf_gtk_browser_model_resolve (InfGtkBrowserModel *model, InfDiscovery *discovery, InfDiscoveryInfo *info);
Resolves info
and adds the resulting connection to the model. If that
connection is already contained, the original (newly resolved) entry
is removed in favor of the existing entry whose browser might already
have explored (parts of) the server's directory.
|
A InfGtkBrowserModel. |
|
A InfDiscovery added to store .
|
|
A InfDiscoveryInfo discovered by discovery .
|
gboolean inf_gtk_browser_model_browser_iter_to_tree_iter (InfGtkBrowserModel *model, InfcBrowser *browser, InfcBrowserIter *browser_iter, GtkTreeIter *tree_iter);
Sets tree_iter
to point to the same node browser_iter
refers to
within the model. If browser
is not known to model
, i.e. its connection
was never added to model
, then the function returns FALSE
and
tree_iter
is left untouched.
|
A InfGtkBrowserModel. |
|
A InfcBrowser. |
|
A InfcBrowserIter pointing into browser .
|
|
A GtkTreeIter that will be set by this function. |
Returns : |
Whether tree_iter was set.
|