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.sip107
1 files changed, 0 insertions, 107 deletions
diff --git a/sip/qtnetwork/qsocket.sip b/sip/qtnetwork/qsocket.sip
index b97f243..a31fa73 100644
--- a/sip/qtnetwork/qsocket.sip
+++ b/sip/qtnetwork/qsocket.sip
@@ -57,8 +57,6 @@ as a parameter.
%End
-%If (TQt_2_2_0 -)
-
class TQSocket : TQObject, TQIODevice
{
%TypeHeaderCode
@@ -78,12 +76,7 @@ public:
Idle,
HostLookup,
Connecting,
-%If (TQt_3_0_0 -)
Connected,
-%End
-%If (- TQt_3_0_0)
- Listening,
-%End
Closing,
Connection
};
@@ -98,11 +91,7 @@ public:
{sipName_TQSocket, &sipClass_TQSocket, -1, 2},
{sipName_TQFtp, &sipClass_TQFtp, -1, 3},
{sipName_TQLocalFs, &sipClass_TQLocalFs, -1, 4},
-#if TQT_VERSION >= 0x030000
{sipName_TQHttp, &sipClass_TQHttp, -1, 5},
-#else
- {NULL, NULL, -1, 5},
-#endif
{sipName_TQDns, &sipClass_TQDns, -1, -1},
};
@@ -130,10 +119,8 @@ public:
int socket() const;
virtual void setSocket(int);
-%If (TQt_3_0_0 -)
TQSocketDevice *socketDevice();
virtual void setSocketDevice(TQSocketDevice *);
-%End
%If (TQt_DNS)
virtual void connectToHost(const TQString &,TQ_UINT16) /ReleaseGIL/;
@@ -143,103 +130,17 @@ public:
bool open(int) /ReleaseGIL/;
void close() /ReleaseGIL/;
void flush() /ReleaseGIL/;
-%If (TQt_3_0_0 -)
Offset size() const;
Offset at() const;
bool at(Offset);
-%End
-%If (- TQt_3_0_0)
- uint size() const;
- int at() const;
- bool at(int);
-%End
bool atEnd() const;
-%If (TQt_3_0_0 -)
TQ_ULONG bytesAvailable() const;
TQ_ULONG waitForMore(int) const /ReleaseGIL/;
//TQ_ULONG waitForMore(int,bool *) const /ReleaseGIL/;
TQ_ULONG bytesToWrite() const;
-%End
-%If (- TQt_3_0_0)
- int bytesAvailable() const;
- int waitForMore(int) const /ReleaseGIL/;
- int bytesToWrite() const;
-%End
-%If (TQt_3_1_0 -)
void clearPendingData();
-%End
-
-%If (- TQt_3_0_0)
- SIP_PYOBJECT readBlock(uint) /ReleaseGIL/ [int (char *,uint)];
-%MethodCode
- char *buf;
-
- if ((buf = (char *)sipMalloc(a0)) == NULL)
- sipIsErr = 1;
- else
- {
- int actlen;
-
- Py_BEGIN_ALLOW_THREADS
- actlen = sipSelfWasArg ? sipCpp->TQSocket::readBlock(buf, a0) : sipCpp->readBlock(buf, a0);
- Py_END_ALLOW_THREADS
-
- if (actlen < 0)
- {
- sipFree((void *)buf);
-
- Py_INCREF(Py_None);
- sipRes = Py_None;
- }
- else
- {
- sipRes = SIPBytes_FromStringAndSize(buf,actlen);
-
- sipFree((void *)buf);
-
- if (sipRes == NULL)
- sipIsErr = 1;
- }
- }
-%End
-
- int writeBlock(const char * /Array/,uint /ArraySize/) /ReleaseGIL/;
-
- SIP_PYOBJECT readLine(uint) /ReleaseGIL/ [int (char *,uint)];
-%MethodCode
- char *buf;
-
- if ((buf = (char *)sipMalloc(a0)) == NULL)
- sipIsErr = 1;
- else
- {
- int actlen;
-
- Py_BEGIN_ALLOW_THREADS
- actlen = sipCpp -> readLine(buf,a0);
- Py_END_ALLOW_THREADS
- if (actlen < 0)
- {
- sipFree((void *)buf);
-
- Py_INCREF(Py_None);
- sipRes = Py_None;
- }
- else
- {
- sipRes = SIPBytes_FromStringAndSize(buf,actlen);
-
- sipFree((void *)buf);
-
- if (sipRes == NULL)
- sipIsErr = 1;
- }
- }
-%End
-%End
-%If (TQt_3_0_0 -)
SIP_PYOBJECT readBlock(TQ_ULONG) /ReleaseGIL/ [TQ_LONG (char *,TQ_ULONG)];
%MethodCode
char *buf;
@@ -308,7 +209,6 @@ public:
}
}
%End
-%End
int getch() /ReleaseGIL/;
int putch(int) /ReleaseGIL/;
@@ -322,10 +222,8 @@ public:
TQHostAddress address() const;
TQHostAddress peerAddress() const;
-%If (TQt_3_2_0 -)
void setReadBufferSize(TQ_ULONG);
TQ_ULONG readBufferSize() const;
-%End
signals:
void hostFound();
@@ -337,12 +235,7 @@ signals:
void error(int);
protected:
-%If (- TQt_3_0_0)
- TQSocketDevice *socketDevice();
-%End
private:
TQSocket(const TQSocket &);
};
-
-%End