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 class PopmailWidgetSetup : public ConduitConfig
00042 {
00043 Q_OBJECT
00044 public:
00045         PopmailWidgetSetup(QWidget *,const char *,const QStringList &);
00046         virtual ~PopmailWidgetSetup();
00047 
00048         virtual void readSettings();
00049 
00050 protected:
00051         virtual void commitChanges();
00052 
00053 private:
00054         PopMailSendPage *fSendPage;
00055         PopMailReceivePage *fRecvPage;
00056 } ;
00057 
00058 
00059 class PopmailConduitFactory : public KLibFactory
00060 {
00061 Q_OBJECT
00062 
00063 public:
00064         PopmailConduitFactory(QObject * = 0L,const char * = 0L);
00065         virtual ~PopmailConduitFactory();
00066 
00067         static KAboutData *about() { return fAbout; } ;
00068 
00069         // Config keys for the mail conduit.
00070         //
00071         //
00072         static const char * const group;
00073         static const char * const syncOutgoing,
00074                 * const syncIncoming;
00075 
00076 protected:
00077         virtual QObject* createObject( QObject* parent = 0,
00078                 const char* name = 0,
00079                 const char* classname = "QObject",
00080                 const QStringList &args = QStringList() );
00081 private:
00082         KInstance *fInstance;
00083         static KAboutData *fAbout;
00084 } ;
00085 
00086 extern "C"
00087 {
00088 
00089 void *init_libpopmailconduit();
00090 
00091 } ;
00092 
00093 #endif
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.5.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Sun Feb 15 11:40:44 2004 by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2001