2009-08-18 01:40:25 +02:00
|
|
|
/*
|
2020-08-13 21:08:54 +02:00
|
|
|
SPDX-FileCopyrightText: 2009 Chani Armitage <chani@kde.org>
|
|
|
|
|
|
|
|
SPDX-License-Identifier: LGPL-2.0-or-later
|
|
|
|
*/
|
2009-08-18 01:40:25 +02:00
|
|
|
|
|
|
|
#ifndef CONTEXTTEST_HEADER
|
|
|
|
#define CONTEXTTEST_HEADER
|
|
|
|
|
|
|
|
#include "ui_config.h"
|
|
|
|
#include <plasma/containmentactions.h>
|
|
|
|
#include <QString>
|
|
|
|
|
|
|
|
class ContextTest : public Plasma::ContainmentActions
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
2014-04-26 01:45:47 +02:00
|
|
|
public:
|
|
|
|
ContextTest(QObject *parent, const QVariantList &args);
|
2009-08-18 01:40:25 +02:00
|
|
|
|
2014-04-26 01:45:47 +02:00
|
|
|
void init(const KConfigGroup &config);
|
2009-08-18 01:40:25 +02:00
|
|
|
|
2018-01-26 15:48:27 +01:00
|
|
|
QList<QAction *> contextualActions() override;
|
2014-04-25 13:21:09 +02:00
|
|
|
|
2018-01-26 15:48:27 +01:00
|
|
|
void performNextAction() override;
|
|
|
|
void performPreviousAction() override;
|
2009-08-18 01:40:25 +02:00
|
|
|
|
2018-01-26 15:48:27 +01:00
|
|
|
QWidget *createConfigurationInterface(QWidget *parent) override;
|
|
|
|
void configurationAccepted() override;
|
|
|
|
void save(KConfigGroup &config) override;
|
2009-08-18 01:40:25 +02:00
|
|
|
|
2014-04-26 01:45:47 +02:00
|
|
|
private:
|
|
|
|
Ui::Config m_ui;
|
|
|
|
QString m_text;
|
|
|
|
};
|
2009-08-18 01:40:25 +02:00
|
|
|
|
|
|
|
#endif
|