-rw-r--r-- | core/qws/transferserver.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/core/qws/transferserver.h b/core/qws/transferserver.h index 1c5ab4b..82dae40 100644 --- a/core/qws/transferserver.h +++ b/core/qws/transferserver.h @@ -11,33 +11,34 @@ ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. ** ** See http://www.trolltech.com/gpl/ for GPL licensing information. ** ** Contact info@trolltech.com if any conditions of this licensing are ** not clear to you. ** **********************************************************************/ #include <qserversocket.h> #include <qsocket.h> #include <qdir.h> #include <qfile.h> #include <qbuffer.h> class QFileInfo; -class OProcess; +namespace Opie { namespace Core { class OProcess; } } + class TransferServer : public QServerSocket { Q_OBJECT public: TransferServer( Q_UINT16 port, QObject *parent = 0, const char* name = 0 ); virtual ~TransferServer(); void newConnection( int socket ); }; class SyncAuthentication : QObject { Q_OBJECT public: @@ -79,49 +80,49 @@ public: Mode dtpMode() { return mode; } QByteArray buffer() { return buf.buffer(); } QString fileName() const { return file.name(); } void setSocket( int socket ); signals: void completed(); void failed(); private slots: void connectionClosed(); void connected(); void bytesWritten( int bytes ); void readyRead(); - void writeTargzBlock(OProcess *, char *, int); + void writeTargzBlock(Opie::Core::OProcess *, char *, int); void targzDone(); - void gzipTarBlock(OProcess *, char *, int); - void tarExtractBlock(OProcess *, char *, int); + void gzipTarBlock(Opie::Core::OProcess *, char *, int); + void tarExtractBlock(Opie::Core::OProcess *, char *, int); void gunzipDone(); void extractTarDone(); private: unsigned long bytes_written; Mode mode; QFile file; QBuffer buf; - OProcess *createTargzProc; - OProcess *retrieveTargzProc; - OProcess *gzipProc; + Opie::Core::OProcess *createTargzProc; + Opie::Core::OProcess *retrieveTargzProc; + Opie::Core::OProcess *gzipProc; }; class ServerSocket : public QServerSocket { Q_OBJECT public: ServerSocket( Q_UINT16 port, QObject *parent = 0, const char* name = 0 ) : QServerSocket( port, 1, parent, name ) {} void newConnection( int socket ) { emit newIncomming( socket ); } signals: void newIncomming( int socket ); }; class ServerPI : public QSocket |