kopete/protocols/messenger/libpapillon
httpconnection.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef HTTPCONNECTION_H
00016 #define HTTPCONNECTION_H
00017
00018 #include <QtCore/QObject>
00019 #include <Papillon/Macros>
00020
00021 namespace Papillon
00022 {
00023
00024 class HttpTransfer;
00030 class PAPILLON_EXPORT HttpConnection : public QObject
00031 {
00032 Q_OBJECT
00033 public:
00038 HttpConnection(QObject *parent = 0);
00042 ~HttpConnection();
00043
00050 void setCookie(const QString &cookie);
00051
00056 QString cookie() const;
00057
00058 public slots:
00063 void connectToServer(const QString &server);
00067 void disconnectFromServer();
00068
00077 virtual HttpTransfer *read();
00078
00086 virtual void write(HttpTransfer *transfer);
00087
00088 signals:
00089 void connected();
00090 void disconnected();
00094 void readyRead();
00095
00096 private slots:
00097 void streamReadyRead();
00098
00099 void protocolOutgoingData(const QByteArray &data);
00100 void protocolIncomingData();
00101
00102 private:
00103 class Private;
00104 Private *d;
00105 };
00106
00107 }
00108
00109 #endif