diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2013-05-13 14:27:34 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2013-05-13 14:27:34 +0000 |
| commit | d26972aaac0fa0ec67b9958a79eff90e09d3df30 (patch) | |
| tree | ad9034cd5b27192fdd33a70fce17a0bbd209f26a /src/qmmpui/general.h | |
| parent | 1d01bb37fb8379ea2e155bcd1af651d354cfc9c9 (diff) | |
| download | qmmp-d26972aaac0fa0ec67b9958a79eff90e09d3df30.tar.gz qmmp-d26972aaac0fa0ec67b9958a79eff90e09d3df30.tar.bz2 qmmp-d26972aaac0fa0ec67b9958a79eff90e09d3df30.zip | |
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
Diffstat (limited to 'src/qmmpui/general.h')
| -rw-r--r-- | src/qmmpui/general.h | 18 |
1 files changed, 12 insertions, 6 deletions
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 <QHash> #include "generalfactory.h" +class QmmpUiPluginCache; + /*! @brief The General class provides simple access to general plugins * @author Ilya Kotov <forkotov02@hotmail.ru> */ @@ -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<GeneralFactory *> factories(); + /*! + * Returns a list of the enabled general plugin factories. */ - static QList<GeneralFactory*> *factories(); + static QList<GeneralFactory *> 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<GeneralFactory*> *m_factories; + static void loadPlugins(); static QHash <GeneralFactory*, QObject*> *m_generals; - static QHash <GeneralFactory*, QString> *m_files; static QObject *m_parent; + static QList<QmmpUiPluginCache*> *m_cache; + static QStringList m_enabledNames; }; #endif |
