diff options
author | Sky <git@bunnies.cc> | 2013-10-19 06:40:46 +0100 |
---|---|---|
committer | Sky <git@bunnies.cc> | 2013-10-19 06:40:46 +0100 |
commit | 681d36b23251993a8678db8e72859d4018396b63 (patch) | |
tree | 9082d1bc7107c1b1d0bc7b72fb486bd84cd21560 /logic/net/SkinDownload.h | |
parent | be2c7f451541647899478d0197d3e9500d63c833 (diff) | |
download | MultiMC-681d36b23251993a8678db8e72859d4018396b63.tar MultiMC-681d36b23251993a8678db8e72859d4018396b63.tar.gz MultiMC-681d36b23251993a8678db8e72859d4018396b63.tar.lz MultiMC-681d36b23251993a8678db8e72859d4018396b63.tar.xz MultiMC-681d36b23251993a8678db8e72859d4018396b63.zip |
First draft of player faces in the login dialog
Diffstat (limited to 'logic/net/SkinDownload.h')
-rw-r--r-- | logic/net/SkinDownload.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/logic/net/SkinDownload.h b/logic/net/SkinDownload.h new file mode 100644 index 00000000..56e5c01d --- /dev/null +++ b/logic/net/SkinDownload.h @@ -0,0 +1,38 @@ +#pragma once + +#include "Download.h" +#include "HttpMetaCache.h" +#include "DownloadJob.h" +#include <QFile> +#include <QTemporaryFile> + +class SkinDownload : public QObject +{ + Q_OBJECT + +public: + explicit SkinDownload(QString name); + QString m_name; + QUrl m_url; + MetaEntryPtr m_entry; + DownloadJobPtr m_job; + + void start(); + +protected slots: + void downloadStarted(); + void downloadProgress(qint64 bytesReceived, qint64 bytesTotal); + void downloadSucceeded(); + void downloadFailed(); + +signals: + void started(); + void progress(qint64 current, qint64 total); + void succeeded(); + void failed(); + +protected: + +}; + +typedef std::shared_ptr<SkinDownload> SkinDownloadPtr; |