* connects to https://www.sourcetrail.com/api/v1/versions/latest * sends information about OS, platform, license type, current version and a unique user token * Automatic update check is enabled via Startscreen and performed once every 24 hours on window focus * Update check can be forced by clicking on "check for new version" on start screen * renamed TimePoint to TimeStamp fortune cookie message = In Träumen und im Leben ist nichts unmöglich.
30 lines
702 B
C++
30 lines
702 B
C++
#ifndef TASK_DECORATOR_DELAY_H
|
|
#define TASK_DECORATOR_DELAY_H
|
|
|
|
#include <vector>
|
|
|
|
#include "utility/scheduling/TaskDecorator.h"
|
|
#include "utility/scheduling/TaskRunner.h"
|
|
#include "utility/TimeStamp.h"
|
|
|
|
class TaskDecoratorDelay
|
|
: public TaskDecorator
|
|
{
|
|
public:
|
|
TaskDecoratorDelay(size_t delayMS);
|
|
|
|
private:
|
|
virtual void doEnter(std::shared_ptr<Blackboard> blackboard);
|
|
virtual TaskState doUpdate(std::shared_ptr<Blackboard> blackboard);
|
|
virtual void doExit(std::shared_ptr<Blackboard> blackboard);
|
|
virtual void doReset(std::shared_ptr<Blackboard> blackboard);
|
|
virtual void doTerminate();
|
|
|
|
const size_t m_delayMS;
|
|
|
|
TimeStamp m_start;
|
|
bool m_delayComplete;
|
|
};
|
|
|
|
#endif // TASK_DECORATOR_DELAY_H
|