Logo Search packages:      
Sourcecode: gabber2 version File versions  Download package

Gabber::RosterController Class Reference

#include <RosterController.hh>

List of all members.

Detailed Description

Model for a Gtk::TreeView that is based on the roster state

Definition at line 27 of file RosterController.hh.

Public Types

enum  SortType { rmSortAvailability, rmSortFullName }

Public Member Functions

void clear ()
bool getHideOffline () const
SortType getSortType () const
bool getSortWithGroups () const
 RosterController (jabberoo::Session &sess, bool hide_offline=true, bool sort_with_groups=true)
void set_default_colors (const Gdk::Color &fg_col, const Gdk::Color &bg_col, const Gdk::Color &sel_fg_col, const Gdk::Color &sel_bg_col)
 Set the default foreground color for items.
void set_selected_jid (const std::string &jid)
void setHideOffline (bool hide)
 Hide users that are offline.
void setSortType (SortType type)
void setSortWithGroups (bool use_groups)
 use groups in the sorting methods

Static Public Member Functions

static Glib::RefPtr
< RosterController
create (jabberoo::Session &sess, bool hide_offline=true, bool sort_with_groups=true)

Public Attributes

const ModelColumns columns

Protected Member Functions

void do_get_value_vfunc (const TreeModel::iterator &iter, int column, GValue *value) const
GType get_column_type_vfunc (int index) const
GType get_column_type_vfunc (int index)
Gtk::TreeModelFlags get_flags_vfunc () const
Gtk::TreeModelFlags get_flags_vfunc ()
bool get_iter_vfunc (const TreeModel::Path &path, TreeModel::iterator &iter) const
bool get_iter_vfunc (GtkTreeIter *iter, const TreeModel::Path &path)
int get_n_columns_vfunc () const
int get_n_columns_vfunc ()
TreeModel::Path get_path_vfunc (const TreeModel::iterator &iter) const
void get_value_impl (const iterator &row, int column, Glib::ValueBase &value)
void get_value_vfunc (const TreeModel::iterator &iter, int column, Glib::ValueBase &value) const
void get_value_vfunc (const TreeModel::iterator &iter, int column, GValue *value)
bool iter_children_vfunc (const TreeModel::iterator &parent, TreeModel::iterator &iter) const
bool iter_children_vfunc (GtkTreeIter *iter, const GtkTreeIter *parent)
bool iter_has_child_vfunc (const TreeModel::iterator &iter) const
bool iter_has_child_vfunc (const GtkTreeIter *iter)
int iter_n_children_vfunc (const TreeModel::iterator &iter) const
int iter_n_children_vfunc (const GtkTreeIter *iter)
int iter_n_root_children_vfunc (void) const
bool iter_next_vfunc (const TreeModel::iterator &iter, TreeModel::iterator &iter_next) const
bool iter_next_vfunc (GtkTreeIter *iter)
bool iter_nth_child_vfunc (const TreeModel::iterator &parent, int n, TreeModel::iterator &iter) const
bool iter_nth_child_vfunc (GtkTreeIter *iter, const GtkTreeIter *parent, int n)
bool iter_nth_root_child_vfunc (int n, TreeModel::iterator &iter) const
bool iter_parent_vfunc (const TreeModel::iterator &child, TreeModel::iterator &iter) const
bool iter_parent_vfunc (GtkTreeIter *iter, const GtkTreeIter *child)
void on_packet_queued (const std::string &jid, const std::string &icon)
void on_queue_changed (const PacketQueue::QueueInfo &jid_next, const PacketQueue::QueueInfo &first)
void on_queue_emptied (const std::string &jid)
void ref_node_vfunc (GtkTreeIter *iter)
void set_value_impl (const iterator &row, int column, const Glib::ValueBase &value)
void unref_node_vfunc (GtkTreeIter *iter)

Private Types

typedef std::map< RosterNode
*, NodeInfo
typedef std::set< RosterNode * > NodeSet

Private Member Functions

void assign_path (const RosterModel::Path &rpath, TreeModel::Path &tpath) const
void clearIter (GtkTreeIter *iter)
bool do_roster_updates ()
bool fadeIn (RosterNode *node, int max_fade)
bool fadeOut (RosterNode *node)
std::string getJIDIcon (const std::string &jid)
void on_connected (void)
void on_rostermodel_inserted (RosterNode &node, RosterModel::Path &path)
void on_rostermodel_removed (RosterNode &node, RosterModel::Path &path)
void on_rostermodel_updated (RosterNode &node, RosterModel::Path &path)
void refresh ()
void set_queue_icon (const std::string &jid, const std::string &icon, bool first=false)

Private Attributes

AvatarManager * _avatar_manager
DefaultColors _default_colors
bool _has_first_refresh
bool _hide_offline
NodeSet _need_update
NodeInfoMap _node_info
jabberoo::Roster & _roster
std::string _selected_jid
jabberoo::Session & _sess
SortType _sort_type
bool _sort_with_groups
bool _update_running

Static Private Attributes

static RosterController_Class rostercontroller_class_


class RosterController_Class


struct  DefaultColors
struct  ModelColumns
struct  NodeInfo

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index