summaryrefslogtreecommitdiffstats
path: root/tqdbuserror.h
diff options
context:
space:
mode:
Diffstat (limited to 'tqdbuserror.h')
-rw-r--r--tqdbuserror.h15
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;