|
Multi diag tools
|
SingleApplication adds some helper to QtSingleCoreApplication for application initialization. More...
#include <SingleApplication.h>
Inheritance diagram for Mdt::SingleApplication:
Collaboration diagram for Mdt::SingleApplication:Public Member Functions | |
| SingleApplication (int &argc, char **argv) | |
| Construct a single core application. | |
| ~SingleApplication () | |
| Destroy the single core application object. | |
| void | enableFileLogging () |
| Enable file logging. More... | |
| QString | logFilePath () |
| Get the path to the log file. | |
| void | debugEnvironment () |
| Debug environment. More... | |
Public Member Functions inherited from QtSingleApplication | |
| QtSingleApplication (int &argc, char **argv, bool GUIenabled=true) | |
| QtSingleApplication (const QString &id, int &argc, char **argv) | |
| QtSingleApplication (int &argc, char **argv, Type type) | |
| bool | isRunning () |
| QString | id () const |
| void | setActivationWindow (QWidget *aw, bool activateOnMessage=true) |
| QWidget * | activationWindow () const |
| void | initialize (bool dummy=true) |
Static Public Member Functions | |
| static QString | cacheDirectoryPath () |
| Get path to the cache directory. More... | |
| static QString | qtVersion () |
| Get Qt library version. | |
| static QString | mdtVersion () |
| Get Mdt library version. | |
Additional Inherited Members | |
Public Slots inherited from QtSingleApplication | |
| bool | sendMessage (const QString &message, int timeout=5000) |
| void | activateWindow () |
Signals inherited from QtSingleApplication | |
| void | messageReceived (const QString &message) |
SingleApplication adds some helper to QtSingleCoreApplication for application initialization.
Definition at line 39 of file SingleApplication.h.
|
static |
Get path to the cache directory.
Returns StandardPaths::cacheDirectoryPath()
Definition at line 45 of file SingleApplication.cpp.
| void Mdt::SingleApplication::debugEnvironment | ( | ) |
Debug environment.
Will print various informations, like libraries versions, paths to some directories, etc.. to the console.
Definition at line 60 of file SingleApplication.cpp.
| void Mdt::SingleApplication::enableFileLogging | ( | ) |
Enable file logging.
After file logging was enabled, errors that are committed using Mdt::Error::commit() are added to the log file logFilePath() .
Definition at line 35 of file SingleApplication.cpp.
1.8.11