#include <ap_UnixDialog_CollaborationAccounts.h>
Public Member Functions | |
AP_UnixDialog_CollaborationAccounts (XAP_DialogFactory *pDlgFactory, XAP_Dialog_Id id) | |
void | runModal (XAP_Frame *pFrame) |
void | eventAdd () |
void | eventProperties () |
void | eventDelete () |
void | eventSelectAccount () |
void | eventOnline (AccountHandler *pHandler, bool online) |
virtual void | signal (const Event &event, BuddyPtr pSource) |
GtkListStore * | getModel () |
Static Public Member Functions | |
static XAP_Dialog * | static_constructor (XAP_DialogFactory *pFactory, XAP_Dialog_Id id) |
Private Member Functions | |
GtkWidget * | _constructWindow (void) |
void | _populateWindowData (void) |
GtkListStore * | _constructModel () |
void | _setModel (GtkListStore *model) |
AccountHandler * | _getSelectedAccountHandler () |
Private Attributes | |
GtkWidget * | m_wWindowMain |
GtkWidget * | m_wAdd |
GtkWidget * | m_wProperties |
GtkWidget * | m_wDelete |
GtkCellRenderer * | m_wRenderer |
GtkCellRenderer * | m_wToggleRenderer |
GtkListStore * | m_wModel |
GtkWidget * | m_wAccountsTree |
AP_UnixDialog_CollaborationAccounts::AP_UnixDialog_CollaborationAccounts | ( | XAP_DialogFactory * | pDlgFactory, | |
XAP_Dialog_Id | id | |||
) |
Referenced by static_constructor().
GtkListStore * AP_UnixDialog_CollaborationAccounts::_constructModel | ( | ) | [private] |
References AbiCollabSessionManager::getAccounts(), AccountHandler::getDescription(), AccountHandler::getDisplayType(), AbiCollabSessionManager::getManager(), AccountHandler::isOnline(), ONLINE_COLUMN, UT_DEBUGMSG, and UT_UTF8String::utf8_str().
Referenced by _populateWindowData(), eventAdd(), eventDelete(), eventProperties(), and signal().
GtkWidget * AP_UnixDialog_CollaborationAccounts::_constructWindow | ( | void | ) | [private] |
References m_wAccountsTree, m_wAdd, m_wDelete, m_wProperties, newDialogBuilder(), s_account_selected(), s_add_clicked(), s_delete_clicked(), and s_properties_clicked().
Referenced by runModal().
AccountHandler * AP_UnixDialog_CollaborationAccounts::_getSelectedAccountHandler | ( | ) | [private] |
References HANDLER_COLUMN, m_wAccountsTree, and m_wModel.
Referenced by eventDelete(), eventProperties(), and eventSelectAccount().
void AP_UnixDialog_CollaborationAccounts::_populateWindowData | ( | void | ) | [private] |
References _constructModel(), _setModel(), m_wAccountsTree, m_wRenderer, m_wToggleRenderer, and s_online_toggled().
Referenced by runModal().
void AP_UnixDialog_CollaborationAccounts::_setModel | ( | GtkListStore * | model | ) | [private] |
References eventSelectAccount(), m_wAccountsTree, and m_wModel.
Referenced by _populateWindowData(), eventAdd(), eventDelete(), eventProperties(), and signal().
void AP_UnixDialog_CollaborationAccounts::eventAdd | ( | ) |
References _constructModel(), _setModel(), and AP_Dialog_CollaborationAccounts::createNewAccount().
Referenced by s_add_clicked().
void AP_UnixDialog_CollaborationAccounts::eventDelete | ( | ) |
void AP_UnixDialog_CollaborationAccounts::eventOnline | ( | AccountHandler * | pHandler, | |
bool | online | |||
) |
References AccountHandler::connect(), AccountHandler::disconnect(), AccountHandler::isOnline(), UT_DEBUGMSG, and UT_return_if_fail.
Referenced by s_online_toggled().
void AP_UnixDialog_CollaborationAccounts::eventProperties | ( | ) |
References _constructModel(), _getSelectedAccountHandler(), _setModel(), AP_Dialog_CollaborationAccounts::createEditAccount(), UT_DEBUGMSG, and UT_return_if_fail.
Referenced by s_properties_clicked().
void AP_UnixDialog_CollaborationAccounts::eventSelectAccount | ( | ) |
References _getSelectedAccountHandler(), AccountHandler::canDelete(), AccountHandler::canEditProperties(), m_wDelete, m_wProperties, and UT_DEBUGMSG.
Referenced by _setModel(), and s_account_selected().
GtkListStore* AP_UnixDialog_CollaborationAccounts::getModel | ( | ) | [inline] |
References m_wModel.
Referenced by s_online_toggled().
void AP_UnixDialog_CollaborationAccounts::runModal | ( | XAP_Frame * | pFrame | ) | [virtual] |
void AP_UnixDialog_CollaborationAccounts::signal | ( | const Event & | event, | |
BuddyPtr | pSource | |||
) | [virtual] |
Implements EventListener.
References _constructModel(), _setModel(), PCT_AccountNewEvent, PCT_AccountOfflineEvent, PCT_AccountOnlineEvent, and UT_DEBUGMSG.
XAP_Dialog * AP_UnixDialog_CollaborationAccounts::static_constructor | ( | XAP_DialogFactory * | pFactory, | |
XAP_Dialog_Id | id | |||
) | [static] |
References AP_UnixDialog_CollaborationAccounts().
GtkWidget* AP_UnixDialog_CollaborationAccounts::m_wAccountsTree [private] |
Referenced by _constructWindow(), _getSelectedAccountHandler(), _populateWindowData(), and _setModel().
GtkWidget* AP_UnixDialog_CollaborationAccounts::m_wAdd [private] |
Referenced by _constructWindow().
GtkWidget* AP_UnixDialog_CollaborationAccounts::m_wDelete [private] |
Referenced by _constructWindow(), and eventSelectAccount().
GtkListStore* AP_UnixDialog_CollaborationAccounts::m_wModel [private] |
Referenced by _getSelectedAccountHandler(), _setModel(), and getModel().
GtkWidget* AP_UnixDialog_CollaborationAccounts::m_wProperties [private] |
Referenced by _constructWindow(), and eventSelectAccount().
GtkCellRenderer* AP_UnixDialog_CollaborationAccounts::m_wRenderer [private] |
Referenced by _populateWindowData().
GtkCellRenderer* AP_UnixDialog_CollaborationAccounts::m_wToggleRenderer [private] |
Referenced by _populateWindowData().
GtkWidget* AP_UnixDialog_CollaborationAccounts::m_wWindowMain [private] |
Referenced by runModal().