2
* Copyright 2011 Sebastian Kügler <sebas@kde.org>
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU Library General Public License as
6
* published by the Free Software Foundation; either version 2, or
7
* (at your option) any later version.
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU Library General Public License for more details
14
* You should have received a copy of the GNU Library General Public
15
* License along with this program; if not, write to the
16
* Free Software Foundation, Inc.,
17
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20
#include "settingsmodule.h"
26
#include <KServiceTypeTrader>
28
class SettingsModulePrivate {
31
SettingsModulePrivate(SettingsModule *q):
41
SettingsModule::SettingsModule(QObject *parent, const QVariantList &v) : QObject(parent),
42
d(new SettingsModulePrivate(this))
44
d = new SettingsModulePrivate(this);
48
SettingsModule::~SettingsModule()
53
QString SettingsModule::name()
58
QString SettingsModule::description()
60
return d->description;
63
QString SettingsModule::module()
68
QString SettingsModule::iconName()
73
void SettingsModule::setName(const QString &name)
75
if (d->name != name) {
81
void SettingsModule::setDescription(const QString &description)
83
if (d->description != description) {
84
d->description = description;
85
emit descriptionChanged();
89
void SettingsModule::setIconName(const QString &iconName)
91
if (d->iconName != iconName) {
92
d->iconName = iconName;
93
emit iconNameChanged();
97
void SettingsModule::setModule(const QString &module)
99
if (d->module != module) {
101
emit moduleChanged();
105
#include "settingsmodule.moc"