summaryrefslogtreecommitdiffstats
path: root/sip/qt/qfile.sip
diff options
context:
space:
mode:
Diffstat (limited to 'sip/qt/qfile.sip')
-rw-r--r--sip/qt/qfile.sip111
1 files changed, 0 insertions, 111 deletions
diff --git a/sip/qt/qfile.sip b/sip/qt/qfile.sip
index 38d91c3..c89e824 100644
--- a/sip/qt/qfile.sip
+++ b/sip/qt/qfile.sip
@@ -90,44 +90,21 @@ class TQFile : TQIODevice
public:
TQFile();
-%If (- TQt_2_00)
- TQFile(const char *);
-%End
-%If (TQt_2_00 -)
TQFile(const TQString &);
-%End
-%If (- TQt_2_00)
- const char *name() const;
- void setName(const char *);
-%End
-%If (TQt_2_00 -)
TQString name() const;
void setName(const TQString &);
-%End
-%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 (- TQt_2_00)
- static bool exists(const char *);
-%End
-%If (TQt_2_00 -)
static bool exists(const TQString &);
-%End
bool remove();
-%If (- TQt_2_00)
- static bool remove(const char *);
-%End
-%If (TQt_2_00 -)
static bool remove(const TQString &);
-%End
bool open(int) /ReleaseGIL/;
// bool open(int,FILE *) /ReleaseGIL/;
@@ -135,48 +112,11 @@ 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;
-%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->TQFile::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/;
-%End
-%If (TQt_3_0_0 -)
SIP_PYOBJECT readBlock(TQ_ULONG) /ReleaseGIL/ [TQ_LONG (char *,TQ_ULONG)];
%MethodCode
char *buf;
@@ -206,49 +146,8 @@ public:
TQ_LONG writeBlock(const char * /Array/,
TQ_ULONG /ArraySize/) /ReleaseGIL/;
-%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_3_0_0)
- 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->TQFile::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
-%End
-%If (TQt_3_0_0 -)
SIP_PYOBJECT readLine(TQ_ULONG) /ReleaseGIL/ [TQ_LONG (char *,TQ_ULONG)];
%MethodCode
char *buf;
@@ -281,14 +180,8 @@ public:
}
}
%End
-%End
-%If (TQt_2_00 - TQt_3_0_0)
- int readLine(TQString &,uint) /ReleaseGIL/;
-%End
-%If (TQt_3_0_0 -)
TQ_LONG readLine(TQString &,TQ_ULONG) /ReleaseGIL/;
-%End
int getch();
int putch(int);
@@ -296,14 +189,10 @@ public:
int handle() const;
-%If (TQt_3_2_0 -)
TQString errorString() const;
-%End
protected:
-%If (TQt_3_2_0 -)
void setErrorString(const TQString &);
-%End
private:
TQFile(const TQFile &);