OssoABookAccountView

OssoABookAccountView — View of an OssoABookAccountModel

Synopsis




            OssoABookAccountView;
GtkWidget*  osso_abook_account_view_new     (OssoABookAccountModel *model,
                                             OssoABookFilterModel *filter_model);
GtkWidget*  osso_abook_account_view_new_basic
                                            (OssoABookAccountModel *model);
GList*      osso_abook_account_view_get_selection
                                            (OssoABookAccountView *view);
OssoABookAccountModelTuple* osso_abook_account_view_get_focus
                                            (OssoABookAccountView *view);
GtkWidget*  osso_abook_account_view_new_no_contact_names
                                            (OssoABookAccountModel *model,
                                             OssoABookFilterModel *filter_model);


Object Hierarchy


  GObject
   +----GtkObject
         +----GtkWidget
               +----GtkContainer
                     +----GtkBin
                           +----GtkScrolledWindow
                                 +----OssoABookTreeView
                                       +----OssoABookAccountView
                                             +----OssoABookAccountSelector

Implemented Interfaces

OssoABookAccountView implements AtkImplementorIface.

Signal Prototypes


"selection-changed"
            void        user_function      (OssoABookAccountView *ossoabookaccountview,
                                            guint arg1,
                                            gpointer user_data);
"tuple-activated"
            void        user_function      (OssoABookAccountView *ossoabookaccountview,
                                            OssoABookAccountModelTuple *arg1,
                                            gpointer user_data);

Description

OssoABookAccountView is a widget that displays an OssoABookAccountModel as a list.

Details

OssoABookAccountView

typedef struct _OssoABookAccountView OssoABookAccountView;

There are no public fields in OssoABookAccountView.


osso_abook_account_view_new ()

GtkWidget*  osso_abook_account_view_new     (OssoABookAccountModel *model,
                                             OssoABookFilterModel *filter_model);

Creates a new OssoABookAccountView object exposing the contents of model, as filtered by filter_model (if non-NULL).

model : An OssoABookAccountModel whose contents are to be exposed
filter_model : An OssoABookFilterModel filtering model, or NULL
Returns : A new OssoABookAccountView object.

osso_abook_account_view_new_basic ()

GtkWidget*  osso_abook_account_view_new_basic
                                            (OssoABookAccountModel *model);

Creates a new OssoABookAccountView object exposing the contents of model, as filtered through OssoABookAllGroup: all non-blocked contacts.

model : An OssoABookAccountModel whose contents are to be exposed
Returns : A new OssoABookAccountView object.

osso_abook_account_view_get_selection ()

GList*      osso_abook_account_view_get_selection
                                            (OssoABookAccountView *view);

Retreives the set of selected rows as a GList of OssoABookAccountModelTuple tuples. The returned GList should be freed manually, but don't osso_abook_account_model_tuple_unref() the elements.

view : An OssoABookAccountView
Returns : A newly allocated GList of OssoABookAccountModelTuple tuples.

osso_abook_account_view_get_focus ()

OssoABookAccountModelTuple* osso_abook_account_view_get_focus
                                            (OssoABookAccountView *view);

Retreives the OssoABookAccountModelTuple that is focused, if any.

view : An OssoABookAccountView
Returns : The OssoABookAccountModelTuple that is focused, or NULL. The tuple is owned by libosso-abook and should not be osso_abook_account_model_tuple_unref()'ed.

osso_abook_account_view_new_no_contact_names ()

GtkWidget*  osso_abook_account_view_new_no_contact_names
                                            (OssoABookAccountModel *model,
                                             OssoABookFilterModel *filter_model);

Creates a new OssoABookAccountView object exposing the contents of model, as filtered by filter_model (if non-NULL). Contact names are not shown.

model : An OssoABookAccountModel whose contents are to be exposed
filter_model : An OssoABookFilterModel filtering model, or NULL
Returns : A new OssoABookAccountView object.

Signals

The "selection-changed" signal

void        user_function                  (OssoABookAccountView *ossoabookaccountview,
                                            guint arg1,
                                            gpointer user_data);

The selection-changed signal is emitted when the set of selected rows has changed.

ossoabookaccountview : the object which received the signal.
arg1 : the number of selected rows.
user_data : user data set when the signal handler was connected.

The "tuple-activated" signal

void        user_function                  (OssoABookAccountView *ossoabookaccountview,
                                            OssoABookAccountModelTuple *arg1,
                                            gpointer user_data);

The tuple-activated signal is emitted when a tuple's row has been activated.

ossoabookaccountview : the object which received the signal.
arg1 : the OssoABookAccountModelTuple whose row was activated.
user_data : user data set when the signal handler was connected.

See Also

OssoABookAccountModel, OssoABookAccountSelector