summaryrefslogtreecommitdiffstats
path: root/sip/qtnetwork/qsocket.sip
diff options
context:
space:
mode:
Diffstat (limited to 'sip/qtnetwork/qsocket.sip')
-rw-r--r--sip/qtnetwork/qsocket.sip66
1 files changed, 33 insertions, 33 deletions
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