aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/General/library/libraryfactory.h
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2020-12-23 19:04:46 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2020-12-23 19:04:46 +0000
commit4e00d3b0f49f89a26c8bbe864f9af58a38d5aba8 (patch)
treed121e10c883a91521f0eab8f96b7d362668773d6 /src/plugins/General/library/libraryfactory.h
parent8fa1aec3cd3413dc6ff0c4049395cc0a70afe15f (diff)
downloadqmmp-4e00d3b0f49f89a26c8bbe864f9af58a38d5aba8.tar.gz
qmmp-4e00d3b0f49f89a26c8bbe864f9af58a38d5aba8.tar.bz2
qmmp-4e00d3b0f49f89a26c8bbe864f9af58a38d5aba8.zip
library: added widget
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@9601 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/General/library/libraryfactory.h')
-rw-r--r--src/plugins/General/library/libraryfactory.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/plugins/General/library/libraryfactory.h b/src/plugins/General/library/libraryfactory.h
index d9500bcbb..ce818b2a1 100644
--- a/src/plugins/General/library/libraryfactory.h
+++ b/src/plugins/General/library/libraryfactory.h
@@ -17,14 +17,18 @@
* Free Software Foundation, Inc., *
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
+
#ifndef LIBRARYFACTORY_H
#define LIBRARYFACTORY_H
#include <QObject>
#include <QDialog>
+#include <QPointer>
#include <qmmpui/general.h>
#include <qmmpui/generalfactory.h>
+class LibraryWidget;
+
/**
@author Ilya Kotov <forkotov02@ya.ru>
*/
@@ -36,9 +40,18 @@ Q_INTERFACES(GeneralFactory)
public:
GeneralProperties properties() const override;
QObject *create(QObject *parent) override;
+ QWidget *createWidget(int id, QWidget *parent) override;
QDialog *createConfigDialog(QWidget *parent) override;
void showAbout(QWidget *parent) override;
QString translation() const override;
+
+private:
+ enum WidgetType
+ {
+ LIBRARY_WIDGET = 0
+ };
+
+ QPointer<LibraryWidget> m_libraryWidget;
};
#endif // LIBRARYFACTORY_H