diff options
Diffstat (limited to 'qt/qdbusabstractinterface.cpp')
-rw-r--r-- | qt/qdbusabstractinterface.cpp | 13 |
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 |