// 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; };