File: test.h

package info (click to toggle)
libplasma 6.5.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,796 kB
  • sloc: cpp: 17,769; sh: 286; xml: 95; python: 57; javascript: 29; makefile: 7
file content (38 lines) | stat: -rw-r--r-- 849 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
    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 <QString>
#include <plasma/containmentactions.h>

class ContextTest : public Plasma::ContainmentActions
{
    Q_OBJECT
public:
    ContextTest(QObject *parent, const QVariantList &args);

    void init(const KConfigGroup &config);

    QList<QAction *> contextualActions() override;

    void performNextAction() override;
    void performPreviousAction() override;

    QWidget *createConfigurationInterface(QWidget *parent) override;
    void configurationAccepted() override;

    void restore(const KConfigGroup &config) override;
    void save(KConfigGroup &config) override;

private:
    Ui::Config m_ui;
    QString m_text;
};

#endif