summaryrefslogtreecommitdiffstats
path: root/sip/qt/qiodevice.sip
diff options
context:
space:
mode:
Diffstat (limited to 'sip/qt/qiodevice.sip')
-rw-r--r--sip/qt/qiodevice.sip151
1 files changed, 0 insertions, 151 deletions
diff --git a/sip/qt/qiodevice.sip b/sip/qt/qiodevice.sip
index 4fbbb05..75ba7dc 100644
--- a/sip/qt/qiodevice.sip
+++ b/sip/qt/qiodevice.sip
@@ -72,9 +72,7 @@ const int IO_OpenError;
const int IO_ConnectError;
const int IO_AbortError;
const int IO_TimeOutError;
-%If (TQt_2_00 -)
const int IO_UnspecifiedError;
-%End
class TQIODevice
@@ -84,9 +82,7 @@ class TQIODevice
%End
public:
-%If (TQt_3_0_0 -)
typedef TQ_ULONG Offset;
-%End
TQIODevice();
@@ -114,80 +110,12 @@ public:
virtual void close() = 0;
virtual void flush() = 0 /ReleaseGIL/;
-%If (- TQt_3_0_0)
- virtual uint size() const = 0;
- virtual int at() const;
- virtual bool at(int);
-%End
-%If (TQt_3_0_0 -)
virtual Offset size() const = 0;
virtual Offset at() const;
virtual bool at(Offset);
-%End
virtual bool atEnd() const;
bool reset();
-%If (- TQt_3_0_0)
- virtual SIP_PYOBJECT readBlock(uint) = 0 /ReleaseGIL/ [int (char *,uint)];
-%MethodCode
- char *buf;
-
- if ((buf = (char *)sipMalloc(a0)) == NULL)
- sipIsErr = 1;
- else
- {
- int actlen;
-
- Py_BEGIN_ALLOW_THREADS
- actlen = 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
-%VirtualCatcherCode
- PyObject *result = sipCallMethod(&sipIsErr,sipMethod,"i",a1);
-
- if (result != NULL)
- {
- PyObject *buf;
-
- sipParseResult(&sipIsErr,sipMethod,result,"O",&buf);
-
- if (buf == Py_None)
- sipRes = -1;
- else if (!SIPBytes_Check(buf))
- {
- sipBadCatcherResult(sipMethod);
- sipIsErr = 1;
- }
- else
- {
- memcpy(a0,SIPBytes_AS_STRING(buf),SIPBytes_GET_SIZE(buf));
- sipRes = SIPBytes_GET_SIZE(buf);
- }
-
- Py_DECREF(buf);
- Py_DECREF(result);
- }
-%End
-%End
-%If (TQt_3_0_0 -)
virtual SIP_PYOBJECT readBlock(TQ_ULONG) = 0 /ReleaseGIL/ [TQ_LONG (char *,TQ_ULONG)];
%MethodCode
char *buf;
@@ -246,78 +174,10 @@ public:
Py_DECREF(result);
}
%End
-%End
-%If (- TQt_3_0_0)
- virtual int writeBlock(const char * /Array/,
- uint /ArraySize/) = 0 /ReleaseGIL/;
-%End
-%If (TQt_3_0_0 -)
virtual TQ_LONG writeBlock(const char * /Array/,
TQ_ULONG /ArraySize/) = 0 /ReleaseGIL/;
-%End
-
-%If (- TQt_3_0_0)
- virtual 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 = sipSelfWasArg ? sipCpp->TQIODevice::readLine(buf, a0) : 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
-%VirtualCatcherCode
- PyObject *result = sipCallMethod(&sipIsErr,sipMethod,"i",a1);
-
- if (result != NULL)
- {
- PyObject *buf;
-
- sipParseResult(&sipIsErr,sipMethod,result,"O",&buf);
-
- if (buf == Py_None)
- sipRes = -1;
- else if (!SIPBytes_Check(buf))
- {
- sipBadCatcherResult(sipMethod);
- sipIsErr = 1;
- }
- else
- {
- memcpy(a0,SIPBytes_AS_STRING(buf),SIPBytes_GET_SIZE(buf));
- sipRes = SIPBytes_GET_SIZE(buf);
- }
-
- Py_DECREF(buf);
- Py_DECREF(result);
- }
-%End
-%End
-%If (TQt_3_0_0 -)
virtual SIP_PYOBJECT readLine(TQ_ULONG) /ReleaseGIL/ [TQ_LONG (char *,TQ_ULONG)];
%MethodCode
char *buf;
@@ -376,21 +236,10 @@ public:
Py_DECREF(result);
}
%End
-%End
-%If (TQt_2_00 - TQt_3_0_0)
- int writeBlock(const TQByteArray &) /ReleaseGIL/;
-%End
-%If (TQt_3_0_0 -)
TQ_LONG writeBlock(const TQByteArray &) /ReleaseGIL/;
-%End
-%If (TQt_2_00 - TQt_3_0_0)
- TQByteArray readAll() /ReleaseGIL/;
-%End
-%If (TQt_3_0_0 -)
virtual TQByteArray readAll() /ReleaseGIL/;
-%End
virtual int getch() = 0 /ReleaseGIL/;
virtual int putch(int) = 0 /ReleaseGIL/;