summaryrefslogtreecommitdiffstats
path: root/qt/qdbusabstractinterface.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago@kde.org>2006-05-29 18:17:09 +0000
committerThiago Macieira <thiago@kde.org>2006-05-29 18:17:09 +0000
commit26ab02e91671548e2b55a16bb953b3d9e0a82497 (patch)
tree6618b0255fc1fc8c6b56ec3e9e13e0eea7aecccb /qt/qdbusabstractinterface.cpp
parent5bc9dc5cf03d05feb62f0e28e2d5e04faf33610b (diff)
* 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.
Diffstat (limited to 'qt/qdbusabstractinterface.cpp')
-rw-r--r--qt/qdbusabstractinterface.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/qt/qdbusabstractinterface.cpp b/qt/qdbusabstractinterface.cpp
index 7c09b510..2a6bcf04 100644
--- a/qt/qdbusabstractinterface.cpp
+++ b/qt/qdbusabstractinterface.cpp
@@ -131,6 +131,19 @@ QDBusAbstractInterface::~QDBusAbstractInterface()
}
/*!
+ Returns true if this is a valid reference to a remote object. It returns false if
+ there was an error during the creation of this interface (for instance, if the remote
+ application does not exist).
+
+ Note: when dealing with remote objects, it is not always possible to determine if it
+ exists when creating a QDBusInterface or QDBusInterfacePtr object.
+*/
+bool QDBusAbstractInterface::isValid() const
+{
+ return d_func()->isValid;
+}
+
+/*!
Returns the connection this interface is assocated with.
*/
QDBusConnection QDBusAbstractInterface::connection() const