diff options
author | Lars Knoll <lars.knoll@nokia.com> | 2012-05-27 11:38:36 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-06-05 08:58:00 +0200 |
commit | b7be632d5e777dfdfd7d6a31ba083e3ac653603d (patch) | |
tree | 08f9c479d5a87151a5274dd2e85901e62bbd22c8 /src/corelib/plugin/qpluginloader.h | |
parent | 87e50e079ea226af95699438b38ee5f4574aae68 (diff) |
Expose the plugins meta data in the plugin loader
add a metaData() method to QPluginLoader so that
applications can query the plugins meta data without
having to load the plugin.
Change-Id: Ic3ebb35fd3c403926326e8dd1de4176b0c48dbef
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/plugin/qpluginloader.h')
-rw-r--r-- | src/corelib/plugin/qpluginloader.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/corelib/plugin/qpluginloader.h b/src/corelib/plugin/qpluginloader.h index 0e62d3660b..99b44fd559 100644 --- a/src/corelib/plugin/qpluginloader.h +++ b/src/corelib/plugin/qpluginloader.h @@ -56,6 +56,7 @@ QT_BEGIN_HEADER QT_BEGIN_NAMESPACE class QLibraryPrivate; +class QJsonObject; class Q_CORE_EXPORT QPluginLoader : public QObject { @@ -68,6 +69,7 @@ public: ~QPluginLoader(); QObject *instance(); + QJsonObject metaData() const; static QObjectList staticInstances(); |