File indexing completed on 2025-01-26 05:00:55

0001 /*
0002  *   SPDX-FileCopyrightText: 2012, 2013, 2014 Ivan Cukic <ivan.cukic(at)kde.org>
0003  *
0004  *   SPDX-License-Identifier: GPL-2.0-or-later
0005  */
0006 
0007 #pragma once
0008 
0009 #include <Plugin.h>
0010 
0011 class VirtualDesktopSwitchPlugin : public Plugin
0012 {
0013     Q_OBJECT
0014 
0015 public:
0016     explicit VirtualDesktopSwitchPlugin(QObject *parent);
0017     ~VirtualDesktopSwitchPlugin() override;
0018 
0019     bool init(QHash<QString, QObject *> &modules) override;
0020 
0021 private Q_SLOTS:
0022     void currentActivityChanged(const QString &activity);
0023     void activityRemoved(const QString &activity);
0024 
0025 private:
0026     QString m_currentActivity;
0027     QObject *m_activitiesService;
0028 };