not quite so much needs to be delayed to the init() function
[personal-kdebase.git] / workspace / libs / solid / control / managerbase_p.h
blobfd1a81303aa9a3e76e5d1d9831da83f055653ef6
1 /* This file is part of the KDE project
2 Copyright (C) 2006-2007 Kevin Ottens <ervin@kde.org>
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 version 2 as published by the Free Software Foundation.
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.
20 #ifndef SOLID_MANAGERBASE_P_H
21 #define SOLID_MANAGERBASE_P_H
23 #include <QObject>
24 #include <QString>
26 #include "solid/control/solid_control_export.h"
28 namespace Solid
30 namespace Control
32 class ManagerBasePrivate
34 public:
35 ManagerBasePrivate();
36 virtual ~ManagerBasePrivate();
37 void loadBackend(const QString &description, const char *serviceName, const char *backendClassName);
39 SOLIDCONTROL_EXPORT static void _k_forcePreloadedBackend(const char *backendClassName, QObject *backend);
41 QObject *managerBackend() const;
42 QString errorText() const;
44 private:
45 QObject *m_backend;
46 QString m_errorText;
51 #endif