00001 /* Copyright (C) 2006 by 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., 51 Franklin Street, Fifth Floor, Boston, MA 00016 * 02110-1301 USA. 00017 */ 00018 00019 #ifndef AP_UNIXDIALOG_COLLABORATIONADDBUDDY_H 00020 #define AP_UNIXDIALOG_COLLABORATIONADDBUDDY_H 00021 00022 #include <gtk/gtk.h> 00023 #include <xp/ap_Dialog_CollaborationAddBuddy.h> 00024 00025 class XAP_Frame; 00026 00027 class AP_UnixDialog_CollaborationAddBuddy : public AP_Dialog_CollaborationAddBuddy 00028 { 00029 public: 00030 AP_UnixDialog_CollaborationAddBuddy(XAP_DialogFactory * pDlgFactory, XAP_Dialog_Id id); 00031 static XAP_Dialog * static_constructor(XAP_DialogFactory * pFactory, XAP_Dialog_Id id); 00032 void runModal(XAP_Frame * pFrame); 00033 00034 void event_Ok(); 00035 00036 virtual AccountHandler* _getActiveAccount() 00037 { return m_pAccount; } 00038 00039 private: 00040 GtkWidget* _constructWindow(void); 00041 void _populateWindowData(void); 00042 00043 GtkWidget* m_wWindowMain; 00044 GtkWidget* m_wOk; 00045 GtkWidget* m_wName; 00046 GtkWidget* m_wAccount; 00047 GtkTreeModel* m_model; 00048 AccountHandler* m_pAccount; 00049 }; 00050 00051 #endif /* AP_UNIXDIALOG_COLLABORATIONADDBUDDY_H */