forked from Qortal/Brooklyn
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
770 B
36 lines
770 B
/* |
|
SPDX-FileCopyrightText: 2009 Chani Armitage <[email protected]> |
|
|
|
SPDX-License-Identifier: LGPL-2.0-or-later |
|
*/ |
|
|
|
#pragma once |
|
|
|
#include <plasma/containmentactions.h> |
|
|
|
#include <kactivities/consumer.h> |
|
#include <kactivities/controller.h> |
|
|
|
class QAction; |
|
|
|
class SwitchActivity : public Plasma::ContainmentActions |
|
{ |
|
Q_OBJECT |
|
public: |
|
SwitchActivity(QObject *parent, const QVariantList &args); |
|
~SwitchActivity() override; |
|
|
|
QList<QAction *> contextualActions() override; |
|
|
|
void performNextAction() override; |
|
void performPreviousAction() override; |
|
|
|
private Q_SLOTS: |
|
void switchTo(QAction *action); |
|
void makeMenu(); |
|
|
|
private: |
|
QList<QAction *> m_actions; |
|
KActivities::Consumer m_consumer; |
|
KActivities::Controller m_controller; |
|
};
|
|
|