GeoIpResponse Class Reference

#include <geoipresponse.h>

List of all members.

Public Member Functions

 GeoIpResponse (QByteArray response)
int statusCode ()
QString statusMessage ()
QList< GeoIpgeoIps ()

Private Attributes

QHttpResponseHeader _header
QList< GeoIp_geoips


Detailed Description

Definition at line 38 of file geoipresponse.h.


Constructor & Destructor Documentation

GeoIpResponse::GeoIpResponse ( QByteArray  response  ) 

Constructor. Parses the response data for an HTTP header and Geo IP information.

Definition at line 36 of file geoipresponse.cpp.

References _geoips, _header, GeoIp::fromString(), HTTP_OK, and GeoIp::isEmpty().


Member Function Documentation

int GeoIpResponse::statusCode (  )  [inline]

Returns the HTTP status code for this response.

Definition at line 46 of file geoipresponse.h.

References _header.

Referenced by GeoIpResolver::disconnected().

QString GeoIpResponse::statusMessage (  )  [inline]

Returns the HTTP status message for this response.

Definition at line 48 of file geoipresponse.h.

References _header.

Referenced by GeoIpResolver::disconnected().

QList<GeoIp> GeoIpResponse::geoIps (  )  [inline]

Returns the Geo IP information contained in this response.

Definition at line 50 of file geoipresponse.h.

References _geoips.

Referenced by GeoIpResolver::disconnected().


Member Data Documentation

QHttpResponseHeader GeoIpResponse::_header [private]

HTTP response header.

Definition at line 53 of file geoipresponse.h.

Referenced by GeoIpResponse(), statusCode(), and statusMessage().

QList<GeoIp> GeoIpResponse::_geoips [private]

Geo IP information in this response.

Definition at line 54 of file geoipresponse.h.

Referenced by GeoIpResponse(), and geoIps().


The documentation for this class was generated from the following files:
Generated on Mon Oct 23 20:08:16 2006 for Vidalia by  doxygen 1.5.0