1
/* This file is part of KNemo
2
Copyright (C) 2006 Percy Leonhardt <percy@eris23.de>
3
Copyright (C) 2009 John Stamp <jstamp@users.sourceforge.net>
5
KNemo is free software; you can redistribute it and/or modify
6
it under the terms of the GNU Library General Public License as
7
published by the Free Software Foundation; either version 2 of
8
the License, or (at your option) any later version.
10
KNemo is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU Library General Public License for more details.
15
You should have received a copy of the GNU Library General Public License
16
along with this library; see the file COPYING.LIB. If not, write to
17
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18
Boston, MA 02110-1301, USA.
21
#ifndef DAEMONREGISTRY_H
22
#define DAEMONREGISTRY_H
24
#include "sysbackend.h"
25
#include "nettoolsbackend.h"
28
* This registry tells KNemo what backends are available
29
* and how they can be created. It is only used by the daemon
30
* to create the selected backend. Two registries were
31
* necessary to avoid linking the KCM module against all backends.
33
* @short Registry for all backends
34
* @author Percy Leonhardt <percy@eris23.de>
37
struct DaemonRegistryEntry
40
BackendBase* (*function) ( QHash<QString, Interface *>& );
43
DaemonRegistryEntry DaemonRegistry[] =
45
{ "Sys", SysBackend::createInstance },
46
{ "Nettools", NetToolsBackend::createInstance },
50
#endif // DAEMONREGISTRY_H