00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __kio_finger_h__
00021 #define __kio_finger_h__
00022
00023 #include <tqstring.h>
00024 #include <tqcstring.h>
00025
00026 #include <kurl.h>
00027 #include <kprocess.h>
00028 #include <kio/global.h>
00029 #include <kio/slavebase.h>
00030
00031 class FingerProtocol : public TQObject, public KIO::SlaveBase
00032 {
00033 Q_OBJECT
00034
00035 public:
00036
00037 FingerProtocol(const TQCString &pool_socket, const TQCString &app_socket);
00038 virtual ~FingerProtocol();
00039
00040 virtual void mimetype(const KURL& url);
00041 virtual void get(const KURL& url);
00042
00043 private slots:
00044 void slotGetStdOutput(KProcess*, char*, int);
00045
00046 private:
00047 KURL *myURL;
00048
00049 QString *myPerlPath;
00050 TQString *myFingerPath;
00051 TQString *myFingerPerlScript;
00052 TQString *myFingerCSSFile;
00053
00054 QString *myStdStream;
00055
00056
00057 KProcess *myKProcess;
00058
00059 void getProgramPath();
00060 void parseCommandLine(const KURL& url);
00061 };
00062
00063
00064 #endif