author | spiralman <spiralman> | 2002-08-03 03:25:31 (UTC) |
---|---|---|
committer | spiralman <spiralman> | 2002-08-03 03:25:31 (UTC) |
commit | 7d4b246bc728b73e9d38e110619222dd89c1fd1c (patch) (side-by-side diff) | |
tree | 7e6fbb8bbb106967993fa786a917fccde43970f3 /noncore/net/ubrowser/httpcomm.h | |
parent | 4005263f7c64a631f4df9aeece83321ba818160d (diff) | |
download | opie-7d4b246bc728b73e9d38e110619222dd89c1fd1c.zip opie-7d4b246bc728b73e9d38e110619222dd89c1fd1c.tar.gz opie-7d4b246bc728b73e9d38e110619222dd89c1fd1c.tar.bz2 |
fixed relative links (except from forward and back buttons), added initial image code (not working), changes to chunked encoding (still not working, might be a qsocket issue)
Diffstat (limited to 'noncore/net/ubrowser/httpcomm.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/ubrowser/httpcomm.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/noncore/net/ubrowser/httpcomm.h b/noncore/net/ubrowser/httpcomm.h index c20fe72..d6f63fc 100644 --- a/noncore/net/ubrowser/httpcomm.h +++ b/noncore/net/ubrowser/httpcomm.h @@ -11,47 +11,51 @@ implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include <qobject.h> #include <qstring.h> #include <qsocket.h> #include <qstringlist.h> #include <qdragobject.h> #include <qtextbrowser.h> +#include <qcstring.h> +#include <qimage.h> #include <stdio.h> class HttpComm : public QObject { Q_OBJECT public: HttpComm(QSocket *newSocket, QTextBrowser *newBrowser); void setUp(QString *newName); - void setStuff(QString newHost, QString newPortS, QString newFile, QTextDrag *newText); + void setStuff(QString newHost, QString newPortS, QString newFile, QTextDrag *newText, QImageDrag *newImage, bool newIsImage); void parseHeader(); void processBody(); public slots: void hostFound(); void connected(); void connectionClosed(); void incoming(); private: QString *name; QSocket *socket; QString host; QString portS; QString file; bool headerRead; QString header; QString body; unsigned int length; unsigned int bRead; QTextDrag *text; + QImageDrag *image; QTextBrowser *browser; bool chunked; bool lengthset; unsigned int clength; int status; + bool isImage; }; |