diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2013-05-13 17:13:32 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2013-05-13 17:13:32 +0000 |
| commit | 623485b2c143d736656134750c8004c437cd6d68 (patch) | |
| tree | a7598a8337fc9f3565d3544c07a0539d03ae3afb /src/qmmpui/uiloader.h | |
| parent | d26972aaac0fa0ec67b9958a79eff90e09d3df30 (diff) | |
| download | qmmp-623485b2c143d736656134750c8004c437cd6d68.tar.gz qmmp-623485b2c143d736656134750c8004c437cd6d68.tar.bz2 qmmp-623485b2c143d736656134750c8004c437cd6d68.zip | |
added cache for ui plugins
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@3465 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/qmmpui/uiloader.h')
| -rw-r--r-- | src/qmmpui/uiloader.h | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/src/qmmpui/uiloader.h b/src/qmmpui/uiloader.h index df20c4b7e..207e6e792 100644 --- a/src/qmmpui/uiloader.h +++ b/src/qmmpui/uiloader.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2011 by Ilya Kotov * + * Copyright (C) 2011-2013 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -17,13 +17,16 @@ * Free Software Foundation, Inc., * * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ -#ifndef UI_H -#define UI_H +#ifndef UILOADER_H +#define UILOADER_H -#include <QStringList> -#include <QHash> +#include <QString> +#include <QList> +#include <QObject> #include "uifactory.h" +class QmmpUiPluginCache; + /*! @brief The UiLoader provides user interface plugins access * @author Ilya Kotov <forkotov02@hotmail.ru> */ @@ -33,7 +36,7 @@ public: /*! * Returns a list of the loaded ui plugin factories. */ - static QList<UiFactory*> *factories(); + static QList<UiFactory*> factories(); /*! * Returns plugin file path. * @param factory User interface plugin factory. @@ -50,9 +53,8 @@ public: static UiFactory *selected(); private: - static QList<UiFactory*> *m_factories; - static QHash <UiFactory*, QString> *m_files; - static void checkFactories(); + static void loadPlugins(); + static QList<QmmpUiPluginCache*> *m_cache; }; -#endif //UI_H +#endif //UILOADER_H |
