plasma-framework/examples/testcontainmentactionsplugin/test.h

37 lines
793 B
C
Raw Normal View History

/*
SPDX-FileCopyrightText: 2009 Chani Armitage <chani@kde.org>
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#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);
2014-04-26 01:45:47 +02:00
void init(const KConfigGroup &config);
QList<QAction *> contextualActions() override;
2014-04-25 13:21:09 +02:00
void performNextAction() override;
void performPreviousAction() override;
QWidget *createConfigurationInterface(QWidget *parent) override;
void configurationAccepted() override;
void save(KConfigGroup &config) override;
2014-04-26 01:45:47 +02:00
private:
Ui::Config m_ui;
QString m_text;
};
#endif