diff options
author | Tasuku Suzuki <tasuku.suzuki@nokia.com> | 2010-04-08 09:31:56 (GMT) |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2010-04-08 09:40:27 (GMT) |
commit | b34817d3fce5b96c335cb583a3313e7bd9f8c07c (patch) | |
tree | 8e86b39c662b537e6a5da92a6c493f18918a0833 /src/plugins/script | |
parent | 33937d31e5ba48a8dc430f705db0d6e569996657 (diff) | |
download | Qt-b34817d3fce5b96c335cb583a3313e7bd9f8c07c.zip Qt-b34817d3fce5b96c335cb583a3313e7bd9f8c07c.tar.gz Qt-b34817d3fce5b96c335cb583a3313e7bd9f8c07c.tar.bz2 |
Introduce a qconfig feature for QtDBus
QtDBus module is useless with QT_NO_PROPERTIES. Add D-Bus section and
DBUS feature which requires PROPERTIES. Update qfeatures.h. Disable
QtDBus module, a bearer management plugin for NetworkManager and a
script plugin for QtDBus when QT_NO_DBUS is defined.
Merge-request: 511
Reviewed-by: Thiago Macieira <thiago.macieira@nokia.com>
Diffstat (limited to 'src/plugins/script')
-rw-r--r-- | src/plugins/script/qtdbus/main.cpp | 4 | ||||
-rw-r--r-- | src/plugins/script/qtdbus/main.h | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/plugins/script/qtdbus/main.cpp b/src/plugins/script/qtdbus/main.cpp index 6f09326..452f0e9 100644 --- a/src/plugins/script/qtdbus/main.cpp +++ b/src/plugins/script/qtdbus/main.cpp @@ -44,6 +44,8 @@ #include <QMetaMethod> #include <QScriptExtensionPlugin> +#ifndef QT_NO_DBUS + QT_USE_NAMESPACE static QScriptValue setupDBusInterface(QScriptEngine *engine, QDBusAbstractInterface *iface); @@ -394,3 +396,5 @@ void QtDBusScriptPlugin::initialize(const QString &key, QScriptEngine *engine) Q_EXPORT_STATIC_PLUGIN(QtDBusScriptPlugin) Q_EXPORT_PLUGIN2(qtscriptdbus, QtDBusScriptPlugin) + +#endif // QT_NO_DBUS diff --git a/src/plugins/script/qtdbus/main.h b/src/plugins/script/qtdbus/main.h index 8544247..bc2d8a3 100644 --- a/src/plugins/script/qtdbus/main.h +++ b/src/plugins/script/qtdbus/main.h @@ -46,6 +46,8 @@ #include <QtScript/qscriptable.h> #include <QtScript/qscriptengine.h> +#ifndef QT_NO_DBUS + class QDBusConnectionConstructor : public QObject, public QScriptable { @@ -173,4 +175,5 @@ private: QScriptValue proto; }; +#endif // QT_NO_DBUS #endif // QDBUSBINDING_H |