diff options
Diffstat (limited to 'launcher/screenshots/ImgurAlbumCreation.cpp')
-rw-r--r-- | launcher/screenshots/ImgurAlbumCreation.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/launcher/screenshots/ImgurAlbumCreation.cpp b/launcher/screenshots/ImgurAlbumCreation.cpp index d1b21f5f..d5de302a 100644 --- a/launcher/screenshots/ImgurAlbumCreation.cpp +++ b/launcher/screenshots/ImgurAlbumCreation.cpp @@ -5,18 +5,18 @@ #include <QJsonObject> #include <QUrl> #include <QStringList> +#include <QDebug> #include "BuildConfig.h" -#include "Env.h" -#include <QDebug> +#include "Application.h" -ImgurAlbumCreation::ImgurAlbumCreation(QList<ScreenshotPtr> screenshots) : NetAction(), m_screenshots(screenshots) +ImgurAlbumCreation::ImgurAlbumCreation(QList<ScreenShot::Ptr> screenshots) : NetAction(), m_screenshots(screenshots) { m_url = BuildConfig.IMGUR_BASE_URL + "album.json"; m_status = Job_NotStarted; } -void ImgurAlbumCreation::start() +void ImgurAlbumCreation::startImpl() { m_status = Job_InProgress; QNetworkRequest request(m_url); @@ -33,7 +33,7 @@ void ImgurAlbumCreation::start() const QByteArray data = "deletehashes=" + hashes.join(',').toUtf8() + "&title=Minecraft%20Screenshots&privacy=hidden"; - QNetworkReply *rep = ENV->network().post(request, data); + QNetworkReply *rep = APPLICATION->network()->post(request, data); m_reply.reset(rep); connect(rep, &QNetworkReply::uploadProgress, this, &ImgurAlbumCreation::downloadProgress); |