kpilot

knotes-factory.h

Go to the documentation of this file.
00001 #ifndef _KPILOT_NULL_FACTORY_H
00002 #define _KPILOT_NULL_FACTORY_H
00003 /* null-factory.h                       KPilot
00004 **
00005 ** Copyright (C) 2001,2003 by Dan Pilone
00006 **
00007 ** This file defines the factory for the null-conduit plugin.
00008 ** It also 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., 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 class KNotesConduitFactory : public KLibFactory
00038 {
00039 Q_OBJECT
00040 
00041 public:
00042     KNotesConduitFactory(QObject * = 0L,const char * = 0L);
00043     virtual ~KNotesConduitFactory();
00044 
00045     static KAboutData *about() { return fAbout; } ;
00046 
00047     // The KNotes instance, unlike previous conduits (alphabetically)
00048     // has const char * const members. The extra const prevents people
00049     // from assigning to this variable, so you have to work hard to
00050     // break its value. We store group and entry keys in here.
00051 
00052 protected:
00053     virtual QObject* createObject( QObject* parent = 0,
00054         const char* name = 0,
00055         const char* classname = "QObject",
00056         const QStringList &args = QStringList() );
00057 private:
00058     KInstance *fInstance;
00059     static KAboutData *fAbout;
00060 } ;
00061 
00062 extern "C"
00063 {
00064 
00065 void *init_libknotesconduit();
00066 
00067 }
00068 
00069 
00070 #endif