diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2011-10-23 17:19:18 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2011-10-23 17:19:18 +0000 |
| commit | cfe1ebf0f2d2a0854582893d68ebbf528786a068 (patch) | |
| tree | cb770bf975b17af81454e36f2d2872af52730a9b /src/qmmpui/general.h | |
| parent | a6fdc2749f67e83950da524bc439a21b0b3e6754 (diff) | |
| download | qmmp-cfe1ebf0f2d2a0854582893d68ebbf528786a068.tar.gz qmmp-cfe1ebf0f2d2a0854582893d68ebbf528786a068.tar.bz2 qmmp-cfe1ebf0f2d2a0854582893d68ebbf528786a068.zip | |
fixed api
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@2426 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/qmmpui/general.h')
| -rw-r--r-- | src/qmmpui/general.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/qmmpui/general.h b/src/qmmpui/general.h index 502867957..95cf76132 100644 --- a/src/qmmpui/general.h +++ b/src/qmmpui/general.h @@ -22,7 +22,7 @@ #include <QObject> #include <QStringList> -#include <QMap> +#include <QHash> #include "generalfactory.h" /*! @brief The General class provides simple access to general plugins @@ -41,9 +41,10 @@ public: */ static QList<GeneralFactory*> *factories(); /*! - * Returns a list of the loaded general plugin files. + * Returns plugin file path. + * @param factory General plugin factory. */ - static QStringList files(); + static QString file(GeneralFactory *factory); /*! * Sets whether the general plugin is enabled. * @param factory General plugin factory. @@ -63,10 +64,10 @@ public: static bool isEnabled(GeneralFactory* factory); private: - static QList<GeneralFactory*> *m_factories; - static QStringList m_files; static void checkFactories(); - static QMap <GeneralFactory*, QObject*> *m_generals; + static QList<GeneralFactory*> *m_factories; + static QHash <GeneralFactory*, QObject*> *m_generals; + static QHash <GeneralFactory*, QString> *m_files; static QObject *m_parent; }; |
