Medical Imaging Interaction Toolkit
2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
|
#include <berryPlatform.h>
Static Public Member Functions | |
static IAdapterManager * | GetAdapterManager () |
static IExtensionRegistry * | GetExtensionRegistry () |
static mitk::IPreferencesService * | GetPreferencesService () |
static SmartPointer< IProduct > | GetProduct () |
static QVariant | GetDebugOption (const QString &option) |
static QT_DEPRECATED QDir | GetConfigurationPath () |
static ctkLocation * | GetConfigurationLocation () |
static QT_DEPRECATED QDir | GetInstallPath () |
static ctkLocation * | GetInstallLocation () |
static QT_DEPRECATED QDir | GetInstancePath () |
static ctkLocation * | GetInstanceLocation () |
static QT_DEPRECATED bool | GetStatePath (QDir &statePath, const QSharedPointer< ctkPlugin > &plugin, bool create=true) |
static QDir | GetStateLocation (const QSharedPointer< ctkPlugin > &plugin) |
static QT_DEPRECATED QDir | GetUserPath () |
static ctkLocation * | GetUserLocation () |
static int | GetOS () |
static int | GetOSArch () |
static bool | IsUnix () |
static bool | IsWindows () |
static bool | IsBSD () |
static bool | IsLinux () |
static bool | IsVMS () |
static bool | IsRunning () |
static QStringList | GetApplicationArgs () |
static QSharedPointer< ctkPlugin > | GetPlugin (const QString &symbolicName) |
static QList< QSharedPointer< ctkPlugin > > | GetPlugins (const QString &symbolicName, const QString &version=QString()) |
Static Public Attributes | |
static const QString | PI_RUNTIME |
static const int | OS_FREE_BSD |
static const int | OS_AIX |
static const int | OS_HPUX |
static const int | OS_TRU64 |
static const int | OS_LINUX |
static const int | OS_MAC_OS_X |
static const int | OS_NET_BSD |
static const int | OS_OPEN_BSD |
static const int | OS_IRIX |
static const int | OS_SOLARIS |
static const int | OS_QNX |
static const int | OS_VXWORKS |
static const int | OS_CYGWIN |
static const int | OS_UNKNOWN_UNIX |
static const int | OS_WINDOWS_NT |
static const int | OS_WINDOWS_CE |
static const int | OS_VMS |
static const int | ARCH_ALPHA |
static const int | ARCH_IA32 |
static const int | ARCH_IA64 |
static const int | ARCH_MIPS |
static const int | ARCH_HPPA |
static const int | ARCH_PPC |
static const int | ARCH_POWER |
static const int | ARCH_SPARC |
static const int | ARCH_AMD64 |
static const int | ARCH_ARM |
static const QString | PROP_QTPLUGIN_PATH |
static const QString | PROP_NEWINSTANCE |
static const QString | PROP_PLUGIN_DIRS |
static const QString | PROP_FORCE_PLUGIN_INSTALL |
static const QString | PROP_APPLICATION |
static const QString | PROP_IGNOREAPP |
static const QString | PROP_XARGS |
The central class of the BlueBerry Platform Runtime. This class cannot be instantiated or subclassed by clients; all functionality is provided by static methods. Features include:
Most users don't have to worry about Platform's lifecycle. However, if your code can call methods of this class when Platform is not running, it becomes necessary to check IsRunning() before making the call. A runtime exception might be thrown or incorrect result might be returned if a method from this class is called while Platform is not running.
Definition at line 202 of file berryPlatform.h.
|
static |
Returns the adapter manager used for extending IAdaptable
objects.
|
static |
Returns the applications command line arguments which have not been consumed by the platform.
|
static |
Returns the location of the configuration information used to run this instance of BlueBerry. The configuration area typically contains the list of plug-ins available for use, various settings (those shared across different instances of the same configuration) and any other such data needed by plug-ins. null
is returned if the platform is running without a configuration location.
This method is equivalent to acquiring the org.commontk.service.datalocation.Location
service with the property "type" equal to ctkLocation::CONFIGURATION_FILTER.
null
if none
|
static |
Returns the path of the configuration information used to run this instance of the BlueBerry platform. The configuration area typically contains the list of plug-ins available for use, various settings (those shared across different instances of the same configuration) and any other such data needed by plug-ins. An empty path is returned if the platform is running without a configuration location.
|
static |
Returns the identified option. A null QString is returned if no such option is found. Options are specified in the general form <plug-in id>/<option-path>. For example, org.blueberry.core.runtime/debug
Clients are also able to acquire the DebugOptions
service and query it for debug options.
option | the name of the option to lookup |
QString::null
|
static |
Returns the extension registry for this platform. May return null
if the registry has not been created yet.
null
|
static |
Returns the location of the base installation for the running platform null
is returned if the platform is running without a configuration location.
This method is equivalent to acquiring the org.commontk.service.datalocation.Location
service with the property "type" equal to ctkLocation::INSTALL_FILTER.
null
if none
|
static |
Returns the path of the base installation for the running platform
null
if none
|
static |
Returns the location of the platform's working directory (also known as the instance data area). null
is returned if the platform is running without an instance location.
This method is equivalent to acquiring the org.commontk.service.datalocation.Location
service with the property "type" equal to ctkLocation::INSTANCE_FILTER.
null
if none
|
static |
Returns the path of the platform's working directory (also known as the instance data area). An empty path is returned if the platform is running without an instance location.
null
if none
|
static |
|
static |
|
static |
Returns the resolved plug-in with the specified symbolic name that has the highest version. If no resolved plug-ins are installed that have the specified symbolic name then null is returned.
Note that clients may want to filter the results based on the state of the plug-ins.
symbolicName | the symbolic name of the plug-in to be returned. |
null
if no plug-in is found.
|
static |
Returns all plug-ins with the specified symbolic name. If no resolved plug-ins with the specified symbolic name can be found, an empty list is returned. If the version argument is not null then only the plug-ins that have the specified symbolic name and a version greater than or equal to the specified version are returned. The returned plug-ins are ordered in descending plug-in version order.
Note that clients may want to filter the results based on the state of the plug-ins.
symbolicName | the symbolic name of the plug-ins that are to be returned. |
version | the version that the returned plug-in versions must match, or QString() if no version matching is to be done. |
null
if no plug-ins are found.
|
static |
Return the interface into the preference mechanism. The returned object can be used for such operations as searching for preference values across multiple scopes.
|
static |
Returns the product which was selected when running this BlueBerry instance or null
if none
null
if none
|
static |
Returns the location in the local file system of the plug-in state area for the given plug-in. If the plug-in state area did not exist prior to this call, it is created.
The plug-in state area is a file directory within the platform's metadata area where a plug-in is free to create files. The content and structure of this area is defined by the plug-in, and the particular plug-in is solely responsible for any files it puts there. It is recommended for plug-in preference settings and other configuration parameters.
plugin | the plugin whose state location if returned |
ctkIllegalStateException | if no instance location was specified |
RuntimeException | if the plug-in state area could not be created. |
|
static |
Returns the path in the local file system of the plug-in state area for the given plug-in. If the plug-in state area did not exist prior to this call, it is created.
The plug-in state area is a file directory within the platform's metadata area where a plug-in is free to create files. The content and structure of this area is defined by the plug-in, and the particular plug-in is solely responsible for any files it puts there. It is recommended for plug-in preference settings and other configuration parameters.
statePath | |
plugin | the plug-in whose state location is returned |
create |
|
static |
Returns the location of the platform's user data area. The user data area is a location on the system which is specific to the system's current user. By default it is located relative to the location given by the system property "user.home". null
is returned if the platform is running without an user location.
This method is equivalent to acquiring the org.commontk.service.datalocation.Location
service with the property "type" equal to ctkLocation::USER_FILTER.
null
if none
|
static |
Returns the path of the platform's user data area. The user data area is a location on the system which is specific to the system's current user. By default it is located relative to the location given by the System property "user.home". An empty path is returned if the platform is running without an user location.
null
if none
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 226 of file berryPlatform.h.
|
static |
Definition at line 234 of file berryPlatform.h.
|
static |
Definition at line 235 of file berryPlatform.h.
|
static |
Definition at line 230 of file berryPlatform.h.
|
static |
Definition at line 227 of file berryPlatform.h.
|
static |
Definition at line 228 of file berryPlatform.h.
|
static |
Definition at line 229 of file berryPlatform.h.
|
static |
Definition at line 232 of file berryPlatform.h.
|
static |
Definition at line 231 of file berryPlatform.h.
|
static |
Definition at line 233 of file berryPlatform.h.
|
static |
Definition at line 209 of file berryPlatform.h.
|
static |
Definition at line 220 of file berryPlatform.h.
|
static |
Definition at line 208 of file berryPlatform.h.
|
static |
Definition at line 210 of file berryPlatform.h.
|
static |
Definition at line 216 of file berryPlatform.h.
|
static |
Definition at line 212 of file berryPlatform.h.
|
static |
Definition at line 213 of file berryPlatform.h.
|
static |
Definition at line 214 of file berryPlatform.h.
|
static |
Definition at line 215 of file berryPlatform.h.
|
static |
Definition at line 218 of file berryPlatform.h.
|
static |
Definition at line 217 of file berryPlatform.h.
|
static |
Definition at line 211 of file berryPlatform.h.
|
static |
Definition at line 221 of file berryPlatform.h.
|
static |
Definition at line 224 of file berryPlatform.h.
|
static |
Definition at line 219 of file berryPlatform.h.
|
static |
Definition at line 223 of file berryPlatform.h.
|
static |
Definition at line 222 of file berryPlatform.h.
|
static |
Definition at line 206 of file berryPlatform.h.
|
static |
Definition at line 243 of file berryPlatform.h.
|
static |
Definition at line 241 of file berryPlatform.h.
|
static |
Definition at line 244 of file berryPlatform.h.
|
static |
Definition at line 239 of file berryPlatform.h.
|
static |
Definition at line 240 of file berryPlatform.h.
|
static |
Definition at line 237 of file berryPlatform.h.
|
static |
Definition at line 246 of file berryPlatform.h.