Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
berry::IApplication Struct Referenceabstract

#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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ~IApplication()

virtual berry::IApplication::~IApplication ( )
virtual

Member Function Documentation

◆ Start()

virtual QVariant berry::IApplication::Start ( IApplicationContext context)
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.

Returns
the return value of the application
See also
EXIT_OK
EXIT_RESTART
EXIT_RELAUNCH
Parameters
contextthe application context to pass to the application
Exceptions
std::exceptionif there is a problem running this application.

◆ Stop()

virtual void berry::IApplication::Stop ( )
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.

Member Data Documentation

◆ EXIT_OK

const int berry::IApplication::EXIT_OK
static

Exit object indicating normal termination

Definition at line 39 of file berryIApplication.h.

◆ EXIT_RELAUNCH

const int berry::IApplication::EXIT_RELAUNCH
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.

◆ EXIT_RESTART

const int berry::IApplication::EXIT_RESTART
static

Exit object requesting platform restart

Definition at line 44 of file berryIApplication.h.


The documentation for this struct was generated from the following file: