All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Signals | Public Member Functions
QGpGuiTools::HttpAccess Class Reference

Brief description of class still missing. More...

#include <HttpAccess.h>

List of all members.

Signals

void finished (bool ok)
void ready ()

Public Member Functions

void get (const QUrl &url)
 HttpAccess (const QString &testUrl, QObject *parent=0)
bool isReady () const
void post (const QUrl &url, const QByteArray &data)
const QByteArray & receivedData () const
 ~HttpAccess ()

Detailed Description

Brief description of class still missing.

Full description of class still missing


Constructor & Destructor Documentation

QGpGuiTools::HttpAccess::HttpAccess ( const QString &  testUrl,
QObject *  parent = 0 
)

Description of constructor still missing

References QGpGuiTools::HttpProxyList::collect(), ready(), and TRACE.

    : QObject(parent)
  {
    TRACE;
    _proxy=0;
    _proxies=new HttpProxyList(testUrl, this);
    connect(_proxies, SIGNAL(ready()), this, SLOT(testProxies()));
    _proxies->collect();
  }

Description of destructor still missing

References TRACE.

  {
    TRACE;
    delete _proxy;
  }

Member Function Documentation

void QGpGuiTools::HttpAccess::finished ( bool  ok) [signal]

Referenced by get(), and post().

void QGpGuiTools::HttpAccess::get ( const QUrl &  url)

References finished(), and TRACE.

  {
    TRACE;
    QNetworkAccessManager * manager=new QNetworkAccessManager(this);
    if(_proxy) {
      manager->setProxy(*_proxy);
    }
    QNetworkReply * reply=manager->get(QNetworkRequest(url));
    connect(reply, SIGNAL(finished()), this, SLOT(requestFinished()));
  }
bool QGpGuiTools::HttpAccess::isReady ( ) const [inline]
{return _proxy;}
void QGpGuiTools::HttpAccess::post ( const QUrl &  url,
const QByteArray &  data 
)

References finished(), and TRACE.

  {
    TRACE;
    QNetworkAccessManager * manager=new QNetworkAccessManager(this);
    if(_proxy) {
      manager->setProxy(*_proxy);
    }
    QNetworkReply * reply=manager->post(QNetworkRequest(url), data);
    connect(reply, SIGNAL(finished()), this, SLOT(requestFinished()));
  }
void QGpGuiTools::HttpAccess::ready ( ) [signal]

Referenced by HttpAccess().

const QByteArray& QGpGuiTools::HttpAccess::receivedData ( ) const [inline]
{return _receivedData;}

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines