#include <ap_Win32Dialog_CollaborationShare.h>
Public Member Functions | |
AP_Win32Dialog_CollaborationShare (XAP_DialogFactory *pDlgFactory, XAP_Dialog_Id id) | |
void | runModal (XAP_Frame *pFrame) |
BOOL | _onInitDialog (HWND hWnd, WPARAM wParam, LPARAM lParam) |
BOOL | _onCommand (HWND hWnd, WPARAM wParam, LPARAM lParam) |
Static Public Member Functions | |
static XAP_Dialog * | static_constructor (XAP_DialogFactory *pFactory, XAP_Dialog_Id id) |
static BOOL CALLBACK | s_dlgProc (HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) |
Private Member Functions | |
void | _populateWindowData () |
void | _populateBuddyModel (bool refresh) |
void | _refreshWindow () |
AccountHandler * | _getActiveAccountHandler () |
void | _setAccountHint (const UT_UTF8String &sHint) |
void | _getSelectedBuddies (std::vector< std::string > &vACL) |
void | _freeBuddyList () |
Private Attributes | |
XAP_Win32DialogHelper * | m_pWin32Dialog |
HINSTANCE | m_hInstance |
HWND | m_hAccountCombo |
HWND | m_hBuddyList |
HTREEITEM | m_hSelected |
std::vector< AccountHandler * > | m_vAccountCombo |
std::map< HTREEITEM, ShareListItem > | m_mTreeItemHandles |
AP_Win32Dialog_CollaborationShare::AP_Win32Dialog_CollaborationShare | ( | XAP_DialogFactory * | pDlgFactory, | |
XAP_Dialog_Id | id | |||
) |
References AbiCollabSessionManager::getManager(), m_hInstance, and UT_DEBUGMSG.
Referenced by static_constructor().
void AP_Win32Dialog_CollaborationShare::_freeBuddyList | ( | ) | [private] |
References DELETEP, m_hBuddyList, UT_continue_if_fail, and UT_DEBUGMSG.
Referenced by _populateBuddyModel(), and s_dlgProc().
AccountHandler * AP_Win32Dialog_CollaborationShare::_getActiveAccountHandler | ( | ) | [private, virtual] |
Implements AP_Dialog_CollaborationShare.
References XAP_Win32DialogHelper::getComboSelectedIndex(), m_pWin32Dialog, m_vAccountCombo, UT_DEBUGMSG, and UT_return_val_if_fail.
Referenced by _onCommand(), and _populateBuddyModel().
void AP_Win32Dialog_CollaborationShare::_getSelectedBuddies | ( | std::vector< std::string > & | vACL | ) | [private] |
References BuddyPtrWrapper::getBuddy(), m_hBuddyList, AP_Dialog_CollaborationShare::share(), and UT_DEBUGMSG.
Referenced by _onCommand().
BOOL AP_Win32Dialog_CollaborationShare::_onCommand | ( | HWND | hWnd, | |
WPARAM | wParam, | |||
LPARAM | lParam | |||
) |
BOOL AP_Win32Dialog_CollaborationShare::_onInitDialog | ( | HWND | hWnd, | |
WPARAM | wParam, | |||
LPARAM | lParam | |||
) |
References _populateBuddyModel(), _populateWindowData(), XAP_Win32DialogHelper::centerDialog(), DELETEP, m_hAccountCombo, m_hBuddyList, m_pWin32Dialog, and UT_return_val_if_fail.
Referenced by s_dlgProc().
void AP_Win32Dialog_CollaborationShare::_populateBuddyModel | ( | bool | refresh | ) | [private, virtual] |
Implements AP_Dialog_CollaborationShare.
References _freeBuddyList(), _getActiveAccountHandler(), AP_Dialog_CollaborationShare::_getSessionACL(), AP_Dialog_CollaborationShare::_populateShareState(), UT_Win32LocaleString::c_str(), AccountHandler::getBuddies(), AccountHandler::getBuddiesAsync(), AbiCollabSessionManager::getManager(), m_hBuddyList, AP_Dialog_CollaborationShare::m_vAcl, AP_Win32App::s_fromUTF8ToWinLocale(), UT_continue_if_fail, UT_DEBUGMSG, and UT_return_if_fail.
Referenced by _onInitDialog(), and _refreshWindow().
void AP_Win32Dialog_CollaborationShare::_populateWindowData | ( | void | ) | [private] |
References AP_Dialog_CollaborationShare::_getShareableAccountHandler(), XAP_Win32DialogHelper::addItemToCombo(), AccountHandler::canManuallyStartSession(), AbiCollabSessionManager::getAccounts(), AccountHandler::getDescription(), AbiCollabSessionManager::getManager(), AccountHandler::isOnline(), m_hAccountCombo, m_pWin32Dialog, m_vAccountCombo, AP_Win32App::s_fromUTF8ToWinLocale(), XAP_Win32DialogHelper::selectComboItem(), UT_ASSERT_HARMLESS, UT_continue_if_fail, UT_DEBUGMSG, UT_return_if_fail, UT_SHOULD_NOT_HAPPEN, and UT_UTF8String::utf8_str().
Referenced by _onInitDialog().
void AP_Win32Dialog_CollaborationShare::_refreshWindow | ( | ) | [private, virtual] |
Implements AP_Dialog_CollaborationShare.
References _populateBuddyModel().
void AP_Win32Dialog_CollaborationShare::_setAccountHint | ( | const UT_UTF8String & | sHint | ) | [private, virtual] |
Implements AP_Dialog_CollaborationShare.
References UT_ASSERT_HARMLESS, UT_DEBUGMSG, UT_NOT_IMPLEMENTED, and UT_UTF8String::utf8_str().
void AP_Win32Dialog_CollaborationShare::runModal | ( | XAP_Frame * | pFrame | ) | [virtual] |
Implements AP_Dialog_CollaborationShare.
References XAP_Frame::getFrameImpl(), m_hInstance, s_dlgProc(), this, UT_DEBUGMSG, and UT_return_if_fail.
BOOL CALLBACK AP_Win32Dialog_CollaborationShare::s_dlgProc | ( | HWND | hWnd, | |
UINT | msg, | |||
WPARAM | wParam, | |||
LPARAM | lParam | |||
) | [static] |
References _freeBuddyList(), _onCommand(), _onInitDialog(), DELETEP, m_pWin32Dialog, and UT_return_val_if_fail.
Referenced by runModal().
XAP_Dialog * AP_Win32Dialog_CollaborationShare::static_constructor | ( | XAP_DialogFactory * | pFactory, | |
XAP_Dialog_Id | id | |||
) | [static] |
References AP_Win32Dialog_CollaborationShare().
HWND AP_Win32Dialog_CollaborationShare::m_hAccountCombo [private] |
Referenced by _onInitDialog(), and _populateWindowData().
HWND AP_Win32Dialog_CollaborationShare::m_hBuddyList [private] |
Referenced by _freeBuddyList(), _getSelectedBuddies(), _onInitDialog(), and _populateBuddyModel().
HINSTANCE AP_Win32Dialog_CollaborationShare::m_hInstance [private] |
Referenced by AP_Win32Dialog_CollaborationShare(), and runModal().
HTREEITEM AP_Win32Dialog_CollaborationShare::m_hSelected [private] |
std::map< HTREEITEM, ShareListItem > AP_Win32Dialog_CollaborationShare::m_mTreeItemHandles [private] |
Referenced by _getActiveAccountHandler(), _onInitDialog(), _populateWindowData(), and s_dlgProc().
std::vector<AccountHandler*> AP_Win32Dialog_CollaborationShare::m_vAccountCombo [private] |
Referenced by _getActiveAccountHandler(), and _populateWindowData().