2011-01-15 01:55:45 +01:00
|
|
|
class NetworkAccessManager : QNetworkAccessManager {
|
|
|
|
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include "core/network.h"
|
|
|
|
%End
|
|
|
|
|
2011-02-27 18:16:22 +01:00
|
|
|
%Docstring
|
|
|
|
A Qt network access manager that should be used to create all network requests
|
|
|
|
in Clementine.
|
|
|
|
|
|
|
|
Differences from the normal QNetworkAccessManager:
|
|
|
|
|
|
|
|
- Sends a Clementine C{User-Agent} HTTP header.
|
|
|
|
- Uses a thread-safe disk cache in Clementine's user config directory.
|
|
|
|
- Honors the proxy set by the user in the settings dialog.
|
|
|
|
%End
|
|
|
|
|
2011-01-15 01:55:45 +01:00
|
|
|
public:
|
|
|
|
NetworkAccessManager(QObject* parent /TransferThis/ = 0);
|
|
|
|
};
|