#include <ap_UnixDialog_CollaborationShare.h>
Public Member Functions | |
AP_UnixDialog_CollaborationShare (XAP_DialogFactory *pDlgFactory, XAP_Dialog_Id id) | |
void | runModal (XAP_Frame *pFrame) |
void | eventOk () |
void | eventToggle (gchar *path_str) |
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) |
void | _populateBuddyModel (bool refresh) |
AccountHandler * | _getActiveAccountHandler () |
void | _setAccountHint (const UT_UTF8String &sHint) |
void | _refreshWindow () |
void | _getSelectedBuddies (std::vector< std::string > &vACL) |
void | _freeBuddyList () |
Private Attributes | |
GtkWidget * | m_wWindowMain |
GtkWidget * | m_wAccount |
GtkWidget * | m_wAccountHint |
GtkWidget * | m_wAccountHintSpacer |
GtkWidget * | m_wAccountHintHbox |
GtkWidget * | m_wBuddyTree |
GtkTreeModel * | m_pAccountModel |
GtkListStore * | m_pBuddyModel |
GObject * | m_crToggle |
GtkWidget * | m_wOk |
AP_UnixDialog_CollaborationShare::AP_UnixDialog_CollaborationShare | ( | XAP_DialogFactory * | pDlgFactory, | |
XAP_Dialog_Id | id | |||
) |
Referenced by static_constructor().
GtkWidget * AP_UnixDialog_CollaborationShare::_constructWindow | ( | void | ) | [private] |
References DESC_COLUMN, m_crToggle, m_pBuddyModel, m_wAccount, m_wAccountHint, m_wAccountHintHbox, m_wAccountHintSpacer, m_wBuddyTree, m_wOk, newDialogBuilder(), s_account_changed(), s_ok_clicked(), and s_share_toggled().
Referenced by runModal().
void AP_UnixDialog_CollaborationShare::_freeBuddyList | ( | ) | [private] |
References BUDDY_COLUMN, DELETEP, m_pBuddyModel, and UT_DEBUGMSG.
Referenced by _populateBuddyModel(), and runModal().
AccountHandler * AP_UnixDialog_CollaborationShare::_getActiveAccountHandler | ( | ) | [private, virtual] |
Implements AP_Dialog_CollaborationShare.
References gchar, m_pAccountModel, and m_wAccount.
Referenced by _populateBuddyModel(), and eventOk().
void AP_UnixDialog_CollaborationShare::_getSelectedBuddies | ( | std::vector< std::string > & | vACL | ) | [private] |
References BUDDY_COLUMN, m_pBuddyModel, SHARE_COLUMN, and UT_DEBUGMSG.
Referenced by eventOk().
void AP_UnixDialog_CollaborationShare::_populateBuddyModel | ( | bool | refresh | ) | [private, virtual] |
Implements AP_Dialog_CollaborationShare.
References _freeBuddyList(), _getActiveAccountHandler(), AP_Dialog_CollaborationShare::_getSessionACL(), AP_Dialog_CollaborationShare::_populateShareState(), DESC_COLUMN, AccountHandler::getBuddies(), AccountHandler::getBuddiesAsync(), AbiCollabSessionManager::getManager(), m_pBuddyModel, AP_Dialog_CollaborationShare::m_vAcl, m_wBuddyTree, SHARE_COLUMN, UT_continue_if_fail, UT_DEBUGMSG, and UT_return_if_fail.
Referenced by _refreshWindow().
void AP_UnixDialog_CollaborationShare::_populateWindowData | ( | void | ) | [private] |
References AP_Dialog_CollaborationShare::_getShareableAccountHandler(), AccountHandler::canManuallyStartSession(), AbiCollabSessionManager::getAccounts(), AccountHandler::getDescription(), AbiCollabSessionManager::getManager(), AbiCollabSessionManager::getRegisteredAccountHandlers(), AccountHandler::isOnline(), m_pAccountModel, m_wAccount, UT_continue_if_fail, UT_return_if_fail, and UT_UTF8String::utf8_str().
Referenced by runModal().
void AP_UnixDialog_CollaborationShare::_refreshWindow | ( | ) | [private, virtual] |
Implements AP_Dialog_CollaborationShare.
References _populateBuddyModel(), and UT_DEBUGMSG.
void AP_UnixDialog_CollaborationShare::_setAccountHint | ( | const UT_UTF8String & | sHint | ) | [private, virtual] |
Implements AP_Dialog_CollaborationShare.
References m_wAccountHint, m_wAccountHintHbox, m_wAccountHintSpacer, UT_DEBUGMSG, and UT_UTF8String::utf8_str().
void AP_UnixDialog_CollaborationShare::eventOk | ( | ) |
References _getActiveAccountHandler(), _getSelectedBuddies(), AP_Dialog_CollaborationShare::m_pAccount, AP_Dialog_CollaborationShare::m_vAcl, and UT_DEBUGMSG.
Referenced by s_ok_clicked().
void AP_UnixDialog_CollaborationShare::eventToggle | ( | gchar * | path_str | ) |
References m_pBuddyModel, SHARE_COLUMN, and UT_DEBUGMSG.
Referenced by s_share_toggled().
void AP_UnixDialog_CollaborationShare::runModal | ( | XAP_Frame * | pFrame | ) | [virtual] |
XAP_Dialog * AP_UnixDialog_CollaborationShare::static_constructor | ( | XAP_DialogFactory * | pFactory, | |
XAP_Dialog_Id | id | |||
) | [static] |
References AP_UnixDialog_CollaborationShare().
GObject* AP_UnixDialog_CollaborationShare::m_crToggle [private] |
Referenced by _constructWindow().
GtkTreeModel* AP_UnixDialog_CollaborationShare::m_pAccountModel [private] |
Referenced by _getActiveAccountHandler(), and _populateWindowData().
GtkListStore* AP_UnixDialog_CollaborationShare::m_pBuddyModel [private] |
Referenced by _constructWindow(), _freeBuddyList(), _getSelectedBuddies(), _populateBuddyModel(), and eventToggle().
GtkWidget* AP_UnixDialog_CollaborationShare::m_wAccount [private] |
Referenced by _constructWindow(), _getActiveAccountHandler(), and _populateWindowData().
GtkWidget* AP_UnixDialog_CollaborationShare::m_wAccountHint [private] |
Referenced by _constructWindow(), and _setAccountHint().
GtkWidget* AP_UnixDialog_CollaborationShare::m_wAccountHintHbox [private] |
Referenced by _constructWindow(), and _setAccountHint().
GtkWidget* AP_UnixDialog_CollaborationShare::m_wAccountHintSpacer [private] |
Referenced by _constructWindow(), and _setAccountHint().
GtkWidget* AP_UnixDialog_CollaborationShare::m_wBuddyTree [private] |
Referenced by _constructWindow(), and _populateBuddyModel().
GtkWidget* AP_UnixDialog_CollaborationShare::m_wOk [private] |
Referenced by _constructWindow().
GtkWidget* AP_UnixDialog_CollaborationShare::m_wWindowMain [private] |
Referenced by runModal().