add more spacing
[personal-kdebase.git] / runtime / kcontrol / kded / kcmkded.h
blobaff51ed83ede264a48a233a361019c6de72a497b
1 /* This file is part of the KDE project
2 Copyright (C) 2002 Daniel Molkentin <molkentin@kde.org>
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (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 GNU
12 General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; see the file COPYING. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 Boston, MA 02110-1301, USA.
19 #ifndef KCMKDED_H
20 #define KCMKDED_H
22 #include <kcmodule.h>
24 class QPushButton;
25 class QTreeWidget;
26 class QTreeWidgetItem;
27 class KConfig;
29 class KDEDConfig : public KCModule
31 Q_OBJECT
32 public:
33 explicit KDEDConfig(QWidget* parent, const QVariantList& foo = QVariantList());
34 ~KDEDConfig() {}
36 void load();
37 void save();
38 void defaults();
40 protected Q_SLOTS:
41 void slotReload();
42 void slotStartService();
43 void slotStopService();
44 void slotServiceRunningToggled();
45 void slotEvalItem(QTreeWidgetItem *item);
46 void slotLodItemSelected(QTreeWidgetItem *item);
47 void slotItemChecked(QTreeWidgetItem *item, int column);
48 void getServiceStatus();
50 bool autoloadEnabled(KConfig *config, const QString &filename);
51 void setAutoloadEnabled(KConfig *config, const QString &filename, bool b);
53 private:
54 QTreeWidget *_lvLoD;
55 QTreeWidget *_lvStartup;
56 QPushButton *_pbStart;
57 QPushButton *_pbStop;
59 QString RUNNING;
60 QString NOT_RUNNING;
63 #endif // KCMKDED_H