browser.c File Reference

#include <gtk/gtk.h>
#include "browser.h"
#include "interface.h"
#include "helper.h"
#include "upnp.h"
#include <cybergarage/contentdirectory/ccontentdirectory.h>
#include <cybergarage/contentdirectory/cdidllite.h>
#include <cybergarage/avdebug.h>

Functions

int create_device_view ()
int create_folder_model_view ()
void device_view_row_selected (GtkTreeSelection *selection, gpointer user_data)
gboolean expand_idlefunc (gpointer data)
void folder_view_row_expanded (GtkTreeView *view, GtkTreeIter *iter, GtkTreePath *path, gpointer user_data)
void render_mimeimage_datafunc (GtkTreeViewColumn *column, GtkCellRenderer *renderer, GtkTreeModel *model, GtkTreeIter *iter, gpointer data)
gboolean container_filter_func (GtkTreeModel *model, GtkTreeIter *iter, gpointer data)
gboolean update_folder_view_to_path (GtkTreePath *path)
gboolean get_current_content_item (gchar **name, gchar **uri, gchar **node_class, gchar **id, gchar **udn)

Variables

UPnPBrowserWidgetswidgets

Function Documentation

gboolean container_filter_func GtkTreeModel *  model,
GtkTreeIter *  iter,
gpointer  data
 

Filter the contents of the given model

int create_device_view  ) 
 

Create the device tree model & view

int create_folder_model_view  ) 
 

Create the folder tree model & view

void device_view_row_selected GtkTreeSelection *  selection,
gpointer  user_data
 

Callback for selecting a row in device list.

gboolean expand_idlefunc gpointer  data  ) 
 

void folder_view_row_expanded GtkTreeView *  view,
GtkTreeIter *  iter,
GtkTreePath *  path,
gpointer  user_data
 

Callback for expanding a folder in folder view

gboolean get_current_content_item gchar **  name,
gchar **  uri,
gchar **  node_class,
gchar **  id,
gchar **  udn
 

Helper to get the currently selected content directory item

Parameters:
uri The URI of the currently selected resource
node_class The UPnP class of the currently selected resource
id The object ID of the currently selected resource
udn The UDN of the server offering the currently selected resource
Returns:
TRUE if an item was selected; otherwise FALSE

void render_mimeimage_datafunc GtkTreeViewColumn *  column,
GtkCellRenderer *  renderer,
GtkTreeModel *  model,
GtkTreeIter *  iter,
gpointer  data
 

Renders right pixbuf according to class of the device.

gboolean update_folder_view_to_path GtkTreePath *  path  ) 
 

Parameters:
path Path in folder_model.
Returns:
if it was updated.


Variable Documentation

UPnPBrowserWidgets* widgets
 

Global struct that holds the application widgets


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