CTK  0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
Public Member Functions | List of all members
ctkApplicationLauncher Struct Referenceabstract

#include <Libs/PluginFramework/service/application/ctkApplicationLauncher.h>

Public Member Functions

virtual void launch (ctkApplicationRunnable *app, const QVariant &applicationContext)=0
 
virtual void shutdown ()=0
 
virtual ~ctkApplicationLauncher ()
 

Detailed Description

A ctkApplicationLauncher is used to launch ctkApplicationRunnable objects using the main thread.

This class is for use by platform-related plug-ins which implement application containers. Clients outside of the base platform should not reference or subclass this class.

Definition at line 39 of file ctkApplicationLauncher.h.

Constructor & Destructor Documentation

◆ ~ctkApplicationLauncher()

virtual ctkApplicationLauncher::~ctkApplicationLauncher ( )
inlinevirtual

Definition at line 41 of file ctkApplicationLauncher.h.

Member Function Documentation

◆ launch()

virtual void ctkApplicationLauncher::launch ( ctkApplicationRunnable app,
const QVariant &  applicationContext 
)
pure virtual

Launches the specified runnable using the main thread.

Parameters
runnablea ParameterizedRunnalbe to run on the main thread.
contextthe context to launch the runnable with

◆ shutdown()

virtual void ctkApplicationLauncher::shutdown ( )
pure virtual

Forces the current runnable which is running to be stopped. This method will return after the currently running ctkApplicationRunnable has completely stopped.

After this method returns this ctkApplicationLauncher will no longer allow applications to be launched.


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