summaryrefslogtreecommitdiffstats
path: root/sip/qtnetwork/qsocketdevice.sip
diff options
context:
space:
mode:
authoraneejit1 <aneejit1@gmail.com>2022-07-29 12:36:09 +0000
committeraneejit1 <aneejit1@gmail.com>2022-07-30 17:54:15 +0000
commit33a0297b35ab40e2d09cf37e351095b58725c8d5 (patch)
tree7eb6d8c710dcb638f2ac00776a3f523311e19c50 /sip/qtnetwork/qsocketdevice.sip
parente602246539fd7435aaeb440fcb7f852c92c8426b (diff)
downloadpytqt-33a0297b35ab40e2d09cf37e351095b58725c8d5.tar.gz
pytqt-33a0297b35ab40e2d09cf37e351095b58725c8d5.zip
Remove support for earlier Qt/TQt versions
Conditional code in the .sip files linked to specific older versions has been removed. Since the versions of TQt and python-tqt are running in parallel, the support for older versions was clutter that would never actually be used now. Signed-off-by: aneejit1 <aneejit1@gmail.com>
Diffstat (limited to 'sip/qtnetwork/qsocketdevice.sip')
-rw-r--r--sip/qtnetwork/qsocketdevice.sip56
1 files changed, 0 insertions, 56 deletions
diff --git a/sip/qtnetwork/qsocketdevice.sip b/sip/qtnetwork/qsocketdevice.sip
index bbaa008..12d6b67 100644
--- a/sip/qtnetwork/qsocketdevice.sip
+++ b/sip/qtnetwork/qsocketdevice.sip
@@ -46,8 +46,6 @@ as a parameter.
%End
-%If (TQt_2_2_0 -)
-
class TQSocketDevice : TQIODevice
{
%TypeHeaderCode
@@ -60,25 +58,19 @@ public:
Datagram
};
-%If (TQt_3_3_0 -)
enum Protocol {
IPv4,
IPv6,
Unknown
};
-%End
TQSocketDevice(Type = Stream);
-%If (TQt_3_3_0 -)
TQSocketDevice(Type,Protocol,int);
-%End
TQSocketDevice(int,Type);
bool isValid() const;
Type type() const;
-%If (TQt_3_3_0 -)
Protocol protocol() const;
-%End
int socket() const;
virtual void setSocket(int,Type);
@@ -87,16 +79,9 @@ public:
void close();
void flush() /ReleaseGIL/;
-%If (- TQt_3_0_0)
- uint size() const;
- int at() const;
- bool at(int);
-%End
-%If (TQt_3_0_0 -)
Offset size() const;
Offset at() const;
bool at(Offset);
-%End
bool atEnd() const;
bool blocking() const;
@@ -116,47 +101,9 @@ public:
virtual bool listen(int);
virtual int accept();
-%If (- TQt_3_0_0)
- int bytesAvailable() const;
- int waitForMore(int) const /ReleaseGIL/;
-%End
-%If (TQt_3_0_0 -)
TQ_LONG bytesAvailable() const;
TQ_LONG waitForMore(int) const /ReleaseGIL/;
-%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->TQSocketDevice::readBlock(buf, a0) : sipCpp->readBlock(buf, a0);
- Py_END_ALLOW_THREADS
-
- if (actlen < 0)
- {
- Py_INCREF(Py_None);
- sipRes = Py_None;
- }
- else if ((sipRes = SIPBytes_FromStringAndSize(buf,actlen)) == NULL)
- sipIsErr = 1;
-
- sipFree((void *)buf);
- }
-%End
- int writeBlock(const char * /Array/,uint /ArraySize/) /ReleaseGIL/;
- virtual int writeBlock(const char * /Array/,uint /ArraySize/,
- const TQHostAddress &,TQ_UINT16) /ReleaseGIL/;
-%End
-%If (TQt_3_0_0 -)
SIP_PYOBJECT readBlock(TQ_ULONG) /ReleaseGIL/ [TQ_LONG (char *,TQ_ULONG)];
%MethodCode
char *buf;
@@ -188,7 +135,6 @@ public:
TQ_ULONG /ArraySize/) /ReleaseGIL/;
virtual TQ_LONG writeBlock(const char * /Array/,TQ_ULONG /ArraySize/,
const TQHostAddress &,TQ_UINT16) /ReleaseGIL/;
-%End
int getch();
int putch(int);
@@ -220,5 +166,3 @@ protected:
private:
TQSocketDevice(const TQSocketDevice &);
};
-
-%End