KIO
dataprotocol.h
Go 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 #ifndef DATAPROTOCOL_H
00020 #define DATAPROTOCOL_H
00021
00022
00023
00024
00025
00026
00027
00028
00029 class QByteArray;
00030
00031 class KUrl;
00032
00033 #if defined(DATAKIOSLAVE)
00034 # include <kio/slavebase.h>
00035 #elif !defined(TESTKIO)
00036 # include "kio/dataslave.h"
00037 #endif
00038
00039 namespace KIO {
00040
00045 #if defined(DATAKIOSLAVE)
00046 class DataProtocol : public KIO::SlaveBase {
00047 #elif defined(TESTKIO)
00048 class DataProtocol : public TestSlave {
00049 #else
00050 class DataProtocol : public DataSlave {
00051 #endif
00052
00053 public:
00054 #if defined(DATAKIOSLAVE)
00055 DataProtocol(const QByteArray &pool_socket, const QByteArray &app_socket);
00056 #else
00057 DataProtocol();
00058 #endif
00059 virtual ~DataProtocol();
00060 virtual void mimetype(const KUrl &url);
00061 virtual void get(const KUrl &url);
00062 #if defined(TESTKIO)
00063 void ref() {}
00064 void deref() {}
00065 #endif
00066 };
00067
00068 }
00069
00070 #endif