17 #ifndef MITKBASEAPPLICATION_H
18 #define MITKBASEAPPLICATION_H
22 #include <Poco/Util/Application.h>
25 #include <QScopedPointer>
26 #include <QSharedPointer>
29 class QCoreApplication;
31 class ctkPluginContext;
32 class ctkPluginFramework;
144 void printHelp(
const std::string &name,
const std::string &value);
150 void setApplicationName(
const QString &name);
151 QString getApplicationName()
const;
157 void setOrganizationName(
const QString &name);
158 QString getOrganizationName()
const;
164 void setOrganizationDomain(
const QString &name);
165 QString getOrganizationDomain()
const;
175 void setSingleMode(
bool singleMode);
176 bool getSingleMode()
const;
184 void setSafeMode(
bool safeMode);
185 bool getSafeMode()
const;
198 void setPreloadLibraries(
const QStringList &libraryBaseNames);
205 QStringList getPreloadLibraries()
const;
219 void setProvisioningFilePath(
const QString &filePath);
225 QString getProvisioningFilePath()
const;
227 void setProperty(
const QString &property,
const QVariant &value);
228 QVariant getProperty(
const QString &property)
const;
231 void initialize(Poco::Util::Application &
self)
override;
233 void uninitialize()
override;
236 char **getArgv()
const;
245 virtual QString getCTKFrameworkStorageDir()
const;
258 virtual void initializeCppMicroServices();
270 virtual QCoreApplication *getQApplication()
const;
278 virtual void initializeLibraryPaths();
292 int main(
const std::vector<std::string> &args)
override;
298 void defineOptions(Poco::Util::OptionSet &options)
override;
301 ctkPluginContext *getFrameworkContext()
const;
313 QHash<QString, QVariant> getFrameworkProperties()
const;
319 void initializeSplashScreen(QCoreApplication * application)
const;
323 QScopedPointer<Impl> d;
327 #endif // MITKBASEAPPLICATION_H
static QString ARG_PLUGIN_CACHE
static QString ARG_CONSOLELOG
static QString ARG_APPLICATION
static QString PROP_TESTAPPLICATION
DataCollection - Class to facilitate loading/accessing structured data.
static QString ARG_PLUGIN_DIRS
static QString PROP_TESTPLUGIN
static QString PROP_REGISTRY_MULTI_LANGUAGE
static QString ARG_REGISTRY_MULTI_LANGUAGE
static QString PROP_NO_REGISTRY_CACHE
static QString ARG_STORAGE_DIR
static QString PROP_NEWINSTANCE
int main(int argc, char **argv)
static QString ARG_FORCE_PLUGIN_INSTALL
static QString ARG_SPLASH_IMAGE
static QString ARG_PROVISIONING
static QString PROP_PRODUCT
#define MITKAPPUTIL_EXPORT
static QString ARG_TESTAPPLICATION
static QString PROP_NO_LAZY_REGISTRY_CACHE_LOADING
static QString ARG_NO_REGISTRY_CACHE
static QString PROP_APPLICATION
static QString ARG_NEWINSTANCE
static QString ARG_PRODUCT
static QString ARG_TESTPLUGIN
static QString ARG_NO_LAZY_REGISTRY_CACHE_LOADING
static QString PROP_FORCE_PLUGIN_INSTALL
static QString ARG_PRELOAD_LIBRARY