From 9393d6b459d02a8508750a846bf97a69e48c97e2 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Mon, 6 Mar 2006 14:29:39 +0000 Subject: 2006-03-06 Thiago Macieira * qt/*: * dbus/qdbus.h: Sync with KDE Subversion revision 516237. This represents the first feature-complete version of the Qt4 bindings since I took ove maintainership. --- qt/qdbusobject.h | 63 ++------------------------------------------------------ 1 file changed, 2 insertions(+), 61 deletions(-) (limited to 'qt/qdbusobject.h') diff --git a/qt/qdbusobject.h b/qt/qdbusobject.h index ffb41add..584f3b28 100644 --- a/qt/qdbusobject.h +++ b/qt/qdbusobject.h @@ -43,102 +43,43 @@ template inline const Interface qdbus_cast(const QDBusObject& obj, Interface * = 0); class QDBusObjectPrivate; -/** - * QDBusObject - * Base object for DBUS objects imported and exported. - */ class QDBUS_EXPORT QDBusObject { friend class QDBusConnection; public: // public constructors - /** - * Construct a QDBusObject referencing the remote object given. - */ - QDBusObject(const QDBusConnection& conn, const QString& service, const QString& path); - - /** - * Copy constructor. - */ QDBusObject(const QDBusObject& other); - - /** - * Construct from an interface. - */ QDBusObject(const QDBusInterface& iface); // public destructors - /** - * Destructor. - */ ~QDBusObject(); public: // public functions - - /** - * Assignment operator - */ QDBusObject& operator=(const QDBusObject&); - /** - * Returns the connection this object is bound to. - */ QDBusConnection connection() const; - - /** - * Returns the service this object is associated to. - */ QString service() const; - - /** - * Returns the path on the service this object is on. - */ QString path() const; - /** - * Returns the introspection XML data of this object node. - */ QString introspect() const; - - /** - * Returns the introspection data for this object node. - */ QSharedDataPointer introspectionData() const; - /** - * Returns all the interfaces in this object. - */ QStringList interfaces() const; - - /** - * Returns all the children object in this object. - */ QMap children() const; - /** - * Returns true if the object being referenced exists. - */ //bool exists() const; - - /** - * Returns true if we're referencing a valid object. - */ bool isValid() const; - /** - * Cast this object to an interface, if possible. - */ +#ifndef QT_NO_MEMBER_TEMPLATES template inline operator Interface() { return qdbus_cast(*this); } - /** - * Cast this object to an interface, if possible. - */ template inline operator const Interface() const { return qdbus_cast(*this); } +#endif private: QDBusObject(QDBusObjectPrivate*, const QDBusConnection& conn); -- cgit