kmail Library API Documentation

kmservertest.h

00001 /* -*- c++ -*- 00002 kmservertest.h 00003 00004 This file is part of KMail, the KDE mail client. 00005 Copyright (c) 2001-2002 Michael Haeckel <haeckel@kde.org> 00006 Copyright (c) 2003 Marc Mutz <mutz@kde.org> 00007 00008 KMail is free software; you can redistribute it and/or modify it 00009 under the terms of the GNU General Public License, version 2, as 00010 published by the Free Software Foundation. 00011 00012 KMail is distributed in the hope that it will be useful, but 00013 WITHOUT ANY WARRANTY; without even the implied warranty of 00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 General Public License for more details. 00016 00017 You should have received a copy of the GNU General Public License 00018 along with this program; if not, write to the Free Software 00019 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00020 00021 In addition, as a special exception, the copyright holders give 00022 permission to link the code of this program with any edition of 00023 the Qt library by Trolltech AS, Norway (or with modified versions 00024 of Qt that use the same license as Qt), and distribute linked 00025 combinations including the two. You must obey the GNU General 00026 Public License in all respects for all of the code used other than 00027 Qt. If you modify this file, you may extend this exception to 00028 your version of the file, but you are not obligated to do so. If 00029 you do not wish to do so, delete this exception statement from 00030 your version. 00031 */ 00032 00033 #ifndef kmservertest_h 00034 #define kmservertest_h 00035 00036 #include <qobject.h> 00037 #include <qstring.h> 00038 #include <qstringlist.h> 00039 00040 namespace KIO { 00041 class Job; 00042 class Slave; 00043 class SimpleJob; 00044 class MetaData; 00045 } 00046 00047 class KMServerTest : public QObject 00048 { 00049 Q_OBJECT 00050 00051 public: 00052 KMServerTest( const QString & protocol, const QString & host, int port ); 00053 virtual ~KMServerTest(); 00054 00055 signals: 00056 void capabilities(const QStringList &); 00057 void capabilities(const QStringList & caps, const QString & authNone, 00058 const QString & authSSL, const QString & authTLS ); 00059 00060 protected slots: 00061 void slotData(KIO::Job *job, const QString &data); 00062 void slotResult(KIO::Job *job); 00063 void slotMetaData( const KIO::MetaData & ); 00064 void slotSlaveResult(KIO::Slave *aSlave, int error, 00065 const QString &errorText = QString::null); 00066 00067 protected: 00068 KIO::MetaData slaveConfig() const; 00069 void startOffSlave( int port=0 ); 00070 00071 protected: 00072 const QString mProtocol; 00073 const QString mHost; 00074 bool mSSL; 00075 QStringList mList; 00076 QString mAuthNone; 00077 QString mAuthSSL; 00078 QString mAuthTLS; 00079 KIO::SimpleJob *mJob; 00080 KIO::Slave *mSlave; 00081 }; 00082 00083 #endif
KDE Logo
This file is part of the documentation for kmail Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Jul 28 23:58:04 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003