summaryrefslogtreecommitdiffstats
path: root/sip/qtnetwork/qhttp.sip
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-11-29 01:11:08 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-11-29 01:11:08 -0600
commit8a055d66f43592c257cece2eb8cc021808062917 (patch)
treed0922f201bd5d24b62a33160d1d9baf9e89f9a70 /sip/qtnetwork/qhttp.sip
parentb388516ca2691303a076a0764fd40bf7116fe43d (diff)
downloadpytqt-8a055d66f43592c257cece2eb8cc021808062917.tar.gz
pytqt-8a055d66f43592c257cece2eb8cc021808062917.zip
Initial TQt conversion
Diffstat (limited to 'sip/qtnetwork/qhttp.sip')
-rw-r--r--sip/qtnetwork/qhttp.sip156
1 files changed, 78 insertions, 78 deletions
diff --git a/sip/qtnetwork/qhttp.sip b/sip/qtnetwork/qhttp.sip
index fbcc999..966cccf 100644
--- a/sip/qtnetwork/qhttp.sip
+++ b/sip/qtnetwork/qhttp.sip
@@ -1,28 +1,28 @@
-// This is the SIP interface definition for QHttp, QHttpHeader,
-// QHttpRequestHeader and QHttpResponseHeader.
+// This is the SIP interface definition for TQHttp, TQHttpHeader,
+// TQHttpRequestHeader and TQHttpResponseHeader.
//
// Copyright (c) 2007
// Riverbank Computing Limited <info@riverbankcomputing.co.uk>
//
-// This file is part of PyQt.
+// This file is part of PyTQt.
//
-// This copy of PyQt is free software; you can redistribute it and/or modify it
+// This copy of PyTQt is free software; you can redistribute it and/or modify it
// under the terms of the GNU General Public License as published by the Free
// Software Foundation; either version 2, or (at your option) any later
// version.
//
-// PyQt is supplied in the hope that it will be useful, but WITHOUT ANY
+// PyTQt is supplied in the hope that it will be useful, but WITHOUT ANY
// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
// details.
//
// You should have received a copy of the GNU General Public License along with
-// PyQt; see the file LICENSE. If not, write to the Free Software Foundation,
+// PyTQt; see the file LICENSE. If not, write to the Free Software Foundation,
// Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
%ExportedDoc
-<Sect2><Title>QHttp (Qt v3+)</Title>
+<Sect2><Title>TQHttp (TQt v3+)</Title>
<FuncSynopsis>
<FuncDef>Q_LONG <Function>readBlock</Function></FuncDef>
<ParamDef>char *<Parameter>data</Parameter></ParamDef>
@@ -35,141 +35,141 @@ This takes a single <Literal>maxlen</Literal> parameter. The
</Para>
</Sect2>
-<Sect2><Title>QHttpHeader (Qt v3.1+)</Title>
+<Sect2><Title>TQHttpHeader (TQt v3.1+)</Title>
<Para>
-<Literal>QHttpHeader</Literal> is fully implemented.
+<Literal>TQHttpHeader</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QHttpRequestHeader (Qt v3.1+)</Title>
+<Sect2><Title>TQHttpRequestHeader (TQt v3.1+)</Title>
<Para>
-<Literal>QHttpRequestHeader</Literal> is fully implemented.
+<Literal>TQHttpRequestHeader</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QHttpResponseHeader (Qt v3.1+)</Title>
+<Sect2><Title>TQHttpResponseHeader (TQt v3.1+)</Title>
<Para>
-<Literal>QHttpResponseHeader</Literal> is fully implemented.
+<Literal>TQHttpResponseHeader</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (Qt_NETWORKPROTOCOL_HTTP)
-%If (Qt_3_1_0 -)
+%If (TQt_NETWORKPROTOCOL_HTTP)
+%If (TQt_3_1_0 -)
-class QHttpHeader
+class TQHttpHeader
{
%TypeHeaderCode
#include <qhttp.h>
%End
public:
- QHttpHeader();
- QHttpHeader(const QHttpHeader &);
- QHttpHeader(const QString &);
- virtual ~QHttpHeader();
+ TQHttpHeader();
+ TQHttpHeader(const TQHttpHeader &);
+ TQHttpHeader(const TQString &);
+ virtual ~TQHttpHeader();
- QString value(const QString &) const;
- void setValue(const QString &,const QString &);
- void removeValue(const QString &);
+ TQString value(const TQString &) const;
+ void setValue(const TQString &,const TQString &);
+ void removeValue(const TQString &);
- QStringList keys() const;
- bool hasKey(const QString &) const;
+ TQStringList keys() const;
+ bool hasKey(const TQString &) const;
bool hasContentLength() const;
uint contentLength() const;
void setContentLength(int);
bool hasContentType() const;
- QString contentType() const;
- void setContentType(const QString &);
+ TQString contentType() const;
+ void setContentType(const TQString &);
- virtual QString toString() const;
+ virtual TQString toString() const;
bool isValid() const;
virtual int majorVersion() const = 0;
virtual int minorVersion() const = 0;
protected:
- virtual bool parseLine(const QString &,int);
- bool parse(const QString &);
+ virtual bool parseLine(const TQString &,int);
+ bool parse(const TQString &);
void setValid(bool);
};
-class QHttpResponseHeader : QHttpHeader
+class TQHttpResponseHeader : TQHttpHeader
{
%TypeHeaderCode
#include <qhttp.h>
%End
public:
- QHttpResponseHeader();
- QHttpResponseHeader(const QHttpResponseHeader &);
+ TQHttpResponseHeader();
+ TQHttpResponseHeader(const TQHttpResponseHeader &);
int statusCode() const;
- QString reasonPhrase() const;
+ TQString reasonPhrase() const;
int majorVersion() const;
int minorVersion() const;
- QString toString() const;
+ TQString toString() const;
protected:
- bool parseLine(const QString &,int);
+ bool parseLine(const TQString &,int);
};
-class QHttpRequestHeader : QHttpHeader
+class TQHttpRequestHeader : TQHttpHeader
{
%TypeHeaderCode
#include <qhttp.h>
%End
public:
- QHttpRequestHeader();
- QHttpRequestHeader(const QString &,const QString &,int = 1,int = 1);
- QHttpRequestHeader(const QHttpRequestHeader &);
- QHttpRequestHeader(const QString &);
+ TQHttpRequestHeader();
+ TQHttpRequestHeader(const TQString &,const TQString &,int = 1,int = 1);
+ TQHttpRequestHeader(const TQHttpRequestHeader &);
+ TQHttpRequestHeader(const TQString &);
- void setRequest(const QString &,const QString &,int = 1,int = 1);
+ void setRequest(const TQString &,const TQString &,int = 1,int = 1);
- QString method() const;
- QString path() const;
+ TQString method() const;
+ TQString path() const;
int majorVersion() const;
int minorVersion() const;
- QString toString() const;
+ TQString toString() const;
protected:
- bool parseLine(const QString &,int);
+ bool parseLine(const TQString &,int);
};
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
-class QHttp : QNetworkProtocol
+class TQHttp : TQNetworkProtocol
{
%TypeHeaderCode
#include <qhttp.h>
%End
public:
- QHttp();
-%If (Qt_3_1_0 -)
- QHttp(QObject * /TransferThis/,const char * = 0);
- QHttp(const QString &,Q_UINT16 = 80,QObject * /TransferThis/ = 0,
+ TQHttp();
+%If (TQt_3_1_0 -)
+ TQHttp(TQObject * /TransferThis/,const char * = 0);
+ TQHttp(const TQString &,Q_UINT16 = 80,TQObject * /TransferThis/ = 0,
const char * = 0);
- virtual ~QHttp();
+ virtual ~TQHttp();
%End
int supportedOperations() const;
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
enum State {
Unconnected,
HostLookup,
@@ -191,17 +191,17 @@ public:
Aborted
};
- int setHost(const QString &,Q_UINT16 = 80);
+ int setHost(const TQString &,Q_UINT16 = 80);
- int get(const QString &,QIODevice * = 0) /ReleaseGIL/;
- int post(const QString &,QIODevice *,QIODevice * = 0) /ReleaseGIL/;
- int post(const QString &,const QByteArray &,
- QIODevice * = 0) /ReleaseGIL/;
- int head(const QString &) /ReleaseGIL/;
- int request(const QHttpRequestHeader &,QIODevice * = 0,
- QIODevice * = 0) /ReleaseGIL/;
- int request(const QHttpRequestHeader &,const QByteArray &,
- QIODevice * = 0) /ReleaseGIL/;
+ int get(const TQString &,TQIODevice * = 0) /ReleaseGIL/;
+ int post(const TQString &,TQIODevice *,TQIODevice * = 0) /ReleaseGIL/;
+ int post(const TQString &,const TQByteArray &,
+ TQIODevice * = 0) /ReleaseGIL/;
+ int head(const TQString &) /ReleaseGIL/;
+ int request(const TQHttpRequestHeader &,TQIODevice * = 0,
+ TQIODevice * = 0) /ReleaseGIL/;
+ int request(const TQHttpRequestHeader &,const TQByteArray &,
+ TQIODevice * = 0) /ReleaseGIL/;
int closeConnection();
@@ -218,7 +218,7 @@ public:
Q_LONG actlen;
Py_BEGIN_ALLOW_THREADS
- actlen = sipCpp -> QHttp::readBlock(buf,a0);
+ actlen = sipCpp -> TQHttp::readBlock(buf,a0);
Py_END_ALLOW_THREADS
if (actlen < 0)
@@ -233,31 +233,31 @@ public:
}
%End
- QByteArray readAll() /ReleaseGIL/;
+ TQByteArray readAll() /ReleaseGIL/;
int currentId() const;
- QIODevice *currentSourceDevice() const;
- QIODevice *currentDestinationDevice() const;
- QHttpRequestHeader currentRequest() const;
+ TQIODevice *currentSourceDevice() const;
+ TQIODevice *currentDestinationDevice() const;
+ TQHttpRequestHeader currentRequest() const;
bool hasPendingRequests() const;
void clearPendingRequests();
State state() const;
Error error() const;
- QString errorString() const;
+ TQString errorString() const;
%End
public slots:
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
void abort();
%End
signals:
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
void stateChanged(int);
- void responseHeaderReceived(const QHttpResponseHeader &);
- void readyRead(const QHttpResponseHeader &);
+ void responseHeaderReceived(const TQHttpResponseHeader &);
+ void readyRead(const TQHttpResponseHeader &);
void dataSendProgress(int,int);
void dataReadProgress(int,int);
@@ -267,11 +267,11 @@ signals:
%End
protected:
- void operationGet(QNetworkOperation *);
- void operationPut(QNetworkOperation *);
+ void operationGet(TQNetworkOperation *);
+ void operationPut(TQNetworkOperation *);
-%If (Qt_3_1_0 -)
- void timerEvent(QTimerEvent *);
+%If (TQt_3_1_0 -)
+ void timerEvent(TQTimerEvent *);
%End
};