diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-11-29 01:11:08 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-11-29 01:11:08 -0600 |
commit | 8a055d66f43592c257cece2eb8cc021808062917 (patch) | |
tree | d0922f201bd5d24b62a33160d1d9baf9e89f9a70 /sip/qt/qbytearray.sip | |
parent | b388516ca2691303a076a0764fd40bf7116fe43d (diff) | |
download | pytqt-8a055d66f43592c257cece2eb8cc021808062917.tar.gz pytqt-8a055d66f43592c257cece2eb8cc021808062917.zip |
Initial TQt conversion
Diffstat (limited to 'sip/qt/qbytearray.sip')
-rw-r--r-- | sip/qt/qbytearray.sip | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/sip/qt/qbytearray.sip b/sip/qt/qbytearray.sip index fa992ec..5b4fd7e 100644 --- a/sip/qt/qbytearray.sip +++ b/sip/qt/qbytearray.sip @@ -1,35 +1,35 @@ -// This is the SIP interface definition for QByteArray. +// This is the SIP interface definition for TQByteArray. // // 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>QByteArray</Title> +<Sect2><Title>TQByteArray</Title> <Para> -A Python string can be used whenever a <Literal>QByteArray</Literal> can be -used. A <Literal>QByteArray</Literal> can be converted to a Python string +A Python string can be used whenever a <Literal>TQByteArray</Literal> can be +used. A <Literal>TQByteArray</Literal> can be converted to a Python string using the Python <Literal>str()</Literal> function. </Para> <FuncSynopsis> - <FuncDef>QByteArray &<Function>assign</Function></FuncDef> + <FuncDef>TQByteArray &<Function>assign</Function></FuncDef> <ParamDef>const char *<Parameter>data</Parameter></ParamDef> <ParamDef>uint <Parameter>size</Parameter></ParamDef> </FuncSynopsis> @@ -81,7 +81,7 @@ Not implemented. </Para> <FuncSynopsis> - <FuncDef>QByteArray &<Function>setRawData</Function></FuncDef> + <FuncDef>TQByteArray &<Function>setRawData</Function></FuncDef> <ParamDef>const char *<Parameter>data</Parameter></ParamDef> <ParamDef>uint<Parameter>size</Parameter></ParamDef> </FuncSynopsis> @@ -92,20 +92,20 @@ Not implemented. %End -class QByteArray +class TQByteArray { %TypeHeaderCode #include <qstring.h> %End public: - QByteArray(); - QByteArray(int); - QByteArray(const QByteArray &); + TQByteArray(); + TQByteArray(int); + TQByteArray(const TQByteArray &); SIP_PYOBJECT data() const; %MethodCode - // QByteArrays aren't '\0' terminated so set the size + // TQByteArrays aren't '\0' terminated so set the size // explicitly. char *res; @@ -128,7 +128,7 @@ public: } %End - // These are actually in QMemArray, which isn't implemented so pretend + // These are actually in TQMemArray, which isn't implemented so pretend // they are here. uint nrefs() const; @@ -138,12 +138,12 @@ public: bool truncate(uint); // bool fill(const char &,int = -1); void detach(); - QByteArray copy() const; - QByteArray &assign(const QByteArray &); -// QByteArray &assign(const char *,uint); - QByteArray &duplicate(const QByteArray &); - QByteArray &duplicate(const char *,uint); -// QByteArray &setRawData(const char *,uint); + TQByteArray copy() const; + TQByteArray &assign(const TQByteArray &); +// TQByteArray &assign(const char *,uint); + TQByteArray &duplicate(const TQByteArray &); + TQByteArray &duplicate(const char *,uint); +// TQByteArray &setRawData(const char *,uint); // void resetRawData(const char *,uint); // int find(const char &,uint = 0) const; // int contains(const char &) const; @@ -151,7 +151,7 @@ public: SIP_PYOBJECT __str__(); %MethodCode - // QByteArrays aren't '\0' terminated so set the size + // TQByteArrays aren't '\0' terminated so set the size // explicitly. char *data; @@ -169,7 +169,7 @@ public: %End %ConvertToTypeCode - // Allow a Python string whenever a QByteArray is expected. + // Allow a Python string whenever a TQByteArray is expected. if (sipIsErr == NULL) return (PyString_Check(sipPy) || @@ -178,7 +178,7 @@ public: if (PyString_Check(sipPy)) { Py_BEGIN_ALLOW_THREADS - QByteArray *ba = new QByteArray(); + TQByteArray *ba = new TQByteArray(); ba -> duplicate(PyString_AS_STRING(sipPy),PyString_GET_SIZE(sipPy)); @@ -188,16 +188,16 @@ public: return sipGetState(sipTransferObj); } - *sipCppPtr = reinterpret_cast<QByteArray *>(sipConvertToInstance(sipPy,sipClass_QByteArray,sipTransferObj,SIP_NO_CONVERTORS,0,sipIsErr)); + *sipCppPtr = reinterpret_cast<TQByteArray *>(sipConvertToInstance(sipPy,sipClass_QByteArray,sipTransferObj,SIP_NO_CONVERTORS,0,sipIsErr)); return 0; %End }; -%If (Qt_3_1_0 -) -QByteArray qCompress(const uchar * /Array/,int /ArraySize/); -QByteArray qCompress(const QByteArray &); -QByteArray qUncompress(const uchar * /Array/,int /ArraySize/); -QByteArray qUncompress(const QByteArray &); +%If (TQt_3_1_0 -) +TQByteArray qCompress(const uchar * /Array/,int /ArraySize/); +TQByteArray qCompress(const TQByteArray &); +TQByteArray qUncompress(const uchar * /Array/,int /ArraySize/); +TQByteArray qUncompress(const TQByteArray &); %End |