From 26ab02e91671548e2b55a16bb953b3d9e0a82497 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Mon, 29 May 2006 18:17:09 +0000 Subject: * qt/*: Update the QtDBus bindings up to revision 546310 in Subversion. This adds the dbuscpp2xml tool, that parses a C++ header and outputs a D-BUS Introspection XML. --- qt/qdbusconnection_p.h | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'qt/qdbusconnection_p.h') diff --git a/qt/qdbusconnection_p.h b/qt/qdbusconnection_p.h index af572084..a9034498 100644 --- a/qt/qdbusconnection_p.h +++ b/qt/qdbusconnection_p.h @@ -85,7 +85,7 @@ public: struct SignalHook { inline SignalHook() : obj(0), midx(-1) { } - QString interface, name, signature; + QString sender, path, signature; QObject* obj; int midx; QList params; @@ -139,7 +139,7 @@ public: QString getNameOwner(const QString &service); - bool send(const QDBusMessage &message) const; + int send(const QDBusMessage &message) const; QDBusMessage sendWithReply(const QDBusMessage &message, int mode); int sendWithReplyAsync(const QDBusMessage &message, QObject *receiver, const char *method); @@ -150,7 +150,7 @@ public: void disconnectRelay(const QString &service, const QString &path, const QString &interface, QDBusAbstractInterface *receiver, const char *signal); - bool handleSignal(const QString &path, const QDBusMessage &msg); + bool handleSignal(const QString &key, const QDBusMessage &msg); bool handleSignal(const QDBusMessage &msg); bool handleObjectCall(const QDBusMessage &message); bool handleError(); @@ -176,6 +176,7 @@ private: public slots: // public slots + void doDispatch(); void socketRead(int); void socketWrite(int); void objectDestroyed(QObject *o); @@ -210,7 +211,12 @@ public: // static methods static int messageMetaType; static int registerMessageMetaType(); - static int findSlot(QObject *obj, const char *slotName, QList& params); + static int findSlot(QObject *obj, const QByteArray &normalizedName, QList& params); + static bool prepareHook(QDBusConnectionPrivate::SignalHook &hook, QString &key, + const QString &service, const QString &path, + const QString &interface, const QString &name, + QObject *receiver, const char *signal, int minMIdx, + bool buildSignature); static DBusHandlerResult messageFilter(DBusConnection *, DBusMessage *, void *); static void messageResultReceived(DBusPendingCall *, void *); }; @@ -225,6 +231,7 @@ public slots: void reply(const QDBusMessage &msg); }; +// in qdbusmisc.cpp extern int qDBusParametersForMethod(const QMetaMethod &mm, QList& metaTypes); extern int qDBusNameToTypeId(const char *name); extern bool qDBusCheckAsyncTag(const char *tag); -- cgit