• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • kdenetwork
  • Sitemap
  • Contact Us
 

kopete/protocols/messenger/libpapillon

Papillon::HttpConnection

Papillon::HttpConnection Class Reference

#include <Papillon/Http/Connection>

Inheritance diagram for Papillon::HttpConnection:

Inheritance graph
[legend]

List of all members.


Detailed Description

HTTP connection over SSL.

Author:
Michaƫl Larouche <larouche@kde.org>

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

 HttpConnection (QObject *parent=0)
 ~HttpConnection ()
void setCookie (const QString &cookie)
QString cookie () const

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 (  ) 

Destructor.

Definition at line 61 of file httpconnection.cpp.


Member Function Documentation

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.

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::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.

void Papillon::HttpConnection::disconnectFromServer (  )  [slot]

Close HTTP connection.

Definition at line 81 of file httpconnection.cpp.

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::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.

void Papillon::HttpConnection::connected (  )  [signal]

void Papillon::HttpConnection::disconnected (  )  [signal]

void Papillon::HttpConnection::readyRead (  )  [signal]

New data is ready to be proceeded.


The documentation for this class was generated from the following files:
  • httpconnection.h
  • httpconnection.cpp

kopete/protocols/messenger/libpapillon

Skip menu "kopete/protocols/messenger/libpapillon"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdenetwork

Skip menu "kdenetwork"
  • kget
  • kopete
  •   kopete
  •   libkopete
  •       libpapillon
  • krfb
Generated for kdenetwork by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal