! \brief Constructor */
| 24 | \brief Constructor |
| 25 | */ |
| 26 | QSingleApplication::QSingleApplication(int& argc, char** argv, bool useGui, |
| 27 | const QString& appName) |
| 28 | : QApplication(argc, argv, useGui) { |
| 29 | setApplicationName(appName); |
| 30 | |
| 31 | pChannel = new QInterProcessChannel(this); |
| 32 | |
| 33 | connect(pChannel, SIGNAL(message(QString)), this, SLOT(message(QString))); |
| 34 | |
| 35 | connect(pChannel, SIGNAL(request(QStringList)), this, |
| 36 | SLOT(request(QStringList))); |
| 37 | |
| 38 | setMessagingPolicy(Signals); |
| 39 | setInstanciationPolicy(None); |
| 40 | } |
| 41 | |
| 42 | /*! |
| 43 | \brief Destructor |
nothing calls this directly
no outgoing calls
no test coverage detected