• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

ap_Win32Dialog_CollaborationAccounts.h

Go to the documentation of this file.
00001 /* AbiCollab - Code to enable the modification of remote documents.
00002  * Copyright (C) 2007 by Ryan Pavlik <abiryan@ryand.net>
00003  * Copyright (C) 2006 by Marc Maurer <uwog@uwog.net>
00004  * Copyright (C) 2009 by AbiSource Corporation B.V.
00005  *
00006  * This program is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU General Public License
00008  * as published by the Free Software Foundation; either version 2
00009  * of the License, or (at your option) any later version.
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, write to the Free Software
00018  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00019  * 02110-1301 USA.
00020  */
00021 
00022 #ifndef AP_WIN32DIALOG_COLLABORATIONACCOUNTS_H
00023 #define AP_WIN32DIALOG_COLLABORATIONACCOUNTS_H
00024 
00025 #include <map>
00026 #include <ut_string.h>
00027 #include "ap_Win32Dialog_CollaborationAddAccount.h"
00028 
00029 #include <dialogs/xp/ap_Dialog_CollaborationAccounts.h>
00030 #include "ap_Win32Res_DlgCollaborationAccounts.rc2"
00031 
00032 class XAP_Frame;
00033 
00034 class AP_Win32Dialog_CollaborationAccounts : public AP_Dialog_CollaborationAccounts
00035 {
00036 public:
00037     AP_Win32Dialog_CollaborationAccounts(XAP_DialogFactory * pDlgFactory, XAP_Dialog_Id id);
00038 
00039     static XAP_Dialog *     static_constructor(XAP_DialogFactory * pFactory, XAP_Dialog_Id id);
00040     void                    runModal(XAP_Frame * pFrame);
00041     static BOOL CALLBACK    s_dlgProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam);
00042     BOOL                    _onInitDialog(HWND hWnd, WPARAM wParam, LPARAM lParam);
00043     BOOL                    _onCommand(HWND hWnd, WPARAM wParam, LPARAM lParam);
00044     BOOL                    _onNotify(HWND hWnd, WPARAM wParam, LPARAM lParam);
00045 
00046     virtual void            signal(const Event& event, BuddyPtr pSource);
00047 
00048 private:
00049     void                    _populateWindowData();
00050     void                    _updateSelection();
00051     void                    _setOnline(AccountHandler* pHandler, bool online);
00052 
00053     XAP_Win32DialogHelper * m_pWin32Dialog;
00054     HINSTANCE               m_hInstance;
00055     HWND                    m_hAccountList;
00056     bool                    m_bPopulating; // hack
00057 };
00058 
00059 #endif /* AP_WIN32DIALOG_COLLABORATIONACCOUNTS_H */

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1