MultiDB-setup.h
00001 #ifndef _KPILOT_MultiDB_SETUP_H 00002 #define _KPILOT_MultiDB_SETUP_H 00003 /* MultiDB-setup.h KPilot 00004 ** 00005 ** Copyright (C) 2002 by Reinhold Kainhofer 00006 ** Copyright (C) 2001 by Dan Pilone 00007 ** 00008 ** This file defines the class for the behavior of the setup dialog. 00009 */ 00010 00011 /* 00012 ** This program is free software; you can redistribute it and/or modify 00013 ** it under the terms of the GNU General Public License as published by 00014 ** the Free Software Foundation; either version 2 of the License, or 00015 ** (at your option) any later version. 00016 ** 00017 ** This program is distributed in the hope that it will be useful, 00018 ** but WITHOUT ANY WARRANTY; without even the implied warranty of 00019 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00020 ** GNU General Public License for more details. 00021 ** 00022 ** You should have received a copy of the GNU General Public License 00023 ** along with this program in a file called COPYING; if not, write to 00024 ** the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, 00025 ** MA 02111-1307, USA. 00026 */ 00027 00028 /* 00029 ** Bug reports and questions can be sent to kde-pim@kde.org 00030 */ 00031 00032 #include "options.h" 00033 #include "plugin.h" 00034 #include "MultiDB-conduitDialog.h" 00035 #include "MultiDB-factory.h" 00036 #include "MultiDBWidgetPrivate.h" 00037 00038 class MultiDBWidgetSetup : public ConduitConfig { 00039 Q_OBJECT 00040 public: 00041 MultiDBWidgetSetup(QWidget *,const char *,const QStringList &, SyncTypeList_t *lst=0L, KAboutData *abt=NULL); 00042 virtual ~MultiDBWidgetSetup(); 00043 00044 protected: 00045 virtual void readSettings(); 00046 virtual void commitChanges(); 00047 virtual const QString getSyncTypeEntry() { return "SyncAction"; }; 00048 virtual const QString getSyncFileEntry() { return "SyncFile"; }; 00049 virtual const QString settingsFileList() { return "Databases"; }; 00050 virtual const QString getSettingsDefaultAct() { return "DefaultAction";}; 00051 virtual const QString getSettingsGroup()=0; 00052 virtual QString ActIdToName(int act); 00053 virtual int ActNameToId(QString act); 00054 00055 protected slots: 00056 virtual void insert_db(); 00057 virtual void edit_db(); 00058 virtual void delete_db(); 00059 virtual void slotOk(); 00060 virtual void slotApply(); 00061 virtual void edit(QListViewItem*listitem); 00062 00063 protected: 00064 SyncTypeList_t *synctypes; 00065 private: 00066 MultiDBWidgetPrivate*fConfigWidget; 00067 } ; 00068 00069 // $Log: MultiDB-setup.h,v $ 00070 // Revision 1.1.4.1 2003/03/12 23:31:10 adridg 00071 // CVS_SILENT: FSF address change 00072 // 00073 // Revision 1.1 2002/04/07 12:09:43 kainhofe 00074 // Initial checkin of the conduit. The gui works mostly, but syncing crashes KPilot... 00075 // 00076 // Revision 1.1 2002/04/07 01:03:52 reinhold 00077 // the list of possible actions is now created dynamically 00078 // 00079 // Revision 1.7 2002/04/05 21:17:00 reinhold 00080 // *** empty log message *** 00081 // 00082 // Revision 1.6 2002/03/28 13:47:53 reinhold 00083 // Added the list of synctypes, aboutbox is now directly passed on to the setup dlg (instead of being a static var) 00084 // 00085 // Revision 1.5 2002/03/15 20:43:17 reinhold 00086 // Fixed the crash on loading (member function not defined)... 00087 // 00088 // Revision 1.4 2002/03/13 22:14:40 reinhold 00089 // GUI should work now... 00090 // 00091 // Revision 1.3 2002/03/10 23:58:32 reinhold 00092 // Made the conduit compile... 00093 // 00094 // Revision 1.2 2002/03/10 16:06:43 reinhold 00095 // Cleaned up the class hierarchy, implemented some more features (should be quite finished now...) 00096 // 00097 // Revision 1.1.1.1 2002/03/09 15:38:45 reinhold 00098 // Initial checin of the project manager / List manager conduit. 00099 // 00100 // 00101 // 00102 00103 #endif