48 QTimer *
const ReqTimer_;
49 QDateTime LastRequest_;
53 typedef std::optional<QPointer<QObject>> OptionalTracker_t;
54 QList<QPair<std::function<void ()>, std::optional<QPointer<QObject>>>> Queue_;
81 void Schedule (std::function<
void ()> functor,
82 QObject *dependent =
nullptr,
void Resume()
Continues the queue rotation.
bool IsPaused() const
Checks if the queue is paused.
void Clear()
Clears the queue.
void Pause()
Pauses the queue rotation.
void Schedule(std::function< void()> functor, QObject *dependent=nullptr, QueuePriority prio=QueuePriority::Normal)
Adds the given functor.
QueueManager(int timeout, QObject *parent=nullptr)
Creates a queue manager with the given timeout.
QueuePriority
The priority of the action in the queue.
@ Normal
Standard priority.