aboutsummaryrefslogtreecommitdiff
path: root/launcher/net/NetJob.cpp
AgeCommit message (Collapse)Author
2023-05-01fix: clean up license headers for TasksRachel Powers
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2023-01-13refactor: generalize mod models and APIs to resourcesflow
Firstly, this abstract away behavior in the mod download models that can also be applied to other types of resources into a superclass, allowing other resource types to be implemented without so much code duplication. For that, this also generalizes the APIs used (currently, ModrinthAPI and FlameAPI) to be able to make requests to other types of resources. It also does a general cleanup of both of those. In particular, this makes use of std::optional instead of invalid values for errors and, well, optional values :p This is a squash of some commits that were becoming too interlaced together to be cleanly separated. Signed-off-by: flow <flowlnlnln@gmail.com>
2022-12-17refactor(Tasks): remove 'm_total_size' from ConcurrentTaskflow
We can use the queues directly instead. Signed-off-by: flow <flowlnlnln@gmail.com>
2022-09-10fix: emit signals when aborting NetJobflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-08-28refactor: make NetJob inherit from ConcurrentTask as well!flow
Avoids lots of code duplication Signed-off-by: flow <flowlnlnln@gmail.com>
2022-07-10chore: update license headersSefa Eyeoglu
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-07-10refactor: fix deprecation up to Qt 6Sefa Eyeoglu
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-07-10refactor: fix deprecation up to Qt 5.15Sefa Eyeoglu
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-05-12chore: add polymc license headers to launcher/net filesflow
2022-05-12fix: abort and fail logic in tasksflow
Also sets up correctly the status connections
2022-05-12refactor: remove some superfluous signalsflow
Since now we're inheriting from Task, some signals can be reused.
2022-05-12refactor: organize a little more the code in launcher/net/flow
This also reduces some code duplication by using some Task logic in NetAction.
2021-11-21NOISSUE continue refactoring things to make tests passPetr Mrázek
2021-07-25NOISSUE Flatten gui and logic libraries into MultiMCPetr Mrázek