1 /* Copyright (C) 2006 Marc Maurer <uwog@uwog.net> 2 * 3 * This program is free software; you can redistribute it and/or 4 * modify it under the terms of the GNU General Public License 5 * as published by the Free Software Foundation; either version 2 6 * of the License, or (at your option) any later version. 7 * 8 * This program is distributed in the hope that it will be useful, 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 * GNU General Public License for more details. 12 * 13 * You should have received a copy of the GNU General Public License 14 * along with this program; if not, write to the Free Software 15 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 16 * 02110-1301 USA. 17 */ 18 19 #ifndef AP_DIALOG_COLLABORATIONACCOUNTS_H 20 #define AP_DIALOG_COLLABORATIONACCOUNTS_H 21 22 #include "ut_types.h" 23 #include "xap_Frame.h" 24 #include "xap_Dialog.h" 25 #include "xav_View.h" 26 #include "ut_vector.h" 27 #include <session/xp/AbiCollabSessionManager.h> 28 #include <account/xp/Event.h> 29 #include <account/xp/EventListener.h> 30 31 class ConnectionHandler; 32 33 extern pt2Constructor ap_Dialog_CollaborationAccounts_Constructor; 34 35 class AP_Dialog_CollaborationAccounts : public XAP_Dialog_NonPersistent, EventListener 36 { 37 public: 38 AP_Dialog_CollaborationAccounts(XAP_DialogFactory * pDlgFactory, XAP_Dialog_Id id); 39 virtual ~AP_Dialog_CollaborationAccounts(void); 40 41 virtual void runModal(XAP_Frame * pFrame) = 0; 42 void createNewAccount(); 43 void createEditAccount(AccountHandler* pHandler); 44 45 typedef enum { a_CLOSE } tAnswer; 46 47 AP_Dialog_CollaborationAccounts::tAnswer getAnswer(void) const; 48 49 protected: 50 bool _addAccount(AccountHandler* pHandler); 51 bool _deleteAccount(AccountHandler* pAccount); 52 53 AP_Dialog_CollaborationAccounts::tAnswer m_answer; 54 }; 55 56 #endif /* AP_DIALOG_COLLABORATIONACCOUNTS_H */ 57