summaryrefslogtreecommitdiffstats
path: root/logic/tasks/Task.h
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2014-09-06 18:16:56 +0200
committerPetr Mrázek <peterix@gmail.com>2014-09-06 19:03:05 +0200
commit20cb97a35af5097e9d3b2062c0dfcb5f2e5fff5c (patch)
tree56bf51e681f2e73590a549499bd83d7b505c39f8 /logic/tasks/Task.h
parent36efcf8d3c0cbd7823fc65569cfc2b011435db2c (diff)
downloadMultiMC-20cb97a35af5097e9d3b2062c0dfcb5f2e5fff5c.tar
MultiMC-20cb97a35af5097e9d3b2062c0dfcb5f2e5fff5c.tar.gz
MultiMC-20cb97a35af5097e9d3b2062c0dfcb5f2e5fff5c.tar.lz
MultiMC-20cb97a35af5097e9d3b2062c0dfcb5f2e5fff5c.tar.xz
MultiMC-20cb97a35af5097e9d3b2062c0dfcb5f2e5fff5c.zip
Sync from quickmods
Diffstat (limited to 'logic/tasks/Task.h')
-rw-r--r--logic/tasks/Task.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/logic/tasks/Task.h b/logic/tasks/Task.h
index 063eeeda..e6b09262 100644
--- a/logic/tasks/Task.h
+++ b/logic/tasks/Task.h
@@ -26,8 +26,6 @@ public:
explicit Task(QObject *parent = 0);
virtual ~Task() {};
- virtual QString getStatus() const;
- virtual void getProgress(qint64 &current, qint64 &total);
virtual bool isRunning() const;
/*!
@@ -50,6 +48,7 @@ slots:
protected:
virtual void executeTask() = 0;
+protected slots:
virtual void emitSucceeded();
virtual void emitFailed(QString reason);
@@ -59,9 +58,8 @@ slots:
void setProgress(int progress);
protected:
- QString m_statusString;
- int m_progress = 0;
bool m_running = false;
bool m_succeeded = false;
QString m_failReason = "";
};
+