diff options
author | Timothy Pearson <[email protected]> | 2013-04-15 12:40:24 -0500 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-04-15 12:40:24 -0500 |
commit | cad05aaaa116db2e7a326eca73d9167f256b187d (patch) | |
tree | 1c402a1d378b625db7b055501eb0299d79a1017e /tqdbuserror.h | |
parent | 6dd1ccf1d36456f863eb6c0f0acc564f78fc5da8 (diff) | |
download | dbus-1-tqt-cad05aaaa116db2e7a326eca73d9167f256b187d.tar.gz dbus-1-tqt-cad05aaaa116db2e7a326eca73d9167f256b187d.zip |
Fix failure to report DBUS non-fatal errors
Diffstat (limited to 'tqdbuserror.h')
-rw-r--r-- | tqdbuserror.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tqdbuserror.h b/tqdbuserror.h index 4a55c64..e2f7f26 100644 --- a/tqdbuserror.h +++ b/tqdbuserror.h @@ -307,6 +307,20 @@ public: inline ErrorType type() const { return errorType; } /** + * @brief Returns whether the error was caused by DBUS itself + * + * A TQT_DBusError is considered valid if both name and message are set. + * + * @return @c true if dbus_error_is_set was true after DBUS call completion + */ + inline bool dbusErrorSet() const { return m_dbusErrorSet; } + + /** + * @internal + */ + inline void setDBUSError(bool err) const { m_dbusErrorSet = err; } + + /** * @brief Returns whether the error object is valid * * A TQT_DBusError is considered valid if both name and message are set. @@ -444,6 +458,7 @@ public: private: ErrorType errorType; + mutable bool m_dbusErrorSet; TQString nm, msg; |