|
LibEngsas
|
Provides a easier way to manipulate the User-Agent string. More...
#include <enetworkaccessmanager.h>
Inheritance diagram for ENetworkAccessManager:
Collaboration diagram for ENetworkAccessManager:Public Member Functions | |
| ENetworkAccessManager (QObject *parent=0) | |
| QNetworkReply * | get (QNetworkRequest &request, QString appName=QString(), QString version=QString()) |
| Overload of QNetworkAccessManager::get() to manipulate the User-Agent. More... | |
| QNetworkReply * | post (QNetworkRequest &request, const QByteArray &data, QString appName=QString(), QString version=QString()) |
| See get(). More... | |
Provides a easier way to manipulate the User-Agent string.
This is useful to monitor the actions on your webserver.
|
inline |
| QNetworkReply * ENetworkAccessManager::get | ( | QNetworkRequest & | request, |
| QString | appName = QString(), |
||
| QString | version = QString() |
||
| ) |
Overload of QNetworkAccessManager::get() to manipulate the User-Agent.
It changes the User-Agent to ApplicationName-Version. If appName is empty, QApplication::applicationName() is used. If version is also empty, QApplication::applicationVersion() is appended to the application name.
Here is the caller graph for this function:| QNetworkReply * ENetworkAccessManager::post | ( | QNetworkRequest & | request, |
| const QByteArray & | data, | ||
| QString | appName = QString(), |
||
| QString | version = QString() |
||
| ) |
See get().
1.8.8