aboutsummaryrefslogtreecommitdiff
path: root/src/qmmpui/uiloader.h
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2017-03-04 16:30:35 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2017-03-04 16:30:35 +0000
commitb5989a764f73a0885303be38c3acd54d2f275946 (patch)
tree298c772c9f6abeba5e67188e8d57a64671e0580f /src/qmmpui/uiloader.h
parentd47d83591c0056d2e6236393e9d34577982459e0 (diff)
downloadqmmp-b5989a764f73a0885303be38c3acd54d2f275946.tar.gz
qmmp-b5989a764f73a0885303be38c3acd54d2f275946.tar.bz2
qmmp-b5989a764f73a0885303be38c3acd54d2f275946.zip
improved ui loader
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@7065 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/qmmpui/uiloader.h')
-rw-r--r--src/qmmpui/uiloader.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/qmmpui/uiloader.h b/src/qmmpui/uiloader.h
index 207e6e792..0f7e66c98 100644
--- a/src/qmmpui/uiloader.h
+++ b/src/qmmpui/uiloader.h
@@ -1,5 +1,5 @@
/***************************************************************************
- * Copyright (C) 2011-2013 by Ilya Kotov *
+ * Copyright (C) 2011-2017 by Ilya Kotov *
* forkotov02@hotmail.ru *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -21,13 +21,14 @@
#define UILOADER_H
#include <QString>
+#include <QStringList>
#include <QList>
#include <QObject>
#include "uifactory.h"
class QmmpUiPluginCache;
-/*! @brief The UiLoader provides user interface plugins access
+/*! @brief The UiLoader provides user interface plugins access.
* @author Ilya Kotov <forkotov02@hotmail.ru>
*/
class UiLoader
@@ -38,6 +39,10 @@ public:
*/
static QList<UiFactory*> factories();
/*!
+ * Returns a list of the ui plugin short names.
+ */
+ QStringList names() const;
+ /*!
* Returns plugin file path.
* @param factory User interface plugin factory.
*/
@@ -48,7 +53,12 @@ public:
*/
static void select(UiFactory* factory);
/*!
- * Returns \b true if general plugin is enabled, otherwise returns \b false
+ * Selects active user interface.
+ * @param name Ui plugin factory short name.
+ */
+ static void select(const QString &name);
+ /*!
+ * Returns \b true if general plugin is enabled, otherwise returns \b false.-
*/
static UiFactory *selected();