/* SPDX-FileCopyrightText: 2009 Chani Armitage SPDX-FileCopyrightText: 2018 Eike Hein SPDX-License-Identifier: LGPL-2.0-or-later */ #pragma once #include #include class QAction; namespace TaskManager { class VirtualDesktopInfo; } class SwitchDesktop : public Plasma::ContainmentActions { Q_OBJECT public: SwitchDesktop(QObject *parent, const QVariantList &args); ~SwitchDesktop() override; QList contextualActions() override; void performNextAction() override; void performPreviousAction() override; private Q_SLOTS: void switchTo(); private: QHash m_actions; TaskManager::VirtualDesktopInfo *const m_virtualDesktopInfo; };