2011-12-21 06:28:51 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2011 Tamas Krutki <ktamasw@gmail.com>
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef MODULE_H
|
|
|
|
#define MODULE_H
|
|
|
|
|
2014-03-17 15:24:10 +00:00
|
|
|
#include <KCModule>
|
|
|
|
#include <KSharedConfig>
|
2011-12-21 06:28:51 +00:00
|
|
|
|
|
|
|
namespace Ui
|
|
|
|
{
|
|
|
|
class Module;
|
|
|
|
}
|
|
|
|
|
|
|
|
class Module : public KCModule
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
/**
|
|
|
|
* Constructor.
|
|
|
|
*
|
|
|
|
* @param parent Parent widget of the module
|
|
|
|
* @param args Arguments for the module
|
|
|
|
*/
|
2012-12-29 06:34:38 +00:00
|
|
|
explicit Module(QWidget *parent, const QVariantList &args = QVariantList());
|
2011-12-21 06:28:51 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Destructor.
|
|
|
|
*/
|
|
|
|
~Module();
|
2012-02-18 09:38:23 +00:00
|
|
|
virtual void load();
|
|
|
|
virtual void save();
|
|
|
|
virtual void defaults();
|
2011-12-21 06:28:51 +00:00
|
|
|
|
2013-09-30 09:14:05 +00:00
|
|
|
protected Q_SLOTS:
|
2011-12-21 06:28:51 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Called when the import script button is clicked.
|
|
|
|
*/
|
|
|
|
void importScript();
|
2012-05-06 14:54:12 +00:00
|
|
|
void slotGHNSClicked();
|
2011-12-21 06:28:51 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
/**
|
|
|
|
* UI
|
|
|
|
*/
|
|
|
|
Ui::Module *ui;
|
|
|
|
/**
|
|
|
|
* Updates the contents of the list view.
|
|
|
|
*/
|
|
|
|
void updateListViewContents();
|
2012-02-18 09:38:23 +00:00
|
|
|
KSharedConfigPtr m_kwinConfig;
|
2011-12-21 06:28:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // MODULE_H
|