diff options
Diffstat (limited to 'src/qmmpui/general.h')
| -rw-r--r-- | src/qmmpui/general.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/qmmpui/general.h b/src/qmmpui/general.h index 14b1af26a..9e4bc0d01 100644 --- a/src/qmmpui/general.h +++ b/src/qmmpui/general.h @@ -47,6 +47,9 @@ public: * Returns a list of the enabled general plugin factories. */ static QList<GeneralFactory *> enabledFactories(); + static QStringList enabledWidgets(); + static WidgetDescription widgetDescription(const QString &id); + static QWidget *createWidget(const QString &id, QWidget *parent); /*! * Returns plugin file path. * @param factory General plugin factory. @@ -57,13 +60,13 @@ public: * @param factory General plugin factory. * @param enable Plugin enable state (\b true - enable, \b false - disable) */ - static void setEnabled(GeneralFactory* factory, bool enable = true); + static void setEnabled(GeneralFactory *factory, bool enable = true); /*! * Shows configuration dialog and updates settings automatically. * @param factory General plugin factory. * @param parentWidget Parent widget. */ - static void showSettings(GeneralFactory* factory, QWidget* parentWidget); + static void showSettings(GeneralFactory *factory, QWidget *parentWidget); /*! * Returns \b true if general plugin is enabled, otherwise returns \b false * @param factory General plugin factory. @@ -71,6 +74,8 @@ public: static bool isEnabled(const GeneralFactory* factory); private: + General() {} + ~General() {} static void loadPlugins(); static QHash <GeneralFactory*, QObject*> *m_generals; static QObject *m_parent; |
