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;
38 static DownloadManager *getInstance();
39 QNetworkReply *downloadPlugin(
const QUrl &url,
const QString &destination);
40 bool saveToDisk(
const QString &filename, QIODevice *data);
43 void downloadFinished(QNetworkReply *reply);