kopete/protocols/messenger/libpapillon
Papillon::HttpConnection Class Reference
#include <Papillon/Http/Connection>

Detailed Description
HTTP connection over SSL.
Definition at line 30 of file httpconnection.h.
Public Slots | |
| void | connectToServer (const QString &server) |
| void | disconnectFromServer () |
| virtual HttpTransfer * | read () |
| virtual void | write (HttpTransfer *transfer) |
Signals | |
| void | connected () |
| void | disconnected () |
| void | readyRead () |
Public Member Functions | |
| QString | cookie () const |
| HttpConnection (QObject *parent=0) | |
| void | setCookie (const QString &cookie) |
| ~HttpConnection () | |
Constructor & Destructor Documentation
| Papillon::HttpConnection::HttpConnection | ( | QObject * | parent = 0 |
) |
Create a new HttpConnection.
- Parameters:
-
parent QObject parent
Definition at line 48 of file httpconnection.cpp.
| Papillon::HttpConnection::~HttpConnection | ( | ) |
Member Function Documentation
| void Papillon::HttpConnection::connected | ( | ) | [signal] |
| void Papillon::HttpConnection::connectToServer | ( | const QString & | server | ) | [slot] |
Connect to a HTTP service.
- Parameters:
-
server Server address (DNS or IP address)
Definition at line 76 of file httpconnection.cpp.
| QString Papillon::HttpConnection::cookie | ( | ) | const |
Get the current cookie for the HTTP connection.
- Returns:
- the HTTP cookie
Definition at line 71 of file httpconnection.cpp.
| void Papillon::HttpConnection::disconnected | ( | ) | [signal] |
| void Papillon::HttpConnection::disconnectFromServer | ( | ) | [slot] |
| HttpTransfer * Papillon::HttpConnection::read | ( | ) | [virtual, slot] |
Read a new transfer from the connection.
You must delete yourself the resulting HttpTransfer. It is not managed by this class.
- Returns:
- a HttpTransfer or null(0) if no HttpTransfer available.
Definition at line 86 of file httpconnection.cpp.
| void Papillon::HttpConnection::readyRead | ( | ) | [signal] |
New data is ready to be proceeded.
| void Papillon::HttpConnection::setCookie | ( | const QString & | cookie | ) |
Set cookie for the HTTP connection.
Normally you set the cookie we have received rrom Hotmail profile message on the notification server.
Definition at line 66 of file httpconnection.cpp.
| void Papillon::HttpConnection::write | ( | HttpTransfer * | transfer | ) | [virtual, slot] |
Write a new transter on the connection.
HttpTransfer is managed by this class so you don't need to delete it yourself.
- Parameters:
-
transfer HttpTransfer
Definition at line 94 of file httpconnection.cpp.
The documentation for this class was generated from the following files:
KDE 4.2 API Reference