summaryrefslogtreecommitdiffstats
path: root/kpf/src/Request.h
diff options
context:
space:
mode:
Diffstat (limited to 'kpf/src/Request.h')
-rw-r--r--kpf/src/Request.h44
1 files changed, 22 insertions, 22 deletions
diff --git a/kpf/src/Request.h b/kpf/src/Request.h
index 92034c9c..d31d5ef8 100644
--- a/kpf/src/Request.h
+++ b/kpf/src/Request.h
@@ -24,9 +24,9 @@
#ifndef KPF_REQUEST_H
#define KPF_REQUEST_H
-#include <qcstring.h>
-#include <qstringlist.h>
-#include <qdatetime.h>
+#include <tqcstring.h>
+#include <tqstringlist.h>
+#include <tqdatetime.h>
#include "ByteRange.h"
@@ -58,12 +58,12 @@ namespace KPF
* Take a list of headers and parse them, setting our values
* appropriately.
*/
- void parseHeaders(const QStringList &);
+ void parseHeaders(const TQStringList &);
/**
* Parse one header line and set whatever value is appropriate.
*/
- void handleHeader(const QString & name, const QString & value);
+ void handleHeader(const TQString & name, const TQString & value);
/**
* HTTP has had a few revisions (protocols) since birth. Here you may
@@ -71,7 +71,7 @@ namespace KPF
* version of setProtocol parses a string of the form
* "HTTP/major.minor", where major and minor are integers.
*/
- void setProtocol (const QString &);
+ void setProtocol (const TQString &);
/**
* HTTP has had a few revisions (protocols) since birth. Here you may
@@ -83,7 +83,7 @@ namespace KPF
* Specify the 'method' requested by the client. This version parses
* a string.
*/
- void setMethod (const QString &);
+ void setMethod (const TQString &);
/**
* Specify the 'method' requested by the client.
@@ -94,26 +94,26 @@ namespace KPF
* Set the path to the requested resource. The path is
* immediately decoded and canonicalised.
*/
- void setPath (const QString &);
+ void setPath (const TQString &);
/**
* HTTP/1.1 requests must have a "Host:" header.
*/
- void setHost (const QString &);
+ void setHost (const TQString &);
/**
* HTTP/1.1 allows an "If-Modified-Since" header, specifying that
* the requested resource should only be retrieved if the resource
* has been modified since a certain date and time.
*/
- void setIfModifiedSince (const QDateTime &);
+ void setIfModifiedSince (const TQDateTime &);
/**
* HTTP/1.1 allows an "If-Unmodified-Since" header, specifying that
* the requested resource should only be retrieved if the resource
* has NOT been modified since a certain date and time.
*/
- void setIfUnmodifiedSince (const QDateTime &);
+ void setIfUnmodifiedSince (const TQDateTime &);
/**
* HTTP/1.1 allows an "Expect: 100-continue" header, specifying
@@ -125,7 +125,7 @@ namespace KPF
* Specify a range of bytes which should be retrieved from the
* resource. See RFC 2616.
*/
- void setRange (const QString &);
+ void setRange (const TQString &);
/**
* HTTP/1.1 allows "persistent" connections. These may be specified
@@ -172,27 +172,27 @@ namespace KPF
/**
* @return the path that was set with (and modified by) setPath()
*/
- QString path() const;
+ TQString path() const;
/**
* @return the host that was set previously.
*/
- QString host() const;
+ TQString host() const;
/**
* @return the date/time set by @ref setIfModifiedSince previously.
*/
- QDateTime ifModifiedSince() const;
+ TQDateTime ifModifiedSince() const;
/**
* @return the date/time set by @ref setIfUnmodifiedSince previously.
*/
- QDateTime ifUnmodifiedSince() const;
+ TQDateTime ifUnmodifiedSince() const;
/**
* @return the protocol as a string, e.g. "HTTP/1.1".
*/
- QCString protocolString() const;
+ TQCString protocolString() const;
/**
* @return true if @ref setExpectContinue was used previously.
@@ -223,7 +223,7 @@ namespace KPF
* Clean up the path given in a request, so it's more like what we
* expect.
*/
- QString clean(const QString & path) const;
+ TQString clean(const TQString & path) const;
private:
@@ -239,10 +239,10 @@ namespace KPF
bool persist_;
// End order dependency
- QString path_;
- QString host_;
- QDateTime ifModifiedSince_;
- QDateTime ifUnmodifiedSince_;
+ TQString path_;
+ TQString host_;
+ TQDateTime ifModifiedSince_;
+ TQDateTime ifUnmodifiedSince_;
ByteRange range_;
};