Diffstat (limited to 'noncore/net/ubrowser/httpfactory.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/ubrowser/httpfactory.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/noncore/net/ubrowser/httpfactory.h b/noncore/net/ubrowser/httpfactory.h index 1802f56..214120c 100644 --- a/noncore/net/ubrowser/httpfactory.h +++ b/noncore/net/ubrowser/httpfactory.h | |||
@@ -15,13 +15,21 @@ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |||
15 | */ | 15 | */ |
16 | 16 | ||
17 | #include <qmime.h> | 17 | #include <qmime.h> |
18 | #include <qsocket.h> | 18 | //#include <qsocket.h> |
19 | #include <qstring.h> | 19 | #include <qstring.h> |
20 | #include <qdragobject.h> | 20 | #include <qdragobject.h> |
21 | #include <qtextbrowser.h> | 21 | #include <qtextbrowser.h> |
22 | #include <qmessagebox.h> | ||
22 | 23 | ||
23 | #include <stdio.h> | 24 | #include <stdio.h> |
24 | 25 | ||
26 | #include <sys/types.h> | ||
27 | #include <sys/socket.h> | ||
28 | #include <unistd.h> | ||
29 | #include <netinet/in.h> | ||
30 | #include <netdb.h> | ||
31 | #include <arpa/inet.h> | ||
32 | |||
25 | #include "httpcomm.h" | 33 | #include "httpcomm.h" |
26 | 34 | ||
27 | class HttpFactory : public QMimeSourceFactory | 35 | class HttpFactory : public QMimeSourceFactory |
@@ -31,9 +39,13 @@ public: | |||
31 | const QMimeSource * data(const QString &abs_name) const; | 39 | const QMimeSource * data(const QString &abs_name) const; |
32 | const QMimeSource * data(const QString &abs_or_rel_name, const QString & context) const; | 40 | const QMimeSource * data(const QString &abs_or_rel_name, const QString & context) const; |
33 | private: | 41 | private: |
34 | QSocket *socket; | 42 | //QSocket *socket; |
35 | HttpComm *comm; | 43 | HttpComm *comm; |
36 | QTextDrag *text; | 44 | QTextDrag *text; |
37 | QImageDrag *image; | 45 | QImageDrag *image; |
38 | QTextBrowser *browser; | 46 | QTextBrowser *browser; |
47 | |||
48 | const QByteArray processResponse( int sockfd, bool &isText) const; | ||
49 | const QByteArray recieveNormal( int sockfd, int dataLen ) const; | ||
50 | const QByteArray recieveChunked( int sockfd ) const; | ||
39 | }; | 51 | }; |