22 virtual std::future<bool> runAsync() {
return std::future<bool>(); }
23 virtual void show() { }
24 virtual void hide() { }
26 virtual void quit(
int code) { }
27 virtual void setPCB(
const std::shared_ptr<PCBoard>&,
bool wait =
true) { }
28 virtual void setAutonomousAgent(
const std::shared_ptr<Agent>&,
const std::shared_ptr<PCBoard>&) { }
29 void startExclusiveTask(
const char *warn = 0);
30 bool tryStartExclusiveTask(
const char *name = 0);
31 bool endExclusiveTask(
bool rv =
true,
const char *reason = 0);
33 std::shared_ptr<PCBoard> mPCB;
34 std::unique_ptr<Agent> mUserAgent;
35 std::shared_ptr<Agent> mAutoAgent;
37 std::binary_semaphore mTaskLock{1};
Agent * getUserAgent() const
These are not available outside the UI as it wouldn't be thread-safe.
Definition Application.hpp:44