aboutsummaryrefslogtreecommitdiff
path: root/src/singleapplication.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/singleapplication.h')
-rw-r--r--src/singleapplication.h42
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