21 #include <QNetworkAccessManager> 25 #include <tulip/tulipconf.h> 29 class TLP_QT_SCOPE DownloadManager:
public QNetworkAccessManager {
31 QList<QNetworkReply *> currentDownloads;
32 QMap<QUrl, QString> downloadDestinations;
34 static DownloadManager* _instance;
37 static DownloadManager* getInstance();
38 QNetworkReply* downloadPlugin(
const QUrl &url,
const QString& destination);
39 bool saveToDisk(
const QString &filename, QIODevice *data);
42 void downloadFinished(QNetworkReply *reply);