#include <ap_Win32Dialog_CollaborationAccounts.h>
Public Member Functions | |
AP_Win32Dialog_CollaborationAccounts (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) |
BOOL | _onNotify (HWND hWnd, WPARAM wParam, LPARAM lParam) |
virtual void | signal (const Event &event, BuddyPtr pSource) |
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 | _updateSelection () |
void | _setOnline (AccountHandler *pHandler, bool online) |
Private Attributes | |
XAP_Win32DialogHelper * | m_pWin32Dialog |
HINSTANCE | m_hInstance |
HWND | m_hAccountList |
bool | m_bPopulating |
AP_Win32Dialog_CollaborationAccounts::AP_Win32Dialog_CollaborationAccounts | ( | XAP_DialogFactory * | pDlgFactory, | |
XAP_Dialog_Id | id | |||
) |
References AbiCollabSessionManager::getManager(), and m_hInstance.
Referenced by static_constructor().
BOOL AP_Win32Dialog_CollaborationAccounts::_onCommand | ( | HWND | hWnd, | |
WPARAM | wParam, | |||
LPARAM | lParam | |||
) |
References _populateWindowData(), AP_Dialog_CollaborationAccounts::createNewAccount(), AbiCollabSessionManager::destroyAccount(), AccountHandler::getDescription(), AccountHandler::getDisplayType(), AbiCollabSessionManager::getManager(), AP_Dialog_CollaborationAccounts::m_answer, m_hAccountList, UT_DEBUGMSG, UT_return_val_if_fail, and UT_UTF8String::utf8_str().
Referenced by s_dlgProc().
BOOL AP_Win32Dialog_CollaborationAccounts::_onInitDialog | ( | HWND | hWnd, | |
WPARAM | wParam, | |||
LPARAM | lParam | |||
) |
References _populateWindowData(), XAP_Win32DialogHelper::centerDialog(), DELETEP, m_hAccountList, and m_pWin32Dialog.
Referenced by s_dlgProc().
BOOL AP_Win32Dialog_CollaborationAccounts::_onNotify | ( | HWND | hWnd, | |
WPARAM | wParam, | |||
LPARAM | lParam | |||
) |
References _setOnline(), _updateSelection(), m_bPopulating, m_hAccountList, and UT_return_val_if_fail.
Referenced by s_dlgProc().
void AP_Win32Dialog_CollaborationAccounts::_populateWindowData | ( | void | ) | [private] |
References _updateSelection(), UT_Win32LocaleString::c_str(), AbiCollabSessionManager::getAccounts(), AccountHandler::getDescription(), AccountHandler::getDisplayType(), AbiCollabSessionManager::getManager(), AccountHandler::isOnline(), m_bPopulating, m_hAccountList, AP_Win32App::s_fromUTF8ToWinLocale(), UT_continue_if_fail, UT_return_if_fail, and UT_UTF8String::utf8_str().
Referenced by _onCommand(), _onInitDialog(), and signal().
void AP_Win32Dialog_CollaborationAccounts::_setOnline | ( | AccountHandler * | pHandler, | |
bool | online | |||
) | [private] |
References AccountHandler::connect(), AccountHandler::disconnect(), AccountHandler::isOnline(), UT_DEBUGMSG, and UT_return_if_fail.
Referenced by _onNotify().
void AP_Win32Dialog_CollaborationAccounts::_updateSelection | ( | ) | [private] |
References XAP_Win32DialogHelper::enableControl(), m_hAccountList, and m_pWin32Dialog.
Referenced by _onNotify(), and _populateWindowData().
void AP_Win32Dialog_CollaborationAccounts::runModal | ( | XAP_Frame * | pFrame | ) | [virtual] |
Implements AP_Dialog_CollaborationAccounts.
References XAP_Frame::getFrameImpl(), m_hInstance, s_dlgProc(), this, UT_DEBUGMSG, and UT_return_if_fail.
BOOL CALLBACK AP_Win32Dialog_CollaborationAccounts::s_dlgProc | ( | HWND | hWnd, | |
UINT | msg, | |||
WPARAM | wParam, | |||
LPARAM | lParam | |||
) | [static] |
References _onCommand(), _onInitDialog(), _onNotify(), DELETEP, m_pWin32Dialog, UT_DEBUGMSG, and UT_return_val_if_fail.
Referenced by runModal().
void AP_Win32Dialog_CollaborationAccounts::signal | ( | const Event & | event, | |
BuddyPtr | pSource | |||
) | [virtual] |
Implements EventListener.
References _populateWindowData(), PCT_AccountNewEvent, PCT_AccountOfflineEvent, PCT_AccountOnlineEvent, and UT_DEBUGMSG.
XAP_Dialog * AP_Win32Dialog_CollaborationAccounts::static_constructor | ( | XAP_DialogFactory * | pFactory, | |
XAP_Dialog_Id | id | |||
) | [static] |
References AP_Win32Dialog_CollaborationAccounts().
bool AP_Win32Dialog_CollaborationAccounts::m_bPopulating [private] |
Referenced by _onNotify(), and _populateWindowData().
HWND AP_Win32Dialog_CollaborationAccounts::m_hAccountList [private] |
Referenced by _onCommand(), _onInitDialog(), _onNotify(), _populateWindowData(), and _updateSelection().
HINSTANCE AP_Win32Dialog_CollaborationAccounts::m_hInstance [private] |
Referenced by AP_Win32Dialog_CollaborationAccounts(), and runModal().
Referenced by _onInitDialog(), _updateSelection(), and s_dlgProc().