From 623485b2c143d736656134750c8004c437cd6d68 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Mon, 13 May 2013 17:13:32 +0000 Subject: 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 --- src/qmmpui/uiloader.h | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'src/qmmpui/uiloader.h') 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 -#include +#include +#include +#include #include "uifactory.h" +class QmmpUiPluginCache; + /*! @brief The UiLoader provides user interface plugins access * @author Ilya Kotov */ @@ -33,7 +36,7 @@ public: /*! * Returns a list of the loaded ui plugin factories. */ - static QList *factories(); + static QList factories(); /*! * Returns plugin file path. * @param factory User interface plugin factory. @@ -50,9 +53,8 @@ public: static UiFactory *selected(); private: - static QList *m_factories; - static QHash *m_files; - static void checkFactories(); + static void loadPlugins(); + static QList *m_cache; }; -#endif //UI_H +#endif //UILOADER_H -- cgit v1.2.3-13-gbd6f