summaryrefslogtreecommitdiffstats
path: root/src/dbus/qdbusabstractinterface_p.h
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2009-07-01 15:44:56 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2009-07-02 09:43:44 (GMT)
commit962b7fde5194a08a83609b9b4367425e52f76614 (patch)
treebbf90c13a5376eaf1e87f02812fba08d30d561e0 /src/dbus/qdbusabstractinterface_p.h
parent826c03c1c010a9d612007aa85ce3a5188edb0cb8 (diff)
downloadQt-962b7fde5194a08a83609b9b4367425e52f76614.zip
Qt-962b7fde5194a08a83609b9b4367425e52f76614.tar.gz
Qt-962b7fde5194a08a83609b9b4367425e52f76614.tar.bz2
Improve the code a bit more by using the variant that QMetaProperty creates.
This works for the case of complex types that have to be demarshalled. We don't need to instantiate a new type because QMetaProperty has already done that for us. Also, fix the handling of properties of type variant. I have verified as well that the sending of those properties on the wire use a double-variant encoding (i.e., a variant containing a variant containing some data, the same that Qt 4.5 uses). It's a bit pedantic and it's hard to use when reading stuff, because you get a QVariant containing a QDBusVariant which contains data, but I can't change this anymore. Reviewed-By: Marius Bugge Monsen
Diffstat (limited to 'src/dbus/qdbusabstractinterface_p.h')
-rw-r--r--src/dbus/qdbusabstractinterface_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dbus/qdbusabstractinterface_p.h b/src/dbus/qdbusabstractinterface_p.h
index e577898..65df902 100644
--- a/src/dbus/qdbusabstractinterface_p.h
+++ b/src/dbus/qdbusabstractinterface_p.h
@@ -86,7 +86,7 @@ public:
bool canMakeCalls() const;
// these functions do not check if the property is valid
- QVariant property(const QMetaProperty &mp) const;
+ void property(const QMetaProperty &mp, QVariant &where) const;
bool setProperty(const QMetaProperty &mp, const QVariant &value);
// return conn's d pointer