/* SPDX-FileCopyrightText: 2020 Michail Vourlakos SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef APPINTERFACES_H #define APPINTERFACES_H // Qt #include // Plasma #include namespace Latte{ class Interfaces: public QObject { Q_OBJECT Q_PROPERTY(QObject *plasmoidInterface READ plasmoidInterface WRITE setPlasmoidInterface NOTIFY interfaceChanged) Q_PROPERTY(QObject *globalShortcuts READ globalShortcuts NOTIFY globalShortcutsChanged) Q_PROPERTY(QObject *layoutsManager READ layoutsManager NOTIFY layoutsManagerChanged) Q_PROPERTY(QObject *themeExtended READ themeExtended NOTIFY themeExtendedChanged) Q_PROPERTY(QObject *universalSettings READ universalSettings NOTIFY universalSettingsChanged) Q_PROPERTY(QObject *view READ view NOTIFY viewChanged) public: explicit Interfaces(QObject *parent = nullptr); QObject *globalShortcuts() const; QObject *layoutsManager() const; QObject *themeExtended() const; QObject *universalSettings() const; QObject *view() const; QObject *plasmoidInterface() const; void setPlasmoidInterface(QObject *interface); public slots: Q_INVOKABLE void updateView(); signals: void interfaceChanged(); void globalShortcutsChanged(); void layoutsManagerChanged(); void themeExtendedChanged(); void universalSettingsChanged(); void viewChanged(); private: void setGlobalShortcuts(QObject *shortcuts); void setLayoutsManager(QObject *manager); void setThemeExtended(QObject *theme); void setUniversalSettings(QObject *settings); void setView(QObject *view); private: QObject *m_globalShortcuts{nullptr}; QObject *m_layoutsManager{nullptr}; QObject *m_themeExtended{nullptr}; QObject *m_universalSettings{nullptr}; QObject *m_view{nullptr}; PlasmaQuick::AppletQuickItem *m_plasmoid{nullptr}; }; } #endif