diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-07-02 09:24:39 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-07-02 09:24:39 +0200 |
commit | 9fbab94798455c79bfadee9041a78bd47ff642e4 (patch) | |
tree | 48aeaec9ad406caab07f7f4449cf01eebb17ea9c /src/singleapplication.h | |
parent | Add WIN32 to windows executable (diff) | |
download | smolbote-9fbab94798455c79bfadee9041a78bd47ff642e4.tar.xz |
Replace SingleApplication with itay-grudev/SingleApplication
Diffstat (limited to 'src/singleapplication.h')
-rw-r--r-- | src/singleapplication.h | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/src/singleapplication.h b/src/singleapplication.h deleted file mode 100644 index 84c0fda..0000000 --- a/src/singleapplication.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * This file is part of smolbote. It's copyrighted by the contributors recorded - * in the version control history of the file, available from its original - * location: https://neueland.iserlohn-fortress.net/smolbote.hg - * - * SPDX-License-Identifier: GPL-3.0 - */ - -#ifndef SMOLBOTE_SINGLEAPPLICATION_H -#define SMOLBOTE_SINGLEAPPLICATION_H - -#include <QApplication> - -class QLocalServer; -class SingleApplication : public QApplication -{ - Q_OBJECT - -public: - explicit SingleApplication(int &argc, char **argv); - ~SingleApplication() override; - - bool bindLocalSocket(const QString &name); - QString serverName() const; - - int sendMessage(const QByteArray &data); - int sendMessage(const QJsonObject &message); - -signals: - void messageAvailable(const QJsonObject &object); - -private slots: - void receiveMessage(); - -private: - const int LOCALSERVER_TIMEOUT = 500; - QString LOCALSERVER_KEY; - - QLocalServer *m_localServer = nullptr; -}; - -#endif // SMOLBOTE_SINGLEAPPLICATION_H |