summaryrefslogtreecommitdiffstats
path: root/sip/qtnetwork
diff options
context:
space:
mode:
Diffstat (limited to 'sip/qtnetwork')
-rw-r--r--sip/qtnetwork/copying.sip18
-rw-r--r--sip/qtnetwork/qdns.sip84
-rw-r--r--sip/qtnetwork/qftp.sip90
-rw-r--r--sip/qtnetwork/qhostaddress.sip42
-rw-r--r--sip/qtnetwork/qhttp.sip156
-rw-r--r--sip/qtnetwork/qlocalfs.sip34
-rw-r--r--sip/qtnetwork/qnetwork.sip12
-rw-r--r--sip/qtnetwork/qserversocket.sip40
-rw-r--r--sip/qtnetwork/qsocket.sip66
-rw-r--r--sip/qtnetwork/qsocketdevice.sip58
-rw-r--r--sip/qtnetwork/qtnetworkmod.sip18
11 files changed, 309 insertions, 309 deletions
diff --git a/sip/qtnetwork/copying.sip b/sip/qtnetwork/copying.sip
index 463904b..6da646e 100644
--- a/sip/qtnetwork/copying.sip
+++ b/sip/qtnetwork/copying.sip
@@ -1,22 +1,22 @@
-// This is the SIP file defining the PyQt license.
+// This is the SIP file defining the PyTQt license.
//
// 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.
@@ -24,20 +24,20 @@
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.
%End
diff --git a/sip/qtnetwork/qdns.sip b/sip/qtnetwork/qdns.sip
index b91bb9f..ed83928 100644
--- a/sip/qtnetwork/qdns.sip
+++ b/sip/qtnetwork/qdns.sip
@@ -1,38 +1,38 @@
-// This is the SIP interface definition for QDns.
+// This is the SIP interface definition for TQDns.
//
// 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>QDns (Qt v2.2+)</Title>
+<Sect2><Title>TQDns (TQt v2.2+)</Title>
<Para>
-<Literal>QDns</Literal> is fully implemented.
+<Literal>TQDns</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (Qt_DNS)
-%If (Qt_2_2_0 -)
+%If (TQt_DNS)
+%If (TQt_2_2_0 -)
-class QDns : QObject
+class TQDns : TQObject
{
%TypeHeaderCode
#include <qdns.h>
@@ -50,67 +50,67 @@ public:
Txt
};
- QDns();
- QDns(const QString &,RecordType = A);
- QDns(const QHostAddress &,RecordType = A);
+ TQDns();
+ TQDns(const TQString &,RecordType = A);
+ TQDns(const TQHostAddress &,RecordType = A);
- virtual void setLabel(const QString &);
- virtual void setLabel(const QHostAddress &);
- QString label() const;
+ virtual void setLabel(const TQString &);
+ virtual void setLabel(const TQHostAddress &);
+ TQString label() const;
virtual void setRecordType(RecordType = A);
RecordType recordType() const;
bool isWorking() const;
- QValueList<QHostAddress> addresses() const;
+ TQValueList<TQHostAddress> addresses() const;
class MailServer
{
public:
- MailServer(const QString & = QString::null,Q_UINT16 = 0);
+ MailServer(const TQString & = TQString::null,Q_UINT16 = 0);
- QString name;
+ TQString name;
Q_UINT16 priority;
};
- QValueList<QDns::MailServer> mailServers() const;
+ TQValueList<TQDns::MailServer> mailServers() const;
class Server
{
public:
- Server(const QString & = QString::null,Q_UINT16 = 0,
+ Server(const TQString & = TQString::null,Q_UINT16 = 0,
Q_UINT16 = 0,Q_UINT16 = 0);
- QString name;
+ TQString name;
Q_UINT16 priority;
Q_UINT16 weight;
Q_UINT16 port;
};
- QValueList<QDns::Server> servers() const;
+ TQValueList<TQDns::Server> servers() const;
- QStringList hostNames() const;
+ TQStringList hostNames() const;
- QStringList texts() const;
+ TQStringList texts() const;
- QString canonicalName() const;
+ TQString canonicalName() const;
- QStringList qualifiedNames() const;
+ TQStringList qualifiedNames() const;
signals:
void resultsReady();
};
-%MappedType QValueList<QHostAddress>
+%MappedType TQValueList<TQHostAddress>
{
%TypeHeaderCode
#include <qvaluelist.h>
%End
%ConvertFromTypeCode
- // Convert to a Python list of QHostAddress instances.
+ // Convert to a Python list of TQHostAddress instances.
int i;
PyObject *l;
@@ -123,13 +123,13 @@ signals:
// Get it.
i = 0;
- QValueListConstIterator<QHostAddress> it;
+ TQValueListConstIterator<TQHostAddress> it;
for (it = sipCpp -> begin(); it != sipCpp -> end(); ++it)
{
PyObject *tmobj;
- if ((tmobj = sipConvertFromNewInstance(new QHostAddress(*it),sipClass_QHostAddress,sipTransferObj)) == NULL || PyList_SetItem(l,i,tmobj) < 0)
+ if ((tmobj = sipConvertFromNewInstance(new TQHostAddress(*it),sipClass_QHostAddress,sipTransferObj)) == NULL || PyList_SetItem(l,i,tmobj) < 0)
{
Py_XDECREF(tmobj);
Py_DECREF(l);
@@ -150,7 +150,7 @@ signals:
if (sipIsErr == NULL)
return PyList_Check(sipPy);
- PyErr_Format(PyExc_TypeError,"Converting to QValueList<QHostAddress> not yet implemented");
+ PyErr_Format(PyExc_TypeError,"Converting to TQValueList<TQHostAddress> not yet implemented");
*sipIsErr = 1;
@@ -159,14 +159,14 @@ signals:
};
-%MappedType QValueList<QDns::MailServer>
+%MappedType TQValueList<TQDns::MailServer>
{
%TypeHeaderCode
#include <qvaluelist.h>
%End
%ConvertFromTypeCode
- // Convert to a Python list of QDns::MailServer instances.
+ // Convert to a Python list of TQDns::MailServer instances.
int i;
PyObject *l;
@@ -179,13 +179,13 @@ signals:
// Get it.
i = 0;
- QValueListConstIterator<QDns::MailServer> it;
+ TQValueListConstIterator<TQDns::MailServer> it;
for (it = sipCpp -> begin(); it != sipCpp -> end(); ++it)
{
PyObject *tmobj;
- if ((tmobj = sipConvertFromNewInstance(new QDns::MailServer(*it),sipClass_QDns_MailServer,sipTransferObj)) == NULL || PyList_SetItem(l,i,tmobj) < 0)
+ if ((tmobj = sipConvertFromNewInstance(new TQDns::MailServer(*it),sipClass_QDns_MailServer,sipTransferObj)) == NULL || PyList_SetItem(l,i,tmobj) < 0)
{
Py_XDECREF(tmobj);
Py_DECREF(l);
@@ -206,7 +206,7 @@ signals:
if (sipIsErr == NULL)
return PyList_Check(sipPy);
- PyErr_Format(PyExc_TypeError,"Converting to QValueList<QDns::MailServer> not yet implemented");
+ PyErr_Format(PyExc_TypeError,"Converting to TQValueList<TQDns::MailServer> not yet implemented");
*sipIsErr = 1;
@@ -215,14 +215,14 @@ signals:
};
-%MappedType QValueList<QDns::Server>
+%MappedType TQValueList<TQDns::Server>
{
%TypeHeaderCode
#include <qvaluelist.h>
%End
%ConvertFromTypeCode
- // Convert to a Python list of QDns::Server instances.
+ // Convert to a Python list of TQDns::Server instances.
int i;
PyObject *l;
@@ -235,13 +235,13 @@ signals:
// Get it.
i = 0;
- QValueListConstIterator<QDns::Server> it;
+ TQValueListConstIterator<TQDns::Server> it;
for (it = sipCpp -> begin(); it != sipCpp -> end(); ++it)
{
PyObject *tmobj;
- if ((tmobj = sipConvertFromNewInstance(new QDns::Server(*it),sipClass_QDns_Server,sipTransferObj)) == NULL || PyList_SetItem(l,i,tmobj) < 0)
+ if ((tmobj = sipConvertFromNewInstance(new TQDns::Server(*it),sipClass_QDns_Server,sipTransferObj)) == NULL || PyList_SetItem(l,i,tmobj) < 0)
{
Py_XDECREF(tmobj);
Py_DECREF(l);
@@ -262,7 +262,7 @@ signals:
if (sipIsErr == NULL)
return PyList_Check(sipPy);
- PyErr_Format(PyExc_TypeError,"Converting to QValueList<QDns::Server> not yet implemented");
+ PyErr_Format(PyExc_TypeError,"Converting to TQValueList<TQDns::Server> not yet implemented");
*sipIsErr = 1;
diff --git a/sip/qtnetwork/qftp.sip b/sip/qtnetwork/qftp.sip
index f79ecc1..e1e7613 100644
--- a/sip/qtnetwork/qftp.sip
+++ b/sip/qtnetwork/qftp.sip
@@ -1,27 +1,27 @@
-// This is the SIP interface definition for QFtp.
+// This is the SIP interface definition for TQFtp.
//
// 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>QFtp (Qt v2.2+)</Title>
+<Sect2><Title>TQFtp (TQt v2.2+)</Title>
<FuncSynopsis>
<FuncDef>Q_LONG <Function>readBlock</Function></FuncDef>
<ParamDef>char *<Parameter>data</Parameter></ParamDef>
@@ -36,30 +36,30 @@ This takes a single <Literal>maxlen</Literal> parameter. The
%End
-%If (Qt_NETWORKPROTOCOL_FTP)
-%If (Qt_2_2_0 -)
+%If (TQt_NETWORKPROTOCOL_FTP)
+%If (TQt_2_2_0 -)
-class QFtp : QNetworkProtocol
+class TQFtp : TQNetworkProtocol
{
%TypeHeaderCode
#include <qftp.h>
%End
public:
- QFtp();
-%If (Qt_3_1_0 -)
- QFtp(QObject * /TransferThis/,const char * = 0);
+ TQFtp();
+%If (TQt_3_1_0 -)
+ TQFtp(TQObject * /TransferThis/,const char * = 0);
%End
- virtual ~QFtp();
+ virtual ~TQFtp();
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
int supportedOperations() const;
%End
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
virtual int supportedOperations() const;
%End
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
enum State {
Unconnected,
HostLookup,
@@ -93,21 +93,21 @@ public:
RawCommand
};
- int connectToHost(const QString &,Q_UINT16 = 21) /ReleaseGIL/;
- int login(const QString & = QString::null,
- const QString & = QString::null) /ReleaseGIL/;
+ int connectToHost(const TQString &,Q_UINT16 = 21) /ReleaseGIL/;
+ int login(const TQString & = TQString::null,
+ const TQString & = TQString::null) /ReleaseGIL/;
int close() /ReleaseGIL/;
- int list(const QString & = QString::null) /ReleaseGIL/;
- int cd(const QString &) /ReleaseGIL/;
- int get(const QString &,QIODevice * = 0) /ReleaseGIL/;
- int put(const QByteArray &,const QString &) /ReleaseGIL/;
- int put(QIODevice *,const QString &) /ReleaseGIL/;
- int remove(const QString &) /ReleaseGIL/;
- int mkdir(const QString &) /ReleaseGIL/;
- int rmdir(const QString &) /ReleaseGIL/;
- int rename(const QString &,const QString &) /ReleaseGIL/;
-
- int rawCommand(const QString &) /ReleaseGIL/;
+ int list(const TQString & = TQString::null) /ReleaseGIL/;
+ int cd(const TQString &) /ReleaseGIL/;
+ int get(const TQString &,TQIODevice * = 0) /ReleaseGIL/;
+ int put(const TQByteArray &,const TQString &) /ReleaseGIL/;
+ int put(TQIODevice *,const TQString &) /ReleaseGIL/;
+ int remove(const TQString &) /ReleaseGIL/;
+ int mkdir(const TQString &) /ReleaseGIL/;
+ int rmdir(const TQString &) /ReleaseGIL/;
+ int rename(const TQString &,const TQString &) /ReleaseGIL/;
+
+ int rawCommand(const TQString &) /ReleaseGIL/;
unsigned long bytesAvailable() const;
@@ -122,7 +122,7 @@ public:
Q_LONG actlen;
Py_BEGIN_ALLOW_THREADS
- actlen = sipCpp -> QFtp::readBlock(buf,a0);
+ actlen = sipCpp -> TQFtp::readBlock(buf,a0);
Py_END_ALLOW_THREADS
if (actlen < 0)
@@ -137,10 +137,10 @@ public:
}
%End
- QByteArray readAll() /ReleaseGIL/;
+ TQByteArray readAll() /ReleaseGIL/;
int currentId() const;
- QIODevice* currentDevice() const;
+ TQIODevice* currentDevice() const;
Command currentCommand() const;
bool hasPendingCommands() const;
void clearPendingCommands();
@@ -148,21 +148,21 @@ public:
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 listInfo(const QUrlInfo &);
+ void listInfo(const TQUrlInfo &);
void readyRead();
void dataTransferProgress(int,int);
- void rawCommandReply(int,const QString &);
+ void rawCommandReply(int,const TQString &);
void commandStarted(int);
void commandFinished(int,bool);
@@ -170,13 +170,13 @@ signals:
%End
protected:
- void parseDir(const QString &,QUrlInfo &);
- virtual void operationListChildren(QNetworkOperation *);
- virtual void operationMkDir(QNetworkOperation *);
- virtual void operationRemove(QNetworkOperation *);
- virtual void operationRename(QNetworkOperation *);
- virtual void operationGet(QNetworkOperation *);
- virtual void operationPut(QNetworkOperation *);
+ void parseDir(const TQString &,TQUrlInfo &);
+ virtual void operationListChildren(TQNetworkOperation *);
+ virtual void operationMkDir(TQNetworkOperation *);
+ virtual void operationRemove(TQNetworkOperation *);
+ virtual void operationRename(TQNetworkOperation *);
+ virtual void operationGet(TQNetworkOperation *);
+ virtual void operationPut(TQNetworkOperation *);
};
%End
diff --git a/sip/qtnetwork/qhostaddress.sip b/sip/qtnetwork/qhostaddress.sip
index e2379e2..4862672 100644
--- a/sip/qtnetwork/qhostaddress.sip
+++ b/sip/qtnetwork/qhostaddress.sip
@@ -1,29 +1,29 @@
-// This is the SIP interface definition for QHostAddress.
+// This is the SIP interface definition for TQHostAddress.
//
// 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>QHostAddress (Qt v2.2+)</Title>
+<Sect2><Title>TQHostAddress (TQt v2.2+)</Title>
<FuncSynopsis>
- <FuncDef><Function>QHostAddress</Function></FuncDef>
+ <FuncDef><Function>TQHostAddress</Function></FuncDef>
<ParamDef>Q_UINT8 *<Parameter>ip6Addr</Parameter></ParamDef>
</FuncSynopsis>
<Para>
@@ -31,7 +31,7 @@ Not yet implemented.
</Para>
<FuncSynopsis>
- <FuncDef><Function>QHostAddress</Function></FuncDef>
+ <FuncDef><Function>TQHostAddress</Function></FuncDef>
<ParamDef>const Q_IPV6ADDR &amp;<Parameter>ip6Addr</Parameter></ParamDef>
</FuncSynopsis>
<Para>
@@ -57,41 +57,41 @@ Not yet implemented.
%End
-%If (Qt_2_2_0 -)
+%If (TQt_2_2_0 -)
-class QHostAddress
+class TQHostAddress
{
%TypeHeaderCode
#include <qhostaddress.h>
%End
public:
- QHostAddress();
- QHostAddress(Q_UINT32);
-// QHostAddress(Q_UINT8 *);
-%If (Qt_3_3_0 -)
- //QHostAddress(const Q_IPV6ADDR &);
+ TQHostAddress();
+ TQHostAddress(Q_UINT32);
+// TQHostAddress(Q_UINT8 *);
+%If (TQt_3_3_0 -)
+ //TQHostAddress(const Q_IPV6ADDR &);
// This isn't mentioned in the documentation.
- //QHostAddress(const QString &);
+ //TQHostAddress(const TQString &);
%End
- QHostAddress(const QHostAddress &);
+ TQHostAddress(const TQHostAddress &);
void setAddress(Q_UINT32);
// void setAddress(Q_UINT8 *);
- bool setAddress(const QString &);
+ bool setAddress(const TQString &);
bool isIp4Addr() const;
Q_UINT32 ip4Addr() const;
-%If (Qt_3_3_0 -)
+%If (TQt_3_3_0 -)
bool isIPv4Address() const;
Q_UINT32 toIPv4Address() const;
bool isIPv6Address() const;
//Q_IPV6ADDR toIPv6Address() const;
%End
- QString toString() const;
+ TQString toString() const;
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
bool isNull() const;
%End
};
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
};
diff --git a/sip/qtnetwork/qlocalfs.sip b/sip/qtnetwork/qlocalfs.sip
index a8b816f..59f15eb 100644
--- a/sip/qtnetwork/qlocalfs.sip
+++ b/sip/qtnetwork/qlocalfs.sip
@@ -1,55 +1,55 @@
-// This is the SIP interface definition for QLocalFs.
+// This is the SIP interface definition for TQLocalFs.
//
// 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>QLocalFs (Qt v2.1+)</Title>
+<Sect2><Title>TQLocalFs (TQt v2.1+)</Title>
<Para>
-<Literal>QLocalFs</Literal> is fully implemented.
+<Literal>TQLocalFs</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (Qt_NETWORKPROTOCOL)
-%If (Qt_2_1_0 -)
+%If (TQt_NETWORKPROTOCOL)
+%If (TQt_2_1_0 -)
-class QLocalFs : QNetworkProtocol
+class TQLocalFs : TQNetworkProtocol
{
%TypeHeaderCode
#include <qlocalfs.h>
%End
public:
- QLocalFs();
+ TQLocalFs();
virtual int supportedOperations() const;
protected:
- virtual void operationListChildren(QNetworkOperation *);
- virtual void operationMkDir(QNetworkOperation *);
- virtual void operationRemove(QNetworkOperation *);
- virtual void operationRename(QNetworkOperation *);
- virtual void operationGet(QNetworkOperation *);
- virtual void operationPut(QNetworkOperation *);
+ virtual void operationListChildren(TQNetworkOperation *);
+ virtual void operationMkDir(TQNetworkOperation *);
+ virtual void operationRemove(TQNetworkOperation *);
+ virtual void operationRename(TQNetworkOperation *);
+ virtual void operationGet(TQNetworkOperation *);
+ virtual void operationPut(TQNetworkOperation *);
};
%End
diff --git a/sip/qtnetwork/qnetwork.sip b/sip/qtnetwork/qnetwork.sip
index 6b87d4e..ef4db4b 100644
--- a/sip/qtnetwork/qnetwork.sip
+++ b/sip/qtnetwork/qnetwork.sip
@@ -3,25 +3,25 @@
// 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.
-%If (Qt_NETWORKPROTOCOL)
-%If (Qt_2_2_0 -)
+%If (TQt_NETWORKPROTOCOL)
+%If (TQt_2_2_0 -)
%ModuleHeaderCode
#include <qglobal.h>
diff --git a/sip/qtnetwork/qserversocket.sip b/sip/qtnetwork/qserversocket.sip
index c130969..ce83d7b 100644
--- a/sip/qtnetwork/qserversocket.sip
+++ b/sip/qtnetwork/qserversocket.sip
@@ -1,56 +1,56 @@
-// This is the SIP interface definition for QServerSocket.
+// This is the SIP interface definition for TQServerSocket.
//
// 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>QServerSocket (Qt v2.2+)</Title>
+<Sect2><Title>TQServerSocket (TQt v2.2+)</Title>
<Para>
-<Literal>QServerSocket</Literal> is fully implemented.
+<Literal>TQServerSocket</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (Qt_2_2_0 -)
+%If (TQt_2_2_0 -)
-class QServerSocket : QObject
+class TQServerSocket : TQObject
{
%TypeHeaderCode
#include <qserversocket.h>
%End
public:
-%If (- Qt_3_0_0)
- QServerSocket(Q_UINT16,int = 0,QObject * /TransferThis/ = 0,
+%If (- TQt_3_0_0)
+ TQServerSocket(Q_UINT16,int = 0,TQObject * /TransferThis/ = 0,
const char * = 0);
- QServerSocket(const QHostAddress &,Q_UINT16,int = 0,
- QObject * /TransferThis/ = 0,const char * = 0);
+ TQServerSocket(const TQHostAddress &,Q_UINT16,int = 0,
+ TQObject * /TransferThis/ = 0,const char * = 0);
%End
-%If (Qt_3_0_0 -)
- QServerSocket(Q_UINT16,int = 1,QObject * /TransferThis/ = 0,
+%If (TQt_3_0_0 -)
+ TQServerSocket(Q_UINT16,int = 1,TQObject * /TransferThis/ = 0,
const char * = 0);
- QServerSocket(const QHostAddress &,Q_UINT16,int = 1,
- QObject * /TransferThis/ = 0,const char * = 0);
+ TQServerSocket(const TQHostAddress &,Q_UINT16,int = 1,
+ TQObject * /TransferThis/ = 0,const char * = 0);
%End
- QServerSocket(QObject * /TransferThis/ = 0,const char * = 0);
+ TQServerSocket(TQObject * /TransferThis/ = 0,const char * = 0);
bool ok() const;
@@ -59,12 +59,12 @@ public:
int socket() const;
virtual void setSocket(int);
- QHostAddress address() const ;
+ TQHostAddress address() const ;
virtual void newConnection(int) = 0;
protected:
- QSocketDevice *socketDevice();
+ TQSocketDevice *socketDevice();
};
%End
diff --git a/sip/qtnetwork/qsocket.sip b/sip/qtnetwork/qsocket.sip
index 9da9bfc..a9cd733 100644
--- a/sip/qtnetwork/qsocket.sip
+++ b/sip/qtnetwork/qsocket.sip
@@ -1,27 +1,27 @@
-// This is the SIP interface definition for QSocket.
+// This is the SIP interface definition for TQSocket.
//
// 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>QSocket (Qt v2.2+)</Title>
+<Sect2><Title>TQSocket (TQt v2.2+)</Title>
<FuncSynopsis>
<FuncDef>Q_LONG <Function>readBlock</Function></FuncDef>
<ParamDef>char *<Parameter>data</Parameter></ParamDef>
@@ -57,9 +57,9 @@ as a parameter.
%End
-%If (Qt_2_2_0 -)
+%If (TQt_2_2_0 -)
-class QSocket : QObject, QIODevice
+class TQSocket : TQObject, TQIODevice
{
%TypeHeaderCode
#include <qsocket.h>
@@ -72,16 +72,16 @@ public:
ErrSocketRead
};
- QSocket(QObject * /TransferThis/ = 0,const char * = 0);
+ TQSocket(TQObject * /TransferThis/ = 0,const char * = 0);
enum State {
Idle,
HostLookup,
Connecting,
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
Connected,
%End
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
Listening,
%End
Closing,
@@ -130,47 +130,47 @@ public:
int socket() const;
virtual void setSocket(int);
-%If (Qt_3_0_0 -)
- QSocketDevice *socketDevice();
- virtual void setSocketDevice(QSocketDevice *);
+%If (TQt_3_0_0 -)
+ TQSocketDevice *socketDevice();
+ virtual void setSocketDevice(TQSocketDevice *);
%End
-%If (Qt_DNS)
- virtual void connectToHost(const QString &,Q_UINT16) /ReleaseGIL/;
+%If (TQt_DNS)
+ virtual void connectToHost(const TQString &,Q_UINT16) /ReleaseGIL/;
%End
- QString peerName() const;
+ TQString peerName() const;
bool open(int) /ReleaseGIL/;
void close() /ReleaseGIL/;
void flush() /ReleaseGIL/;
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
Offset size() const;
Offset at() const;
bool at(Offset);
%End
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
uint size() const;
int at() const;
bool at(int);
%End
bool atEnd() const;
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
Q_ULONG bytesAvailable() const;
Q_ULONG waitForMore(int) const /ReleaseGIL/;
//Q_ULONG waitForMore(int,bool *) const /ReleaseGIL/;
Q_ULONG bytesToWrite() const;
%End
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
int bytesAvailable() const;
int waitForMore(int) const /ReleaseGIL/;
int bytesToWrite() const;
%End
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
void clearPendingData();
%End
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
SIP_PYOBJECT readBlock(uint) /ReleaseGIL/ [int (char *,uint)];
%MethodCode
char *buf;
@@ -182,7 +182,7 @@ public:
int actlen;
Py_BEGIN_ALLOW_THREADS
- actlen = sipSelfWasArg ? sipCpp->QSocket::readBlock(buf, a0) : sipCpp->readBlock(buf, a0);
+ actlen = sipSelfWasArg ? sipCpp->TQSocket::readBlock(buf, a0) : sipCpp->readBlock(buf, a0);
Py_END_ALLOW_THREADS
if (actlen < 0)
@@ -239,7 +239,7 @@ public:
}
%End
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
SIP_PYOBJECT readBlock(Q_ULONG) /ReleaseGIL/ [Q_LONG (char *,Q_ULONG)];
%MethodCode
char *buf;
@@ -251,7 +251,7 @@ public:
Q_LONG actlen;
Py_BEGIN_ALLOW_THREADS
- actlen = sipSelfWasArg ? sipCpp->QSocket::readBlock(buf, a0) : sipCpp->readBlock(buf, a0);
+ actlen = sipSelfWasArg ? sipCpp->TQSocket::readBlock(buf, a0) : sipCpp->readBlock(buf, a0);
Py_END_ALLOW_THREADS
if (actlen < 0)
@@ -315,14 +315,14 @@ public:
int ungetch(int);
bool canReadLine() const;
- virtual QString readLine() /ReleaseGIL/;
+ virtual TQString readLine() /ReleaseGIL/;
Q_UINT16 port() const;
Q_UINT16 peerPort() const;
- QHostAddress address() const;
- QHostAddress peerAddress() const;
+ TQHostAddress address() const;
+ TQHostAddress peerAddress() const;
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
void setReadBufferSize(Q_ULONG);
Q_ULONG readBufferSize() const;
%End
@@ -337,12 +337,12 @@ signals:
void error(int);
protected:
-%If (- Qt_3_0_0)
- QSocketDevice *socketDevice();
+%If (- TQt_3_0_0)
+ TQSocketDevice *socketDevice();
%End
private:
- QSocket(const QSocket &);
+ TQSocket(const TQSocket &);
};
%End
diff --git a/sip/qtnetwork/qsocketdevice.sip b/sip/qtnetwork/qsocketdevice.sip
index 3b48096..b9249d8 100644
--- a/sip/qtnetwork/qsocketdevice.sip
+++ b/sip/qtnetwork/qsocketdevice.sip
@@ -1,27 +1,27 @@
-// This is the SIP interface definition for QSocketDevice.
+// This is the SIP interface definition for TQSocketDevice.
//
// 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>QSocketDevice (Qt v2.2+)</Title>
+<Sect2><Title>TQSocketDevice (TQt v2.2+)</Title>
<FuncSynopsis>
<FuncDef>Q_LONG <Function>readBlock</Function></FuncDef>
<ParamDef>char *<Parameter>data</Parameter></ParamDef>
@@ -46,9 +46,9 @@ as a parameter.
%End
-%If (Qt_2_2_0 -)
+%If (TQt_2_2_0 -)
-class QSocketDevice : QIODevice
+class TQSocketDevice : TQIODevice
{
%TypeHeaderCode
#include <qsocketdevice.h>
@@ -60,7 +60,7 @@ public:
Datagram
};
-%If (Qt_3_3_0 -)
+%If (TQt_3_3_0 -)
enum Protocol {
IPv4,
IPv6,
@@ -68,15 +68,15 @@ public:
};
%End
- QSocketDevice(Type = Stream);
-%If (Qt_3_3_0 -)
- QSocketDevice(Type,Protocol,int);
+ TQSocketDevice(Type = Stream);
+%If (TQt_3_3_0 -)
+ TQSocketDevice(Type,Protocol,int);
%End
- QSocketDevice(int,Type);
+ TQSocketDevice(int,Type);
bool isValid() const;
Type type() const;
-%If (Qt_3_3_0 -)
+%If (TQt_3_3_0 -)
Protocol protocol() const;
%End
@@ -87,12 +87,12 @@ public:
void close();
void flush() /ReleaseGIL/;
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
uint size() const;
int at() const;
bool at(int);
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
Offset size() const;
Offset at() const;
bool at(Offset);
@@ -110,22 +110,22 @@ public:
int sendBufferSize() const;
virtual void setSendBufferSize(uint);
- virtual bool connect(const QHostAddress &,Q_UINT16);
+ virtual bool connect(const TQHostAddress &,Q_UINT16);
- virtual bool bind(const QHostAddress &,Q_UINT16);
+ virtual bool bind(const TQHostAddress &,Q_UINT16);
virtual bool listen(int);
virtual int accept();
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
int bytesAvailable() const;
int waitForMore(int) const /ReleaseGIL/;
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
Q_LONG bytesAvailable() const;
Q_LONG waitForMore(int) const /ReleaseGIL/;
%End
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
SIP_PYOBJECT readBlock(uint) /ReleaseGIL/ [int (char *,uint)];
%MethodCode
char *buf;
@@ -137,7 +137,7 @@ public:
int actlen;
Py_BEGIN_ALLOW_THREADS
- actlen = sipSelfWasArg ? sipCpp->QSocketDevice::readBlock(buf, a0) : sipCpp->readBlock(buf, a0);
+ actlen = sipSelfWasArg ? sipCpp->TQSocketDevice::readBlock(buf, a0) : sipCpp->readBlock(buf, a0);
Py_END_ALLOW_THREADS
if (actlen < 0)
@@ -154,9 +154,9 @@ public:
int writeBlock(const char * /Array/,uint /ArraySize/) /ReleaseGIL/;
virtual int writeBlock(const char * /Array/,uint /ArraySize/,
- const QHostAddress &,Q_UINT16) /ReleaseGIL/;
+ const TQHostAddress &,Q_UINT16) /ReleaseGIL/;
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
SIP_PYOBJECT readBlock(Q_ULONG) /ReleaseGIL/ [Q_LONG (char *,Q_ULONG)];
%MethodCode
char *buf;
@@ -168,7 +168,7 @@ public:
Q_LONG actlen;
Py_BEGIN_ALLOW_THREADS
- actlen = sipSelfWasArg ? sipCpp->QSocketDevice::readBlock(buf, a0) : sipCpp->readBlock(buf, a0);
+ actlen = sipSelfWasArg ? sipCpp->TQSocketDevice::readBlock(buf, a0) : sipCpp->readBlock(buf, a0);
Py_END_ALLOW_THREADS
if (actlen < 0)
@@ -187,7 +187,7 @@ public:
Q_LONG writeBlock(const char * /Array/,
Q_ULONG /ArraySize/) /ReleaseGIL/;
virtual Q_LONG writeBlock(const char * /Array/,Q_ULONG /ArraySize/,
- const QHostAddress &,Q_UINT16) /ReleaseGIL/;
+ const TQHostAddress &,Q_UINT16) /ReleaseGIL/;
%End
int getch();
@@ -196,8 +196,8 @@ public:
Q_UINT16 port() const;
Q_UINT16 peerPort() const;
- QHostAddress address() const;
- QHostAddress peerAddress() const;
+ TQHostAddress address() const;
+ TQHostAddress peerAddress() const;
enum Error {
NoError,
@@ -218,7 +218,7 @@ protected:
void setError(Error);
private:
- QSocketDevice(const QSocketDevice &);
+ TQSocketDevice(const TQSocketDevice &);
};
%End
diff --git a/sip/qtnetwork/qtnetworkmod.sip b/sip/qtnetwork/qtnetworkmod.sip
index ca580d7..aeb6b9e 100644
--- a/sip/qtnetwork/qtnetworkmod.sip
+++ b/sip/qtnetwork/qtnetworkmod.sip
@@ -1,22 +1,22 @@
-// This is the SIP interface definition for the qtnetwork module of PyQt.
+// This is the SIP interface definition for the qtnetwork module of PyTQt.
//
// 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.
@@ -46,20 +46,20 @@
# 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.