From b5989a764f73a0885303be38c3acd54d2f275946 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sat, 4 Mar 2017 16:30:35 +0000 Subject: improved ui loader git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@7065 90c681e8-e032-0410-971d-27865f9a5e38 --- src/qmmpui/uiloader.h | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'src/qmmpui/uiloader.h') 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 +#include #include #include #include "uifactory.h" class QmmpUiPluginCache; -/*! @brief The UiLoader provides user interface plugins access +/*! @brief The UiLoader provides user interface plugins access. * @author Ilya Kotov */ class UiLoader @@ -37,6 +38,10 @@ public: * Returns a list of the loaded ui plugin factories. */ static QList 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(); -- cgit v1.2.3-13-gbd6f