summaryrefslogtreecommitdiffstats
path: root/sip/qt/qfile.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/qfile.sip
parentb388516ca2691303a076a0764fd40bf7116fe43d (diff)
downloadpytqt-8a055d66f43592c257cece2eb8cc021808062917.tar.gz
pytqt-8a055d66f43592c257cece2eb8cc021808062917.zip
Initial TQt conversion
Diffstat (limited to 'sip/qt/qfile.sip')
-rw-r--r--sip/qt/qfile.sip100
1 files changed, 50 insertions, 50 deletions
diff --git a/sip/qt/qfile.sip b/sip/qt/qfile.sip
index 06012f1..2b3eb28 100644
--- a/sip/qt/qfile.sip
+++ b/sip/qt/qfile.sip
@@ -1,27 +1,27 @@
-// This is the SIP interface definition for QFile.
+// This is the SIP interface definition for TQFile.
//
// 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>QFile</Title>
+<Sect2><Title>TQFile</Title>
<FuncSynopsis>
<FuncDef>bool <Function>open</Function></FuncDef>
<ParamDef>int <Parameter>m</Parameter></ParamDef>
@@ -58,7 +58,7 @@ This takes a single <Literal>maxlen</Literal> parameter. The
<ParamDef>EncoderFn <Parameter>f</Parameter></ParamDef>
</FuncSynopsis>
<Para>
-Not yet implemented. (Qt v2+)
+Not yet implemented. (TQt v2+)
</Para>
<FuncSynopsis>
@@ -66,7 +66,7 @@ Not yet implemented. (Qt v2+)
<ParamDef>EncoderFn <Parameter>f</Parameter></ParamDef>
</FuncSynopsis>
<Para>
-Not yet implemented. (Qt v2+)
+Not yet implemented. (TQt v2+)
</Para>
<FuncSynopsis>
@@ -82,51 +82,51 @@ as a parameter.
%End
-class QFile : QIODevice
+class TQFile : TQIODevice
{
%TypeHeaderCode
#include <qfile.h>
%End
public:
- QFile();
-%If (- Qt_2_00)
- QFile(const char *);
+ TQFile();
+%If (- TQt_2_00)
+ TQFile(const char *);
%End
-%If (Qt_2_00 -)
- QFile(const QString &);
+%If (TQt_2_00 -)
+ TQFile(const TQString &);
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
const char *name() const;
void setName(const char *);
%End
-%If (Qt_2_00 -)
- QString name() const;
- void setName(const QString &);
+%If (TQt_2_00 -)
+ TQString name() const;
+ void setName(const TQString &);
%End
-%If (Qt_2_00 -)
- static QCString encodeName(const QString &);
- static QString decodeName(const QCString &);
+%If (TQt_2_00 -)
+ static TQCString encodeName(const TQString &);
+ static TQString decodeName(const TQCString &);
// static void setEncodingFunction(EncoderFn);
// static void setDecodingFunction(DecoderFn);
%End
bool exists() const;
-%If (- Qt_2_00)
+%If (- TQt_2_00)
static bool exists(const char *);
%End
-%If (Qt_2_00 -)
- static bool exists(const QString &);
+%If (TQt_2_00 -)
+ static bool exists(const TQString &);
%End
bool remove();
-%If (- Qt_2_00)
+%If (- TQt_2_00)
static bool remove(const char *);
%End
-%If (Qt_2_00 -)
- static bool remove(const QString &);
+%If (TQt_2_00 -)
+ static bool remove(const TQString &);
%End
bool open(int) /ReleaseGIL/;
@@ -135,19 +135,19 @@ public:
void close();
void flush() /ReleaseGIL/;
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
uint size() const;
int at() const;
bool at(int);
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
Offset size() const;
Offset at() const;
bool at(Offset);
%End
bool atEnd() const;
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
SIP_PYOBJECT readBlock(uint) /ReleaseGIL/ [int (char *,uint)];
%MethodCode
char *buf;
@@ -159,7 +159,7 @@ public:
int actlen;
Py_BEGIN_ALLOW_THREADS
- actlen = sipSelfWasArg ? sipCpp->QFile::readBlock(buf,a0) : sipCpp->readBlock(buf,a0);
+ actlen = sipSelfWasArg ? sipCpp->TQFile::readBlock(buf,a0) : sipCpp->readBlock(buf,a0);
Py_END_ALLOW_THREADS
if (actlen < 0)
@@ -176,7 +176,7 @@ public:
int writeBlock(const char * /Array/,uint /ArraySize/) /ReleaseGIL/;
%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;
@@ -188,7 +188,7 @@ public:
Q_LONG actlen;
Py_BEGIN_ALLOW_THREADS
- actlen = sipSelfWasArg ? sipCpp->QFile::readBlock(buf,a0) : sipCpp->readBlock(buf,a0);
+ actlen = sipSelfWasArg ? sipCpp->TQFile::readBlock(buf,a0) : sipCpp->readBlock(buf,a0);
Py_END_ALLOW_THREADS
if (actlen < 0)
@@ -207,14 +207,14 @@ public:
Q_LONG writeBlock(const char * /Array/,
Q_ULONG /ArraySize/) /ReleaseGIL/;
%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_3_0_0)
+%If (- TQt_3_0_0)
SIP_PYOBJECT readLine(uint) /ReleaseGIL/ [int (char *,uint)];
%MethodCode
char *buf;
@@ -226,7 +226,7 @@ public:
int actlen;
Py_BEGIN_ALLOW_THREADS
- actlen = sipSelfWasArg ? sipCpp->QFile::readLine(buf,a0) : sipCpp->readLine(buf,a0);
+ actlen = sipSelfWasArg ? sipCpp->TQFile::readLine(buf,a0) : sipCpp->readLine(buf,a0);
Py_END_ALLOW_THREADS
if (actlen < 0)
@@ -248,7 +248,7 @@ public:
}
%End
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
SIP_PYOBJECT readLine(Q_ULONG) /ReleaseGIL/ [Q_LONG (char *,Q_ULONG)];
%MethodCode
char *buf;
@@ -260,7 +260,7 @@ public:
Q_LONG actlen;
Py_BEGIN_ALLOW_THREADS
- actlen = sipSelfWasArg ? sipCpp->QFile::readLine(buf,a0) : sipCpp->readLine(buf,a0);
+ actlen = sipSelfWasArg ? sipCpp->TQFile::readLine(buf,a0) : sipCpp->readLine(buf,a0);
Py_END_ALLOW_THREADS
if (actlen < 0)
@@ -283,11 +283,11 @@ public:
%End
%End
-%If (Qt_2_00 - Qt_3_0_0)
- int readLine(QString &,uint) /ReleaseGIL/;
+%If (TQt_2_00 - TQt_3_0_0)
+ int readLine(TQString &,uint) /ReleaseGIL/;
%End
-%If (Qt_3_0_0 -)
- Q_LONG readLine(QString &,Q_ULONG) /ReleaseGIL/;
+%If (TQt_3_0_0 -)
+ Q_LONG readLine(TQString &,Q_ULONG) /ReleaseGIL/;
%End
int getch();
@@ -296,15 +296,15 @@ public:
int handle() const;
-%If (Qt_3_2_0 -)
- QString errorString() const;
+%If (TQt_3_2_0 -)
+ TQString errorString() const;
%End
protected:
-%If (Qt_3_2_0 -)
- void setErrorString(const QString &);
+%If (TQt_3_2_0 -)
+ void setErrorString(const TQString &);
%End
private:
- QFile(const QFile &);
+ TQFile(const TQFile &);
};