From 8a055d66f43592c257cece2eb8cc021808062917 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Tue, 29 Nov 2011 01:11:08 -0600 Subject: Initial TQt conversion --- sip/qt/qnetworkprotocol.sip | 136 ++++++++++++++++++++++---------------------- 1 file changed, 68 insertions(+), 68 deletions(-) (limited to 'sip/qt/qnetworkprotocol.sip') diff --git a/sip/qt/qnetworkprotocol.sip b/sip/qt/qnetworkprotocol.sip index 6af512b..deee868 100644 --- a/sip/qt/qnetworkprotocol.sip +++ b/sip/qt/qnetworkprotocol.sip @@ -1,63 +1,63 @@ -// This is the SIP interface definition for QNetworkOperation, QNetworkProtocol -// and QNetworkProtocolFactoryBase. +// This is the SIP interface definition for TQNetworkOperation, TQNetworkProtocol +// and TQNetworkProtocolFactoryBase. // // Copyright (c) 2007 // Riverbank Computing Limited // -// 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 -QNetworkOperation (Qt v2.1+) +TQNetworkOperation (TQt v2.1+) -QNetworkOperation is fully implemented. +TQNetworkOperation is fully implemented. -QNetworkProtocol (Qt v2.1+) +TQNetworkProtocol (TQt v2.1+) -QNetworkProtocol is fully implemented. +TQNetworkProtocol is fully implemented. -QNetworkProtocolFactoryBase (Qt v2.1+) +TQNetworkProtocolFactoryBase (TQt v2.1+) -QNetworkProtocolFactoryBase is fully implemented. +TQNetworkProtocolFactoryBase is fully implemented. %End -%If (Qt_NETWORKPROTOCOL) -%If (Qt_2_1_0 -) +%If (TQt_NETWORKPROTOCOL) +%If (TQt_2_1_0 -) -class QNetworkProtocolFactoryBase +class TQNetworkProtocolFactoryBase { %TypeHeaderCode #include %End public: - virtual QNetworkProtocol *createObject() = 0 /Factory/; + virtual TQNetworkProtocol *createObject() = 0 /Factory/; }; -class QNetworkProtocol : QObject +class TQNetworkProtocol : TQObject { %TypeHeaderCode #include @@ -72,7 +72,7 @@ public: StStopped }; -%If (- Qt_3_0_0) +%If (- TQt_3_0_0) enum Operation { OpListChildren, OpMkdir, @@ -82,7 +82,7 @@ public: OpPut }; %End -%If (Qt_3_0_0 -) +%If (TQt_3_0_0 -) enum Operation { OpListChildren, OpMkDir, @@ -99,7 +99,7 @@ public: ConClosed }; -%If (- Qt_3_0_0) +%If (- TQt_3_0_0) enum Error { NoError, ErrValid, @@ -118,7 +118,7 @@ public: ErrPermissionDenied }; %End -%If (Qt_3_0_0 -) +%If (TQt_3_0_0 -) enum Error { NoError, ErrValid, @@ -138,88 +138,88 @@ public: }; %End - QNetworkProtocol(); + TQNetworkProtocol(); - virtual void setUrl(QUrlOperator *); + virtual void setUrl(TQUrlOperator *); virtual void setAutoDelete(bool,int = 10000); bool autoDelete() const; - static void registerNetworkProtocol(const QString &, - QNetworkProtocolFactoryBase *); - static QNetworkProtocol *getNetworkProtocol(const QString &) /Factory/; + static void registerNetworkProtocol(const TQString &, + TQNetworkProtocolFactoryBase *); + static TQNetworkProtocol *getNetworkProtocol(const TQString &) /Factory/; static bool hasOnlyLocalFileSystem(); virtual int supportedOperations() const; - virtual void addOperation(QNetworkOperation *); + virtual void addOperation(TQNetworkOperation *); - QUrlOperator *url() const; - QNetworkOperation *operationInProgress() const; + TQUrlOperator *url() const; + TQNetworkOperation *operationInProgress() const; virtual void clearOperationQueue(); virtual void stop(); signals: - void data(const QByteArray &,QNetworkOperation *); - void connectionStateChanged(int,const QString &); - void finished(QNetworkOperation *); - void start(QNetworkOperation *); - void newChildren(const QValueList &,QNetworkOperation *); - void newChild(const QUrlInfo &,QNetworkOperation *); - void createdDirectory(const QUrlInfo &,QNetworkOperation *); - void removed(QNetworkOperation *); - void itemChanged(QNetworkOperation *); - void dataTransferProgress(int,int,QNetworkOperation *); + void data(const TQByteArray &,TQNetworkOperation *); + void connectionStateChanged(int,const TQString &); + void finished(TQNetworkOperation *); + void start(TQNetworkOperation *); + void newChildren(const TQValueList &,TQNetworkOperation *); + void newChild(const TQUrlInfo &,TQNetworkOperation *); + void createdDirectory(const TQUrlInfo &,TQNetworkOperation *); + void removed(TQNetworkOperation *); + void itemChanged(TQNetworkOperation *); + void dataTransferProgress(int,int,TQNetworkOperation *); protected: - virtual void processOperation(QNetworkOperation *); - virtual void operationListChildren(QNetworkOperation *); - virtual void operationMkDir(QNetworkOperation *); - virtual void operationRemove(QNetworkOperation *); - virtual void operationRename(QNetworkOperation *); - virtual void operationGet(QNetworkOperation *); - virtual void operationPut(QNetworkOperation *); -%If (Qt_3_0_0 -) - virtual void operationPutChunk(QNetworkOperation *); + virtual void processOperation(TQNetworkOperation *); + virtual void operationListChildren(TQNetworkOperation *); + virtual void operationMkDir(TQNetworkOperation *); + virtual void operationRemove(TQNetworkOperation *); + virtual void operationRename(TQNetworkOperation *); + virtual void operationGet(TQNetworkOperation *); + virtual void operationPut(TQNetworkOperation *); +%If (TQt_3_0_0 -) + virtual void operationPutChunk(TQNetworkOperation *); %End - virtual bool checkConnection(QNetworkOperation *); + virtual bool checkConnection(TQNetworkOperation *); private: -%If (Qt_3_1_0 -) - QNetworkProtocol(const QNetworkProtocol &); +%If (TQt_3_1_0 -) + TQNetworkProtocol(const TQNetworkProtocol &); %End }; -class QNetworkOperation : QObject +class TQNetworkOperation : TQObject { %TypeHeaderCode #include %End public: - QNetworkOperation(QNetworkProtocol::Operation,const QString &, - const QString &,const QString &); - QNetworkOperation(QNetworkProtocol::Operation,const QByteArray &, - const QByteArray &,const QByteArray &); + TQNetworkOperation(TQNetworkProtocol::Operation,const TQString &, + const TQString &,const TQString &); + TQNetworkOperation(TQNetworkProtocol::Operation,const TQByteArray &, + const TQByteArray &,const TQByteArray &); - void setState(QNetworkProtocol::State); - void setProtocolDetail(const QString &); + void setState(TQNetworkProtocol::State); + void setProtocolDetail(const TQString &); void setErrorCode(int); - void setArg(int,const QString &); - void setRawArg(int,const QByteArray &); - - QNetworkProtocol::Operation operation() const; - QNetworkProtocol::State state() const; - QString arg(int) const; - QByteArray rawArg(int) const; - QString protocolDetail() const; + void setArg(int,const TQString &); + void setRawArg(int,const TQByteArray &); + + TQNetworkProtocol::Operation operation() const; + TQNetworkProtocol::State state() const; + TQString arg(int) const; + TQByteArray rawArg(int) const; + TQString protocolDetail() const; int errorCode() const; void free(); private: -%If (Qt_3_1_0 -) - QNetworkOperation(const QNetworkOperation &); +%If (TQt_3_1_0 -) + TQNetworkOperation(const TQNetworkOperation &); %End }; -- cgit v1.2.3