Async
0.18.0
|
The base class for asynchronous applications. More...
#include <AsyncApplication.h>
Public Member Functions | |
Application (void) | |
Default constructor. | |
virtual | ~Application (void) |
Destructor. | |
virtual void | exec (void)=0 |
Execute the application main loop. | |
virtual void | quit (void)=0 |
Exit the application main loop. | |
Static Public Member Functions | |
static Application & | app (void) |
Get the one and only application instance. | |
Friends | |
class | FdWatch |
class | Timer |
class | DnsLookup |
The base class for asynchronous applications.
This is the base class for all asynchronous applications. It is an abstract class and so it must be inherited from to create a class that can be instantiated.
Definition at line 118 of file AsyncApplication.h.
Async::Application::Application | ( | void | ) |
Default constructor.
|
virtual |
Destructor.
|
static |
Get the one and only application instance.
Use this static member function to get the one and only instance of the application object. If an application object has not been previously created, the application will crash with a failed assertion.
|
pure virtual |
Execute the application main loop.
When this member function is called the application core will enter the core main loop. It will not exit from this loop until the Async::Application::quit method is called.
Implemented in Async::QtApplication, and Async::CppApplication.
|
pure virtual |
Exit the application main loop.
This function should be called to exit the application core main loop.
Implemented in Async::CppApplication.
|
friend |
Definition at line 162 of file AsyncApplication.h.
|
friend |
Definition at line 160 of file AsyncApplication.h.
|
friend |
Definition at line 161 of file AsyncApplication.h.