aboutsummaryrefslogtreecommitdiff
path: root/launcher/net/NetAction.h
diff options
context:
space:
mode:
authorflow <thiagodonato300@gmail.com>2022-04-26 21:25:42 -0300
committerflow <thiagodonato300@gmail.com>2022-05-12 18:11:55 -0300
commitefa3fbff39bf0dabebdf1c6330090ee320895a4d (patch)
treeae24c1ec2809544624660c2d77b78381231bc88a /launcher/net/NetAction.h
parent8c8eabf7ac1920b47792b26790f3646cb6693ec0 (diff)
downloadPrismLauncher-efa3fbff39bf0dabebdf1c6330090ee320895a4d.tar.gz
PrismLauncher-efa3fbff39bf0dabebdf1c6330090ee320895a4d.tar.bz2
PrismLauncher-efa3fbff39bf0dabebdf1c6330090ee320895a4d.zip
refactor: remove some superfluous signals
Since now we're inheriting from Task, some signals can be reused.
Diffstat (limited to 'launcher/net/NetAction.h')
-rw-r--r--launcher/net/NetAction.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/launcher/net/NetAction.h b/launcher/net/NetAction.h
index e15716f6..86a37ee6 100644
--- a/launcher/net/NetAction.h
+++ b/launcher/net/NetAction.h
@@ -43,7 +43,7 @@
class NetAction : public Task {
Q_OBJECT
protected:
- explicit NetAction() : Task(nullptr) {};
+ explicit NetAction() : Task() {};
public:
using Ptr = shared_qobject_ptr<NetAction>;
@@ -51,13 +51,7 @@ class NetAction : public Task {
virtual ~NetAction() = default;
QUrl url() { return m_url; }
-
- signals:
- void started(int index);
- void netActionProgress(int index, qint64 current, qint64 total);
- void succeeded(int index);
- void failed(int index);
- void aborted(int index);
+ auto index() -> int { return m_index_within_job; }
protected slots:
virtual void downloadProgress(qint64 bytesReceived, qint64 bytesTotal) = 0;