1fb9f6f13a
The main advantage of SPDX license identifiers over the traditional license headers is that it's more difficult to overlook inappropriate licenses for kwin, for example GPL 3. We also don't have to copy a lot of boilerplate text. In order to create this change, I ran licensedigger -r -c from the toplevel source directory.
61 lines
1 KiB
C++
61 lines
1 KiB
C++
/*
|
|
* SPDX-FileCopyrightText: 2011 Tamas Krutki <ktamasw@gmail.com>
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
#ifndef MODULE_H
|
|
#define MODULE_H
|
|
|
|
#include <KCModule>
|
|
#include <KSharedConfig>
|
|
|
|
namespace Ui
|
|
{
|
|
class Module;
|
|
}
|
|
|
|
class KJob;
|
|
|
|
class Module : public KCModule
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
/**
|
|
* Constructor.
|
|
*
|
|
* @param parent Parent widget of the module
|
|
* @param args Arguments for the module
|
|
*/
|
|
explicit Module(QWidget *parent, const QVariantList &args = QVariantList());
|
|
|
|
/**
|
|
* Destructor.
|
|
*/
|
|
~Module() override;
|
|
void load() override;
|
|
void save() override;
|
|
void defaults() override;
|
|
|
|
protected Q_SLOTS:
|
|
|
|
/**
|
|
* Called when the import script button is clicked.
|
|
*/
|
|
void importScript();
|
|
|
|
void importScriptInstallFinished(KJob *job);
|
|
|
|
private:
|
|
/**
|
|
* UI
|
|
*/
|
|
Ui::Module *ui;
|
|
/**
|
|
* Updates the contents of the list view.
|
|
*/
|
|
void updateListViewContents();
|
|
KSharedConfigPtr m_kwinConfig;
|
|
};
|
|
|
|
#endif // MODULE_H
|