Medical Imaging Interaction Toolkit
2024.06.00
Medical Imaging Interaction Toolkit
|
#include <berryIApplication.h>
Public Member Functions | |
virtual | ~IApplication () |
virtual QVariant | Start (IApplicationContext *context)=0 |
virtual void | Stop ()=0 |
Static Public Attributes | |
static const int | EXIT_OK |
static const int | EXIT_RESTART |
static const int | EXIT_RELAUNCH |
Bootstrap type for an application. An IApplication represent executable entry points into an application. An IApplication can be configured into the Platform's org.blueberry.osgi.applications
extension-point.
Clients may implement this interface.
Definition at line 33 of file berryIApplication.h.
|
virtual |
|
pure virtual |
Starts this application with the given context and returns a result. This method must not exit until the application is finished and is ready to exit. The content of the context is unchecked and should conform to the expectations of the application being invoked.
Applications can return any object they like. If an Integer
is returned it is treated as the program exit code if BlueBerry is exiting.
Note: This method is called by the platform; it is not intended to be called directly by clients.
context | the application context to pass to the application |
std::exception | if there is a problem running this application. |
|
pure virtual |
Forces this running application to exit. This method should wait until the running application is ready to exit. The Start should already have exited or should exit very soon after this method exits
This method is only called to force an application to exit. This method will not be called if an application exits normally from the Start method.
Note: This method is called by the platform; it is not intended to be called directly by clients.
|
static |
Exit object indicating normal termination
Definition at line 39 of file berryIApplication.h.
|
static |
Exit object requesting that the command passed back be executed. Typically this is used to relaunch BlueBerry with different command line arguments. When the executable is relaunched the command line will be retrieved from the BlueBerry.exitdata
system property.
Definition at line 51 of file berryIApplication.h.
|
static |
Exit object requesting platform restart
Definition at line 44 of file berryIApplication.h.