00001 /* Copyright (C) 2006 Marc Maurer <uwog@uwog.net> 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., 59 Temple Place - Suite 330, Boston, MA 00016 * 02111-1307, USA. 00017 */ 00018 00019 #ifndef AP_DIALOG_COLLABORATIONADDBUDDY_H 00020 #define AP_DIALOG_COLLABORATIONADDBUDDY_H 00021 00022 #include <map> 00023 #include <string> 00024 #include "ut_types.h" 00025 #include "xap_Frame.h" 00026 #include "xap_Dialog.h" 00027 #include "xav_View.h" 00028 #include "ut_vector.h" 00029 00030 using std::map; 00031 using std::string; 00032 00033 class ConnectionHandler; 00034 00035 extern pt2Constructor ap_Dialog_CollaborationAddBuddy_Constructor; 00036 00037 class AP_Dialog_CollaborationAddBuddy : public XAP_Dialog_NonPersistent 00038 { 00039 public: 00040 AP_Dialog_CollaborationAddBuddy(XAP_DialogFactory * pDlgFactory, XAP_Dialog_Id id); 00041 virtual ~AP_Dialog_CollaborationAddBuddy(void); 00042 00043 virtual void runModal(XAP_Frame * pFrame) = 0; 00044 00045 typedef enum { a_OK, a_CANCEL } tAnswer; 00046 00047 AP_Dialog_CollaborationAddBuddy::tAnswer getAnswer(void) const 00048 { return m_answer; } 00049 00050 const UT_UTF8String& getName() const 00051 { return m_name; } 00052 00053 virtual AccountHandler* _getActiveAccount() = 0; 00054 00055 protected: 00056 // TODO: we need more than just a name in the future, so we need a PropertyMap here 00057 void _setName(const UT_UTF8String& name) 00058 { m_name = name; } 00059 00060 AP_Dialog_CollaborationAddBuddy::tAnswer m_answer; 00061 00062 00063 private: 00064 UT_UTF8String m_name; 00065 }; 00066 00067 #endif /* AP_DIALOG_COLLABORATIONADDBUDDY_H */
1.7.1