ListMaker-factory.h
00001 #ifndef _KPILOT_ListMaker_FACTORY_H 00002 #define _KPILOT_ListMaker_FACTORY_H 00003 /* ListMaker-factory.h KPilot 00004 ** 00005 ** Copyright (C) 2001 by Dan Pilone 00006 ** Copyright (C) 2002 by Reinhold Kainhofer 00007 ** 00008 ** This file defines the factory for the ListMaker-conduit plugin. 00009 ** It also defines the class for the behavior of the setup dialog. 00010 */ 00011 00012 /* 00013 ** This program is free software; you can redistribute it and/or modify 00014 ** it under the terms of the GNU General Public License as published by 00015 ** the Free Software Foundation; either version 2 of the License, or 00016 ** (at your option) any later version. 00017 ** 00018 ** This program is distributed in the hope that it will be useful, 00019 ** but WITHOUT ANY WARRANTY; without even the implied warranty of 00020 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00021 ** GNU General Public License for more details. 00022 ** 00023 ** You should have received a copy of the GNU General Public License 00024 ** along with this program in a file called COPYING; if not, write to 00025 ** the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, 00026 ** MA 02111-1307, USA. 00027 */ 00028 00029 /* 00030 ** Bug reports and questions can be sent to kde-pim@kde.org 00031 */ 00032 00033 #include <klibloader.h> 00034 #include <kinstance.h> 00035 #include <kaboutdata.h> 00036 00037 #include "Organizer-factory.h" 00038 #include "ListMaker-setup.h" 00039 #include "options.h" 00040 #include "plugin.h" 00041 #include "kpilotlink.h" 00042 #include "ListMaker-conduit.h" 00043 00044 00045 class ListMakerConduitFactory : public OrganizerConduitFactory { 00046 Q_OBJECT 00047 00048 public: 00049 ListMakerConduitFactory(QObject * w= 0L,const char * n= 0L); 00050 00051 virtual ConduitConfig*createSetupWidget(QWidget*w, const char*n, const QStringList &l) { return new ListMakerWidgetSetup(w,n,l, synctypes, fAbout); } 00052 virtual ConduitAction*createConduit(KPilotDeviceLink *lnk, const char *n=0L, const QStringList &l=QStringList()) { return new ListMakerConduit(lnk,n,l, synctypes); } 00053 }; 00054 00055 extern "C" 00056 { 00057 00058 void *init_libListMakerConduit(); 00059 00060 }; 00061 00062 // $Log: ListMaker-factory.h,v $ 00063 // Revision 1.1.4.1 2003/03/12 23:31:09 adridg 00064 // CVS_SILENT: FSF address change 00065 // 00066 // Revision 1.1 2002/04/07 12:09:42 kainhofe 00067 // Initial checkin of the conduit. The gui works mostly, but syncing crashes KPilot... 00068 // 00069 // Revision 1.9 2002/04/07 11:56:19 reinhold 00070 // Last version before moving to KDE CVS 00071 // 00072 // Revision 1.8 2002/04/05 21:17:00 reinhold 00073 // *** empty log message *** 00074 // 00075 // Revision 1.7 2002/03/28 13:47:54 reinhold 00076 // Added the list of synctypes, aboutbox is now directly passed on to the setup dlg (instead of being a static var) 00077 // 00078 // Revision 1.5 2002/03/23 21:46:42 reinhold 00079 // config dlg works, but the last changes crash the plugin itself 00080 // 00081 // Revision 1.4 2002/03/23 18:21:14 reinhold 00082 // Cleaned up the structure. Works with QTimer instead of loops. 00083 // 00084 // Revision 1.3 2002/03/16 00:24:13 reinhold 00085 // Some class definition cleanup 00086 // 00087 // Revision 1.2 2002/03/15 20:43:17 reinhold 00088 // Fixed the crash on loading (member function not defined)... 00089 // 00090 // Revision 1.1 2002/03/10 23:59:17 reinhold 00091 // Made the conduit compile... 00092 // 00093 // Revision 1.1.1.1 2002/03/09 15:38:45 reinhold 00094 // Initial checin of the project manager / List manager conduit. 00095 // 00096 // 00097 00098 #endif