From 360c9e2d623be8c8a7479d3e170114fe75dcc4c7 Mon Sep 17 00:00:00 2001 From: Alexander Kavon Date: Thu, 6 Nov 2025 01:30:43 -0500 Subject: kue a kanban todo app for kde plasma --- src/kueapplication.h | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 src/kueapplication.h (limited to 'src/kueapplication.h') diff --git a/src/kueapplication.h b/src/kueapplication.h new file mode 100644 index 0000000..888c592 --- /dev/null +++ b/src/kueapplication.h @@ -0,0 +1,37 @@ +// SPDX-FileCopyrightText: 2024 Alexander Kavon +// SPDX-License-Identifier: GPL-2.0-or-later + +#pragma once + +#include +#include +#include + +using namespace Qt::StringLiterals; + +namespace Akonadi { + class Session; +} + +class KueApplication : public AbstractKirigamiApplication +{ + Q_OBJECT + QML_ELEMENT + Q_PROPERTY(bool loading READ loading NOTIFY loadingChanged) + Q_PROPERTY(KDescendantsProxyModel *descendantsProxyModel READ descendantsProxyModel CONSTANT) + + bool loading() const; + Akonadi::Session *session() const; + +public: + explicit KueApplication(QObject *parent = nullptr); + KDescendantsProxyModel *descendantsProxyModel() const; + +Q_SIGNALS: + void loadingChanged(); + +private: + bool m_loading; + Akonadi::Session *m_session; + KDescendantsProxyModel *m_descendantsProxyModel; +}; -- cgit v1.2.3