/* SPDX-FileCopyrightText: 2014 Bhushan Shah SPDX-FileCopyrightText: 2014 Marco Martin SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL */ #pragma once #include "plasmawindowedcorona.h" #include #include #include class KStatusNotifierItem; class PlasmaWindowedView : public QQuickView { Q_OBJECT public: explicit PlasmaWindowedView(QWindow *parent = nullptr); ~PlasmaWindowedView() override; void setApplet(Plasma::Applet *applet); void setHasStatusNotifier(bool stay); void showConfigurationInterface(); protected: void resizeEvent(QResizeEvent *ev) override; void mouseReleaseEvent(QMouseEvent *ev) override; void moveEvent(QMoveEvent *ev) override; void hideEvent(QHideEvent *ev) override; void keyPressEvent(QKeyEvent *ev) override; protected Q_SLOTS: void showConfigurationInterface(Plasma::Applet *applet); void minimumWidthChanged(); void minimumHeightChanged(); void maximumWidthChanged(); void maximumHeightChanged(); private: void updateSniIcon(); void updateSniTitle(); void updateSniStatus(); Plasma::Applet *m_applet; QPointer m_layout; QPointer m_configView; QPointer m_rootObject; QPointer m_appletInterface; QPointer m_statusNotifier; bool m_withStatusNotifier; };