/*************************************************************************** giftSocket.h - subclass of QSocket for reading GiFT streams from a socket ------------------- begin : Sun August 3 2003 copyright : (C) 2003 by Arend van Beelen jr. email : arend@auton.nl ***************************************************************************/ /*************************************************************************** * * * This program 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 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ /*************************************************************************** * for KMLDonkey with permission from Arend van Beelen jr. - thanks Arend :-) * cvs from 2003/12/10 ***************************************************************************/ #ifndef __libkmldonkey_giftsocket_h__ #define __libkmldonkey_giftsocket_h__ #include #include #include class giFTSocket : public QSocket { Q_OBJECT public: giFTSocket(QObject *parent = 0, const char *name = 0); bool canReadCommandBlock(); QString readCommandBlock(); virtual Q_LONG writeBlock(QString data, Q_ULONG len); private: QTextCodec *codec; signals: public slots: }; #endif