/* * SPDX-FileCopyrightText: 2015 Marco Martin * * SPDX-License-Identifier: GPL-2.0-or-later */ #pragma once #include #include #include class TaskPanel : public Plasma::Containment { Q_OBJECT Q_PROPERTY(bool showRotationButton READ showRotationButton NOTIFY showRotationButtonChanged) public: TaskPanel(QObject *parent, const KPluginMetaData &data, const QVariantList &args); Q_INVOKABLE void triggerTaskSwitcher() const; bool showRotationButton() const; Q_INVOKABLE void rotateToSuggestedRotation(); Q_SIGNALS: void showRotationButtonChanged(); private Q_SLOTS: void updateShowRotationButton(); private: bool m_showRotationButton{false}; KScreen::Output::Rotation m_rotateTo; KScreen::ConfigPtr m_config{nullptr}; QOrientationSensor *m_sensor{nullptr}; };