#include <application.h>
List of all members.
Static Public Member Functions |
static bool | start (Application *app, bool modal=false) |
Detailed Description
The application manager is a class used mainly to start applications
Member Function Documentation
bool mxgui::ApplicationManager::start |
( |
Application * |
app, |
|
|
bool |
modal = false | |
|
) |
| | [static] |
- Parameters:
-
| app | Application to start. The pointer must point to an heap allocated instance of an application class. The pointer is deleted internally by the ApplicationManager when the application terminates. Since the pointer passed to start() can be deleted at any time, it is undefined behaviour to dereference it after the call to start(). The suggested way to call this member function is
class MyApp : public application
[...]
ApplicationManager::start(new MyApp);
|
| modal | if true the application will be started in the thread that calls start, and therefore the call to start won't return till the application will terminate. |
- Returns:
- true if success, false on failure
The documentation for this class was generated from the following files:
- application.h
- application.cpp