blob: 44dccfccec290db882622468a441975f4cf50421 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
// dataprotocol.h
// ================
//
// Interface of the KDE data protocol core operations
//
// Author: Leo Savernik
// Email: l.savernik@aon.at
// (C) 2002 by Leo Savernik
// Created: Sam Dez 28 14:11:18 CET 2002
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU Lesser General Public License as *
* published by the Free Software Foundation; version 2. *
* *
***************************************************************************/
#ifndef __dataprotocol_h__
#define __dataprotocol_h__
// dataprotocol.* interprets the following defines
// DATAKIOSLAVE: define if you want to compile this into a stand-alone
// kioslave
// TESTKIO: define for test-driving
// Both defines are mutually exclusive. Defining none of them compiles
// DataProtocol for internal usage within libkiocore.
class TQString;
class TQCString;
class KURL;
#if defined(DATAKIOSLAVE)
# include <kio/slavebase.h>
#elif !defined(TESTKIO)
# include "kio/dataslave.h"
#endif
namespace KIO {
/** This kioslave provides support of data urls as specified by rfc 2397
* @see http://www.ietf.org/rfc/rfc2397.txt
* @author Leo Savernik
*/
#if defined(DATAKIOSLAVE)
class DataProtocol : public KIO::SlaveBase {
#elif defined(TESTKIO)
class DataProtocol : public TestSlave {
#else
class DataProtocol : public DataSlave {
#endif
public:
#if defined(DATAKIOSLAVE)
DataProtocol(const TQCString &pool_socket, const TQCString &app_socket);
#else
DataProtocol();
#endif
virtual ~DataProtocol();
virtual void mimetype(const KURL &url);
virtual void get(const KURL &url);
#if defined(TESTKIO)
void ref() {}
void deref() {}
#endif
};
}/*end namespace*/
#endif
|