00001 /* Copyright (C) 2010 AbiSource Corporation B.V. 00002 * 00003 * This program is free software; you can redistribute it and/or 00004 * modify it under the terms of the GNU General Public License 00005 * as published by the Free Software Foundation; either version 2 00006 * of the License, or (at your option) any later version. 00007 * 00008 * This program is distributed in the hope that it will be useful, 00009 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00011 * GNU General Public License for more details. 00012 * 00013 * You should have received a copy of the GNU General Public License 00014 * along with this program; if not, write to the Free Software 00015 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 00016 * 02110-1301 USA. 00017 */ 00018 00019 #ifndef AP_DIALOG_COLLABORATIONEDITACCOUNT_H 00020 #define AP_DIALOG_COLLABORATIONEDITACCOUNT_H 00021 00022 #include "ut_types.h" 00023 #include "xap_Frame.h" 00024 #include "xap_Dialog.h" 00025 #include "xav_View.h" 00026 #include "ut_vector.h" 00027 00028 class AccountHandler; 00029 00030 extern pt2Constructor ap_Dialog_CollaborationEditAccount_Constructor; 00031 00032 class AP_Dialog_CollaborationEditAccount : public XAP_Dialog_NonPersistent 00033 { 00034 public: 00035 AP_Dialog_CollaborationEditAccount(XAP_DialogFactory * pDlgFactory, XAP_Dialog_Id id); 00036 virtual ~AP_Dialog_CollaborationEditAccount(void); 00037 00038 virtual void runModal(XAP_Frame * pFrame) = 0; 00039 00040 AccountHandler* getAccountHandler() const 00041 { return m_pHandler; } 00042 void setAccountHandler(AccountHandler* pHandler); 00043 00044 typedef enum { a_OK, a_CANCEL } tAnswer; 00045 00046 AP_Dialog_CollaborationEditAccount::tAnswer getAnswer(void) const 00047 { return m_answer; } 00048 00049 protected: 00050 virtual void* _getEmbeddingParent() = 0; 00051 00052 AP_Dialog_CollaborationEditAccount::tAnswer m_answer; 00053 00054 private: 00055 AccountHandler* m_pHandler; 00056 }; 00057 00058 #endif /* AP_DIALOG_COLLABORATIONEDITACCOUNT_H */