Qmmp
Loading...
Searching...
No Matches
uiloader.h
1/***************************************************************************
2 * Copyright (C) 2011-2022 by Ilya Kotov *
3 * forkotov02@ya.ru *
4 * *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation; either version 2 of the License, or *
8 * (at your option) any later version. *
9 * *
10 * This program 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 General Public License for more details. *
14 * *
15 * You should have received a copy of the GNU General Public License *
16 * along with this program; if not, write to the *
17 * Free Software Foundation, Inc., *
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
19 ***************************************************************************/
20#ifndef UILOADER_H
21#define UILOADER_H
22
23#include <QString>
24#include <QStringList>
25#include <QList>
26#include <QObject>
27#include "uifactory.h"
28#include "qmmpui_export.h"
29
30class QmmpUiPluginCache;
31
35class QMMPUI_EXPORT UiLoader
36{
37public:
41 static QList<UiFactory*> factories();
45 static QStringList names();
50 static QString file(UiFactory *factory);
55 static void select(UiFactory* factory);
60 static void select(const QString &name);
65
66private:
67 static void loadPlugins();
68 static QList<QmmpUiPluginCache*> *m_cache;
69};
70
71#endif //UILOADER_H
User interface plugin interface.
Definition uifactory.h:44
The UiLoader provides user interface plugins access.
Definition uiloader.h:36
static QList< UiFactory * > factories()
static QString file(UiFactory *factory)
static void select(UiFactory *factory)
static UiFactory * selected()
static QStringList names()
static void select(const QString &name)