kmail
kmservertest.h00001
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 <tqobject.h>
00037 #include <tqstring.h>
00038 #include <tqstringlist.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 TQString & protocol, const TQString & host, int port );
00053 virtual ~KMServerTest();
00054
00055 signals:
00056 void capabilities( const TQStringList & capaNormal,
00057 const TQStringList & capaSSL );
00058 void capabilities( const TQStringList & capaNormal,
00059 const TQStringList & capaSSL,
00060 const TQString & authNone, const TQString & authSSL,
00061 const TQString & authTLS );
00062
00063 protected slots:
00064 void slotData(KIO::Job *job, const TQString &data);
00065 void slotResult(KIO::Job *job);
00066 void slotMetaData( const KIO::MetaData & );
00067 void slotSlaveResult(KIO::Slave *aSlave, int error,
00068 const TQString &errorText = TQString::null);
00069
00070 protected:
00071 KIO::MetaData slaveConfig() const;
00072 void startOffSlave( int port=0 );
00073
00074 protected:
00075 const TQString mProtocol;
00076 const TQString mHost;
00077 bool mSSL;
00078 TQStringList mListNormal;
00079 TQStringList mListSSL;
00080 TQString mAuthNone;
00081 TQString mAuthSSL;
00082 TQString mAuthTLS;
00083 KIO::SimpleJob *mJob;
00084 KIO::Slave *mSlave;
00085 int mConnectionErrorCount;
00086 };
00087
00088 #endif
|