not quite so much needs to be delayed to the init() function
[personal-kdebase.git] / workspace / khotkeys / kcm_hotkeys / kcm_hotkeys.h
blob07214b05d55155d50107327ac31ad4748ac8c57e
1 /*
2 Copyright (C) 2008 Michael Jansen <kde@michael-jansen.biz>
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library 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 library 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 Library General Public License for more details.
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 Boston, MA 02110-1301, USA.
19 #ifndef KCMHOTKEYS_H
20 #define KCMHOTKEYS_H
22 #include <KCModule>
24 #include <QtCore/QModelIndex>
26 class KCMHotkeysPrivate;
27 class QWidget;
29 namespace KHotKeys {
30 class ActionDataBase;
33 /**
34 * @brief KCMHotkeys KDE KCM Hotkeys Configuration Module
35 * @author Michael Jansen <kde@michael-jansen.biz>
36 * @date 2008-03-07
38 class KCMHotkeys : public KCModule
40 Q_OBJECT
42 public:
44 /**
45 * Create the module.
47 * @param parent Parent widget
49 KCMHotkeys( QWidget *parent, const QVariantList &arg );
51 /**
52 * Destroy the module
54 virtual ~KCMHotkeys();
56 /**
57 * Set all settings back to defaults.
59 void defaults();
61 /**
62 * Load all settings.
64 void load();
66 /**
67 * Save the settings
69 void save();
73 public Q_SLOTS:
75 void slotChanged();
77 /**
78 * Call when the current item has changed
80 void currentChanged( const QModelIndex &current, const QModelIndex &previous );
82 private:
84 Q_PRIVATE_SLOT(d, void slotHotkeyChanged(KHotKeys::ActionDataBase*))
86 KCMHotkeysPrivate *d;
89 #endif /* #ifndef KCMHOTKEYS_HPP */