some progress over building

This commit is contained in:
Blue 2023-09-30 17:13:44 -03:00
parent 0fa8ba6918
commit 4843fcc77f
Signed by: blue
GPG key ID: 9B203B252A63EE38
7 changed files with 228 additions and 27 deletions

View file

@ -15,7 +15,7 @@
#include "download.h"
#include "taskmanager.h"
class Collection : protected Loggable, public std::enable_shared_from_this<Collection> {
class Collection : protected Loggable {
using Sources = std::set<std::string>;
using SourcesQueue = std::queue<std::string>;
using Downloads = std::map<std::string, std::unique_ptr<Download>>;
@ -30,6 +30,8 @@ public:
const std::shared_ptr<TaskManager>& taskManager
);
bool success() const;
unsigned int sourcesTotal() const;
unsigned int sourcesPending() const;
unsigned int sourcesError() const;