kpilot

mal-factory.h

Go to the documentation of this file.
00001 #ifndef _TIME_FACTORY_H
00002 #define _TIME_FACTORY_H
00003 /* MAL-factory.h                       KPilot
00004 **
00005 ** Copyright (C) 2002 by Reinhold Kainhofer
00006 **
00007 ** This file defines the factory for the mal-conduit plugin.
00008 */
00009 
00010 #include <klibloader.h>
00011 
00012 class KInstance;
00013 class KAboutData;
00014 
00015 class MALConduitFactory : public KLibFactory
00016 {
00017 Q_OBJECT
00018 
00019 public:
00020     MALConduitFactory(QObject * = 0L,const char * = 0L);
00021     virtual ~MALConduitFactory();
00022 
00023     static KAboutData *about() { return fAbout; } ;
00024     static const char *lastSync() { return fLastSync; };
00025     static const char *syncTime() {return fSyncTime;};
00026     static const char *proxyType() {return fProxyType;};
00027     static const char *proxyServer() {return fProxyServer;};
00028     static const char *proxyPort() {return fProxyPort;};
00029     static const char *proxyUser() {return fProxyUser;};
00030     static const char *proxyPassword() {return fProxyPassword;};
00031     static const char *malServer() {return fMALServer;};
00032     static const char *malPort() {return fMALPort;};
00033     static const char *malUser() {return fMALUser;};
00034     static const char *malPassword() {return fMALPassword;};
00035     
00036 protected:
00037     virtual QObject* createObject( QObject* parent = 0,
00038         const char* name = 0,
00039         const char* classname = "QObject",
00040         const QStringList &args = QStringList() );
00041 private:
00042     KInstance *fInstance;
00043     static KAboutData *fAbout;
00044     // KConfig entry keys.
00045     static const char *fGroup;
00046     static const char *fLastSync, *fSyncTime, 
00047         *fProxyType, *fProxyServer, *fProxyPort, *fProxyUser, *fProxyPassword;
00048 } ;
00049 
00050 extern "C" {
00051   void *init_libmalconduit();
00052 } ;
00053 
00054 #endif