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