add more spacing
[personal-kdebase.git] / workspace / khotkeys / kcm_hotkeys / kcm_module_factory.cpp
blobc349b6b015b28330d5ed867f2188b271cbc2ce23
1 /* Copyright (C) 2008 Michael Jansen <kde@michael-jansen.biz>
3 This library is free software; you can redistribute it and/or
4 modify it under the terms of the GNU Library General Public
5 License as published by the Free Software Foundation; either
6 version 2 of the License, or (at your option) any later version.
8 This library is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 Library General Public License for more details.
13 You should have received a copy of the GNU Library General Public License
14 along with this library; see the file COPYING.LIB. If not, write to
15 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16 Boston, MA 02110-1301, USA.
19 #include "kcm_module_factory.h"
21 // local
22 #include "kcm_hotkeys.h"
23 #include "kcm_gestures.h"
25 // libkhotkeys
26 #include "daemon/daemon.h"
28 // KDE
29 #include <KDE/KDebug>
30 #include <KDE/KToolInvocation>
32 K_PLUGIN_FACTORY_DEFINITION(
33 KCMModuleFactory,
34 registerPlugin<KCMHotkeys>("khotkeys");
35 // registerPlugin<KCMGestures>("gestures");
37 K_EXPORT_PLUGIN(KCMModuleFactory("kcm_khotkeys"))
40 extern "C"
42 KDE_EXPORT void kcminit_khotkeys()
44 kDebug() << "Starting khotkeys daemon";
46 // If the daemon is not enabled there is nothing to do
47 if (!KHotKeys::Daemon::isEnabled())
49 kDebug() << "KHotKeys daemon is disabled.";
50 return;
53 } // kcminit_khotkeys()