summaryrefslogtreecommitdiffstats
path: root/sip/qt/qiodevice.sip
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-11-29 01:11:08 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-11-29 01:11:08 -0600
commit8a055d66f43592c257cece2eb8cc021808062917 (patch)
treed0922f201bd5d24b62a33160d1d9baf9e89f9a70 /sip/qt/qiodevice.sip
parentb388516ca2691303a076a0764fd40bf7116fe43d (diff)
downloadpytqt-8a055d66f43592c257cece2eb8cc021808062917.tar.gz
pytqt-8a055d66f43592c257cece2eb8cc021808062917.zip
Initial TQt conversion
Diffstat (limited to 'sip/qt/qiodevice.sip')
-rw-r--r--sip/qt/qiodevice.sip60
1 files changed, 30 insertions, 30 deletions
diff --git a/sip/qt/qiodevice.sip b/sip/qt/qiodevice.sip
index 32079d2..6d44689 100644
--- a/sip/qt/qiodevice.sip
+++ b/sip/qt/qiodevice.sip
@@ -1,29 +1,29 @@
-// This is the SIP interface definition for QIODevice.
+// This is the SIP interface definition for TQIODevice.
//
// 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>QIODevice</Title>
+<Sect2><Title>TQIODevice</Title>
<Para>
-<Literal>QIODevice</Literal> is fully implemented.
+<Literal>TQIODevice</Literal> is fully implemented.
</Para>
</Sect2>
%End
@@ -72,23 +72,23 @@ const int IO_OpenError;
const int IO_ConnectError;
const int IO_AbortError;
const int IO_TimeOutError;
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
const int IO_UnspecifiedError;
%End
-class QIODevice
+class TQIODevice
{
%TypeHeaderCode
#include <qiodevice.h>
%End
public:
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
typedef Q_ULONG Offset;
%End
- QIODevice();
+ TQIODevice();
int flags() const;
int mode() const;
@@ -114,12 +114,12 @@ public:
virtual void close() = 0;
virtual void flush() = 0 /ReleaseGIL/;
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
virtual uint size() const = 0;
virtual int at() const;
virtual bool at(int);
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
virtual Offset size() const = 0;
virtual Offset at() const;
virtual bool at(Offset);
@@ -127,7 +127,7 @@ public:
virtual bool atEnd() const;
bool reset();
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
virtual SIP_PYOBJECT readBlock(uint) = 0 /ReleaseGIL/ [int (char *,uint)];
%MethodCode
char *buf;
@@ -187,7 +187,7 @@ public:
}
%End
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
virtual SIP_PYOBJECT readBlock(Q_ULONG) = 0 /ReleaseGIL/ [Q_LONG (char *,Q_ULONG)];
%MethodCode
char *buf;
@@ -248,16 +248,16 @@ public:
%End
%End
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
virtual int writeBlock(const char * /Array/,
uint /ArraySize/) = 0 /ReleaseGIL/;
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
virtual Q_LONG writeBlock(const char * /Array/,
Q_ULONG /ArraySize/) = 0 /ReleaseGIL/;
%End
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
virtual SIP_PYOBJECT readLine(uint) /ReleaseGIL/ [int (char *,uint)];
%MethodCode
char *buf;
@@ -269,7 +269,7 @@ public:
int actlen;
Py_BEGIN_ALLOW_THREADS
- actlen = sipSelfWasArg ? sipCpp->QIODevice::readLine(buf, a0) : sipCpp->readLine(buf, a0);
+ actlen = sipSelfWasArg ? sipCpp->TQIODevice::readLine(buf, a0) : sipCpp->readLine(buf, a0);
Py_END_ALLOW_THREADS
if (actlen < 0)
@@ -317,7 +317,7 @@ public:
}
%End
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
virtual SIP_PYOBJECT readLine(Q_ULONG) /ReleaseGIL/ [Q_LONG (char *,Q_ULONG)];
%MethodCode
char *buf;
@@ -329,7 +329,7 @@ public:
Q_LONG actlen;
Py_BEGIN_ALLOW_THREADS
- actlen = sipSelfWasArg ? sipCpp->QIODevice::readLine(buf, a0) : sipCpp->readLine(buf, a0);
+ actlen = sipSelfWasArg ? sipCpp->TQIODevice::readLine(buf, a0) : sipCpp->readLine(buf, a0);
Py_END_ALLOW_THREADS
if (actlen < 0)
@@ -378,18 +378,18 @@ public:
%End
%End
-%If (Qt_2_00 - Qt_3_0_0)
- int writeBlock(const QByteArray &) /ReleaseGIL/;
+%If (TQt_2_00 - TQt_3_0_0)
+ int writeBlock(const TQByteArray &) /ReleaseGIL/;
%End
-%If (Qt_3_0_0 -)
- Q_LONG writeBlock(const QByteArray &) /ReleaseGIL/;
+%If (TQt_3_0_0 -)
+ Q_LONG writeBlock(const TQByteArray &) /ReleaseGIL/;
%End
-%If (Qt_2_00 - Qt_3_0_0)
- QByteArray readAll() /ReleaseGIL/;
+%If (TQt_2_00 - TQt_3_0_0)
+ TQByteArray readAll() /ReleaseGIL/;
%End
-%If (Qt_3_0_0 -)
- virtual QByteArray readAll() /ReleaseGIL/;
+%If (TQt_3_0_0 -)
+ virtual TQByteArray readAll() /ReleaseGIL/;
%End
virtual int getch() = 0 /ReleaseGIL/;
@@ -404,5 +404,5 @@ protected:
void setStatus(int);
private:
- QIODevice(const QIODevice &);
+ TQIODevice(const TQIODevice &);
};