some hopefully final preparations for delay manager

This commit is contained in:
Blue 2023-03-08 23:28:48 +03:00
parent 9fff409630
commit 5ba97ecc25
Signed by untrusted user: blue
GPG key ID: 9B203B252A63EE38
8 changed files with 148 additions and 56 deletions

View file

@ -19,6 +19,9 @@
#include "job.h"
#include <shared/vcard.h>
#include <shared/info.h>
namespace Core {
namespace DelayManager {
@ -26,7 +29,8 @@ class Info : public virtual Job {
public:
enum class Stage {
waitingForVCard,
waitingForBundles
waitingForBundles,
finished
};
protected:
@ -36,10 +40,14 @@ protected:
public:
~Info();
void receivedVCard(const Shared::VCard& card);
Shared::VCard* claim();
Stage getStage() const;
private:
Stage stage;
Shared::VCard* info;
};
}