KVIrc
4.9.2
DeveloperAPIs
|
#include <Service.h>
Signals | |
void | queryFinished (bool error) |
Public Member Functions | |
int | getPendingRequests () const |
Service (const QString &hostname, int port, const QString &informationUrl) | |
Service (const ServiceParameters ¶ms) | |
virtual | ~Service () |
Protected Member Functions | |
int | callAction (const QString &actionName, const QString &prefix) |
int | callAction (const QString &actionName, const QMap< QString, QString > &arguments, const QString &prefix) |
int | callInformationUrl () |
virtual void | gotActionErrorResponse (const QDomNode &response) |
virtual void | gotActionResponse (const QString &responseType, const QMap< QString, QString > &resultValues) |
virtual void | gotInformationResponse (const QDomNode &response) |
Private Slots | |
void | slotRequestFinished () |
Private Member Functions | |
int | callActionInternal (const QString &actionName, const QMap< QString, QString > *arguments, const QString &prefix) |
Private Attributes | |
int | m_iPendingRequests |
int | m_iPort |
QString | m_szBaseXmlPrefix |
QString | m_szControlUrl |
QString | m_szHostname |
QString | m_szInformationUrl |
QString | m_szServiceId |
QString | m_szServiceType |
This base class to implement calls to a UPnP-enabled device. In UPnP terminology, a client is called a Control Point, and a service is a UPnP device.
This class different kind of calls. An information request queries the service for data with a HTTP GET. An action request issues a HTTP POST call to the given service.
UPnP::Service::Service | ( | const QString & | hostname, |
int | port, | ||
const QString & | informationUrl | ||
) |
References m_szInformationUrl.
UPnP::Service::Service | ( | const ServiceParameters & | params | ) |
References m_szControlUrl, and m_szServiceId.
|
virtual |
References m_szControlUrl, and m_szServiceId.
|
protected |
|
protected |
References callActionInternal().
|
private |
References connect(), KviNetworkAccessManager::getInstance(), m_iPendingRequests, m_iPort, m_szBaseXmlPrefix, m_szHostname, m_szServiceType, and slotRequestFinished().
Referenced by callAction().
|
protected |
References connect(), KviNetworkAccessManager::getInstance(), m_iPendingRequests, m_iPort, m_szHostname, m_szInformationUrl, and slotRequestFinished().
Referenced by UPnP::RootService::queryDevice().
int UPnP::Service::getPendingRequests | ( | ) | const |
References m_iPendingRequests.
|
protectedvirtual |
References XmlFunctions::getNodeValue().
Referenced by slotRequestFinished().
|
protectedvirtual |
Reimplemented in UPnP::WanConnectionService.
Referenced by slotRequestFinished().
|
protectedvirtual |
Reimplemented in UPnP::RootService.
Referenced by slotRequestFinished().
|
signal |
Referenced by slotRequestFinished().
|
privateslot |
References XmlFunctions::getNode(), gotActionErrorResponse(), gotActionResponse(), gotInformationResponse(), i, m_iPendingRequests, m_szBaseXmlPrefix, and queryFinished().
Referenced by callActionInternal(), and callInformationUrl().
|
private |
Referenced by callActionInternal(), callInformationUrl(), getPendingRequests(), and slotRequestFinished().
|
private |
Referenced by callActionInternal(), and callInformationUrl().
|
private |
Referenced by callActionInternal(), and slotRequestFinished().
|
private |
Referenced by Service(), and ~Service().
|
private |
Referenced by callActionInternal(), and callInformationUrl().
|
private |
Referenced by callInformationUrl(), and Service().
|
private |
Referenced by Service(), and ~Service().
|
private |
Referenced by callActionInternal().