Namespaces | |
detail | |
Functions | |
void | build_and_run (int argc, char **argv, const std::function< void()> &ready) |
Sets up the Qt core world and executes its event loop. Blocks until destroy() is called. More... | |
void | destroy () |
Destroys the Qt core world and quits its event loop. More... | |
std::future< void > | enter_with_task (const std::function< void()> &task) |
Enters the Qt core world and schedules the given task for execution. More... | |
template<typename T > | |
std::future< T > | enter_with_task_and_expect_result (const std::function< T()> &task) |
Enters the Qt core world and schedules the given task for execution. More... | |
void qt::core::world::build_and_run | ( | int | argc, |
char ** | argv, | ||
const std::function< void()> & | ready | ||
) |
Sets up the Qt core world and executes its event loop. Blocks until destroy() is called.
argc | Number of arguments in argv. |
argv | Array of command-line arguments. |
ready | Functor be called when the world has been setup and is about to be executed. |
std::runtime_error | in case of errors. |
Definition at line 132 of file qtbridge.cpp.
References qt::core::world::detail::coreApplicationInstance(), qt::core::world::detail::createCoreApplicationInstanceWithArgs(), qt::core::world::detail::destroyCoreApplicationInstace(), and qt::core::world::detail::task_handler().
Referenced by CallMonitorPrivate::CallMonitorPrivate().
void qt::core::world::destroy | ( | ) |
Destroys the Qt core world and quits its event loop.
Definition at line 154 of file qtbridge.cpp.
References enter_with_task().
Referenced by CallMonitorPrivate::~CallMonitorPrivate().
std::future< void > qt::core::world::enter_with_task | ( | const std::function< void()> & | task | ) |
Enters the Qt core world and schedules the given task for execution.
task | The task to be executed in the Qt core world. |
Definition at line 163 of file qtbridge.cpp.
References qt::core::world::detail::TaskEvent::get_future(), and qt::core::world::detail::task_handler().
Referenced by CallMonitorPrivate::CallMonitorPrivate(), destroy(), and enter_with_task_and_expect_result().
|
inline |
Enters the Qt core world and schedules the given task for execution.
task | The task to be executed in the Qt core world. |
Definition at line 63 of file qtbridge.h.
References enter_with_task().