Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef AP_WIN32DIALOG_COLLABORATIONADDACCOUNT_H
00022 #define AP_WIN32DIALOG_COLLABORATIONADDACCOUNT_H
00023
00024 #include <vector>
00025
00026 #include "xap_Win32DialogHelper.h"
00027 #include "ut_assert.h"
00028
00029 #include <dialogs/xp/ap_Dialog_CollaborationAddAccount.h>
00030 #include "ap_Win32Res_DlgCollaborationAddAccount.rc2"
00031
00032 class XAP_Frame;
00033
00034 class AP_Win32Dialog_CollaborationAddAccount : public AP_Dialog_CollaborationAddAccount
00035 {
00036 public:
00037 AP_Win32Dialog_CollaborationAddAccount(XAP_DialogFactory * pDlgFactory, XAP_Dialog_Id id);
00038 static XAP_Dialog * static_constructor(XAP_DialogFactory * pFactory, XAP_Dialog_Id id);
00039
00040 void runModal(XAP_Frame * pFrame);
00041 static BOOL CALLBACK s_dlgProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam);
00042 static BOOL CALLBACK s_detailsProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam);
00043 BOOL _onInitDialog(HWND hWnd, WPARAM wParam, LPARAM lParam);
00044 BOOL _onCommand(HWND hWnd, WPARAM wParam, LPARAM lParam);
00045 BOOL _onDetailsCommand(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam);
00046 BOOL detailsProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam);
00047 static LRESULT s_detailsGetMsgProc(int nCode, WPARAM wParam, LPARAM lParam);
00048 LRESULT detailsGetMsgProc(int nCode, WPARAM wParam, LPARAM lParam);
00049 void setBackendValidity(bool valid);
00050
00051 protected:
00052 XAP_Win32DialogHelper * m_pWin32Dialog;
00053
00054 virtual void* _getEmbeddingParent();
00055 virtual AccountHandler* _getActiveAccountHandler();
00056
00057
00058 HINSTANCE m_hInstance;
00059 HWND m_hOk;
00060 LONG_PTR m_pOldDetailsProc;
00061 HWND m_hWnd;
00062 HWND m_hDetails;
00063 HHOOK m_hDetailsHook;
00064
00065
00066 std::vector<AccountHandler*> m_vAccountTypeCombo;
00067
00068 private:
00069
00070 void _populateWindowData(void);
00071 };
00072
00073 #endif