From d5ad7202ea77e8a512073f9ce09b6c07e37d6305 Mon Sep 17 00:00:00 2001 From: Miquel Lionel Date: Sun, 6 Feb 2022 20:42:01 +0100 Subject: Move notifications to own header file - also make a skel for files in /usr/, useful for sounds and notifyrc - build.sh use plain simple cp -r to copy the skel. also copies the knotifications5 in the current directory for qml.qrc embedding in case the app is used on android. --- notifications.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 notifications.h (limited to 'notifications.h') diff --git a/notifications.h b/notifications.h new file mode 100644 index 0000000..5d7852b --- /dev/null +++ b/notifications.h @@ -0,0 +1,13 @@ +#pragma once +#include + +class DcNotifications: public QObject { + Q_OBJECT +public: + explicit DcNotifications(QObject *parent = nullptr); + //explicit DcEvent(dc_event_t *event); + + //~DcNotifications(); + + Q_INVOKABLE void send(QString event, QString pfpPath, QString title, QString message); +}; -- cgit v1.2.3-70-g09d2