source: calamares/trunk/fuentes/src/libcalamares/utils/PluginFactory_p.h @ 7538

Last change on this file since 7538 was 7538, checked in by kbut, 13 months ago

sync with github

File size: 1.5 KB
Line 
1/* === This file is part of Calamares - <https://github.com/calamares> ===
2 *
3 *   Copyright 2015, Teo Mrnjavac <teo@kde.org>
4 *
5 *   Based on KPluginFactory from KCoreAddons, KDE project
6 *   Copyright 2007, Matthias Kretz <kretz@kde.org>
7 *   Copyright 2007, Bernhard Loos <nhuh.put@web.de>
8 *
9 *   Calamares is free software: you can redistribute it and/or modify
10 *   it under the terms of the GNU General Public License as published by
11 *   the Free Software Foundation, either version 3 of the License, or
12 *   (at your option) any later version.
13 *
14 *   Calamares is distributed in the hope that it will be useful,
15 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
16 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 *   GNU General Public License for more details.
18 *
19 *   You should have received a copy of the GNU General Public License
20 *   along with Calamares. If not, see <http://www.gnu.org/licenses/>.
21 */
22
23#ifndef CALAMARESPLUGINFACTORY_P_H
24#define CALAMARESPLUGINFACTORY_P_H
25
26#include "PluginFactory.h"
27
28#include <QtCore/QHash>
29
30namespace Calamares
31{
32
33class PluginFactoryPrivate
34{
35    Q_DECLARE_PUBLIC(PluginFactory)
36protected:
37    typedef QPair<const QMetaObject *, PluginFactory::CreateInstanceFunction> Plugin;
38
39    PluginFactoryPrivate()
40        : catalogInitialized( false )
41        , q_ptr( nullptr )
42    {}
43    ~PluginFactoryPrivate() {}
44
45    QHash<QString, Plugin> createInstanceHash;
46    QString catalogName;
47    bool catalogInitialized;
48
49    PluginFactory *q_ptr;
50};
51
52}
53
54#endif // CALAMARESPLUGINFACTORY_P_H
Note: See TracBrowser for help on using the repository browser.