kpilot

doc-factory.h

Go to the documentation of this file.
00001 #ifndef _DOC_FACTORY_H
00002 #define _DOC_FACTORY_H
00003 
00004 /* doc-factory.h                       KPilot
00005 **
00006 ** Copyright (C) 2002 by Reinhold Kainhofer
00007 **
00008 ** This file defines the factory for the doc-conduit plugin.
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., 51 Franklin Street, Fifth Floor, Boston,
00025 ** MA 02110-1301, USA.
00026 */ 
00027     
00028 /*
00029 ** Bug reports and questions can be sent to kde-pim@kde.org
00030 */ 
00031     
00032 #include <klibloader.h>
00033     
00034 class KInstance;
00035 class KAboutData;
00036 
00037 
00038 class DOCConduitFactory:public KLibFactory 
00039 {
00040  
00041 Q_OBJECT 
00042  
00043 public:
00044     DOCConduitFactory(QObject * = 0L, const char * = 0L);
00045     virtual ~ DOCConduitFactory();
00046     
00047     static KAboutData *about() { 
00048         return fAbout;
00049     };
00050 
00051     static const char 
00052         *fDBListSynced;
00053     static const char *dbDOCtype;
00054     static const char *dbDOCcreator;
00055  
00056 
00057 protected:
00058     virtual QObject * createObject(QObject * parent = 0, 
00059         const char *name = 0, 
00060         const char *classname = "QObject", 
00061         const QStringList & args = QStringList());
00062  
00063 private:
00064     KInstance * fInstance;
00065     static KAboutData *fAbout;
00066 };
00067 
00068 
00069 extern "C" {
00070     void *init_libdocconduit();
00071 }
00072 
00073 
00074 #endif