summaryrefslogtreecommitdiff
path: root/sensorlogd.cpp
diff options
context:
space:
mode:
authorArseniy-Movshev <dodoradio@outlook.com>2023-03-19 11:14:04 +0000
committerArseniy-Movshev <dodoradio@outlook.com>2023-05-26 00:32:20 +0100
commitec42177b24b47ba68b3ae49634c942c76a9f92d4 (patch)
treeb0b85601ef46f4e0bd8bb94f81eb89faaf8da5f1 /sensorlogd.cpp
parentbfe0c3f7a03c53cff7a4050a42f14eaa210364f8 (diff)
Restructure to split to daemon and qml accessor
- add separate subdirs for daemon and qml - add some generic qml boilerplate - add a really lazy 'last value' loader implementation - license the project as gplv3 (add copyright notices and license text)
Diffstat (limited to '')
-rw-r--r--sensorlogd.cpp24
1 files changed, 0 insertions, 24 deletions
diff --git a/sensorlogd.cpp b/sensorlogd.cpp
deleted file mode 100644
index 884b55c..0000000
--- a/sensorlogd.cpp
+++ /dev/null
@@ -1,24 +0,0 @@
-#include <QCoreApplication>
-#include <QDBusConnection>
-#include <QDebug>
-#include "logger.h"
-
-int main(int argc, char **argv)
-{
- QCoreApplication qcoreapp(argc, argv);
- if (!QDBusConnection::systemBus().isConnected()) {
- fprintf(stderr, "Cannot connect to the D-Bus system bus.\n");
- return 3;
- }
- if (!QDBusConnection::sessionBus().isConnected()) {
- fprintf(stderr, "Cannot connect to the D-Bus session bus.\n");
- return 2;
- }
- Logger sensorsLogger;
- QCoreApplication::setOrganizationName("asteroid");
- QCoreApplication::setOrganizationDomain("asteroidos.org");
- QCoreApplication::setApplicationName("healthd");
- qDebug() << "healthd started";
- qcoreapp.exec();
- return 0;
-}