kpilot Library API Documentation

popmail-factory.h

00001 #ifndef _KPILOT_POPMAIL_FACTORY_H
00002 #define _KPILOT_POPMAIL_FACTORY_H
00003 /* popmail-factory.h                       KPilot
00004 **
00005 ** Copyright (C) 2001 by Dan Pilone
00006 **
00007 ** This file defines the factory for the popmail-conduit plugin.
00008 */
00009 
00010 /*
00011 ** This program is free software; you can redistribute it and/or modify
00012 ** it under the terms of the GNU General Public License as published by
00013 ** the Free Software Foundation; either version 2 of the License, or
00014 ** (at your option) any later version.
00015 **
00016 ** This program is distributed in the hope that it will be useful,
00017 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
00018 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00019 ** GNU General Public License for more details.
00020 **
00021 ** You should have received a copy of the GNU General Public License
00022 ** along with this program in a file called COPYING; if not, write to
00023 ** the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
00024 ** MA 02111-1307, USA.
00025 */
00026 
00027 /*
00028 ** Bug reports and questions can be sent to kde-pim@kde.org
00029 */
00030 
00031 #include <klibloader.h>
00032 
00033 #include "plugin.h"
00034 
00035 class KInstance;
00036 class KAboutData;
00037 
00038 class PopMailSendPage;
00039 class PopMailReceivePage;
00040 
00041 #if 0
00042 class PopmailWidgetSetup : public ConduitConfig
00043 {
00044 // Q_OBJECT
00045 public:
00046     PopmailWidgetSetup(QWidget *,const char *,const QStringList &);
00047     virtual ~PopmailWidgetSetup();
00048 
00049     virtual void readSettings();
00050 
00051 protected:
00052     virtual void commitChanges();
00053 
00054 private:
00055     PopMailSendPage *fSendPage;
00056     PopMailReceivePage *fRecvPage;
00057 } ;
00058 #endif
00059 
00060 class PopMailConduitFactory : public KLibFactory
00061 {
00062 Q_OBJECT
00063 
00064 public:
00065     PopMailConduitFactory(QObject * = 0L,const char * = 0L);
00066     virtual ~PopMailConduitFactory();
00067 
00068     static KAboutData *about() { return fAbout; } ;
00069 
00070     static const char *group() { return fGroup; } ;
00071     static const char *syncIncoming() { return fSyncIncoming; } ;
00072     static const char *syncOutgoing() { return fSyncOutgoing; } ;
00073 
00074 protected:
00075     virtual QObject* createObject( QObject* parent = 0,
00076         const char* name = 0,
00077         const char* classname = "QObject",
00078         const QStringList &args = QStringList() );
00079 private:
00080     KInstance *fInstance;
00081     static KAboutData *fAbout;
00082     
00083     // Config keys for the mail conduit.
00084     //
00085     //
00086     static const char * const fGroup;
00087     static const char * const fSyncOutgoing,
00088         * const fSyncIncoming;
00089 } ;
00090 
00091 extern "C"
00092 {
00093 
00094 void *init_conduit_popmail();
00095 
00096 }
00097 
00098 #endif
KDE Logo
This file is part of the documentation for kpilot Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat May 1 11:36:49 2004 by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2003