Made JavaDownloader a task and added some quick UI
Signed-off-by: timoreo <contact@timoreo.fr>
This commit is contained in:
parent
54ad91c3b7
commit
53ddba8077
3 changed files with 67 additions and 29 deletions
|
@ -1,8 +1,17 @@
|
|||
#pragma once
|
||||
|
||||
#include <QString>
|
||||
#include "tasks/Task.h"
|
||||
|
||||
namespace JavaDownloader {
|
||||
/*Downloads the java to the runtimes folder*/
|
||||
void downloadJava(bool isLegacy, const QString& OS);
|
||||
} // namespace JavaDownloader
|
||||
class JavaDownloader : public Task {
|
||||
Q_OBJECT
|
||||
public:
|
||||
/*Downloads the java to the runtimes folder*/
|
||||
explicit JavaDownloader(bool isLegacy, const QString& OS) : m_isLegacy(isLegacy), m_OS(OS) {}
|
||||
|
||||
void executeTask() override;
|
||||
|
||||
private:
|
||||
bool m_isLegacy;
|
||||
const QString& m_OS;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue