33 #include <boost/optional.hpp>
54 QDateTime LastRequest_;
56 typedef boost::optional<QPointer<QObject>> OptionalTracker_t;
57 QList<QPair<std::function<void ()>, boost::optional<QPointer<QObject>>>> Queue_;
82 UTIL_API void Schedule (std::function<
void ()> functor, QObject *dependent = 0);
UTIL_API void Schedule(std::function< void()> functor, QObject *dependent=0)
Adds the given functor.
A simple scheduling manager for a queue of functors.
UTIL_API QueueManager(int timeout, QObject *parent=0)
Creates a queue manager with the given timeout.