From d26972aaac0fa0ec67b9958a79eff90e09d3df30 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Mon, 13 May 2013 14:27:34 +0000 Subject: added cache for general plugins git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@3464 90c681e8-e032-0410-971d-27865f9a5e38 --- src/qmmpui/general.h | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'src/qmmpui/general.h') diff --git a/src/qmmpui/general.h b/src/qmmpui/general.h index ba15da292..4c2f4879d 100644 --- a/src/qmmpui/general.h +++ b/src/qmmpui/general.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2008-2012 by Ilya Kotov * + * Copyright (C) 2008-2013 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -25,6 +25,8 @@ #include #include "generalfactory.h" +class QmmpUiPluginCache; + /*! @brief The General class provides simple access to general plugins * @author Ilya Kotov */ @@ -37,9 +39,13 @@ public: */ static void create(QObject *parent); /*! - * Returns a list of the loaded general plugin factories. + * Returns a list of the general plugin factories. + */ + static QList factories(); + /*! + * Returns a list of the enabled general plugin factories. */ - static QList *factories(); + static QList enabledFactories(); /*! * Returns plugin file path. * @param factory General plugin factory. @@ -64,11 +70,11 @@ public: static bool isEnabled(GeneralFactory* factory); private: - static void checkFactories(); - static QList *m_factories; + static void loadPlugins(); static QHash *m_generals; - static QHash *m_files; static QObject *m_parent; + static QList *m_cache; + static QStringList m_enabledNames; }; #endif -- cgit v1.2.3-13-gbd6f