| 
    kmailkmservertest.hGo to the documentation of this file.00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 
00022 
00023 
00024 
00025 
00026 
00027 
00028 
00029 
00030 
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 & capaNormal,
00057                      const QStringList & capaSSL );
00058   void capabilities( const QStringList & capaNormal,
00059                      const QStringList & capaSSL,
00060                      const QString & authNone, const QString & authSSL,
00061                      const QString & authTLS );
00062 
00063 protected slots:
00064   void slotData(KIO::Job *job, const QString &data);
00065   void slotResult(KIO::Job *job);
00066   void slotMetaData( const KIO::MetaData & );
00067   void slotSlaveResult(KIO::Slave *aSlave, int error,
00068     const QString &errorText = QString::null);
00069 
00070 protected:
00071   KIO::MetaData slaveConfig() const;
00072   void startOffSlave( int port=0 );
00073 
00074 protected:
00075   const QString  mProtocol;
00076   const QString  mHost;
00077   bool           mSSL;
00078   QStringList    mListNormal;
00079   QStringList    mListSSL;
00080   QString        mAuthNone;
00081   QString        mAuthSSL;
00082   QString        mAuthTLS;
00083   KIO::SimpleJob *mJob;
00084   KIO::Slave     *mSlave;
00085   int            mConnectionErrorCount;
00086 };
00087 
00088 #endif
          
         |