Qmmp
Loading...
Searching...
No Matches
uifactory.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 UIFACTORY_H
21#define UIFACTORY_H
22
23#include "qmmpui_export.h"
24
25class QObject;
26class QDialog;
27class QString;
28class QWidget;
29class Control;
30class General;
31
35{
36 QString name;
37 QString shortName;
38 bool hasAbout = false;
39};
44{
45public:
49 virtual ~UiFactory() {}
53 virtual UiProperties properties() const = 0;
57 virtual QObject *create() = 0;
62 virtual void showAbout(QWidget *parent) = 0;
66 virtual QString translation() const = 0;
67};
68
69Q_DECLARE_INTERFACE(UiFactory, "UiFactory/1.0")
70#endif
The General class provides simple access to general plugins.
Definition general.h:35
User interface plugin interface.
Definition uifactory.h:44
virtual QString translation() const =0
virtual void showAbout(QWidget *parent)=0
virtual QObject * create()=0
virtual UiProperties properties() const =0
virtual ~UiFactory()
Definition uifactory.h:49
Structure to store user interface plugin properies.
Definition uifactory.h:35
bool hasAbout
Definition uifactory.h:38
QString name
Definition uifactory.h:36
QString shortName
Definition uifactory.h:37