summaryrefslogtreecommitdiffstats
path: root/src/dbus/qdbusabstractinterface.cpp
diff options
context:
space:
mode:
authorKai Köhne <kai.koehne@qt.io>2024-01-15 16:40:43 +0100
committerKai Köhne <kai.koehne@qt.io>2024-01-16 12:47:16 +0100
commit4c86f9b8049ad7717988125c725492febc44010b (patch)
treeabc8568293ec547b7462e326bd08fc0d26abf2e5 /src/dbus/qdbusabstractinterface.cpp
parent5346404da64ac87d161f510d9fee71899d7c70ba (diff)
Doc: Improve documentation around setting ALLOW_INTERACTIVE_AUTHORIZATION in D-Bus
Pick-to: 6.7 Change-Id: I4830b375c5f8c7986985c1d6caddc51348fb45ed Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/dbus/qdbusabstractinterface.cpp')
-rw-r--r--src/dbus/qdbusabstractinterface.cpp26
1 files changed, 20 insertions, 6 deletions
diff --git a/src/dbus/qdbusabstractinterface.cpp b/src/dbus/qdbusabstractinterface.cpp
index f0a5032d5c..6dd3c23b0d 100644
--- a/src/dbus/qdbusabstractinterface.cpp
+++ b/src/dbus/qdbusabstractinterface.cpp
@@ -398,12 +398,22 @@ int QDBusAbstractInterface::timeout() const
}
/*!
- When passed \a enable = \c true it causes all consecutive DBus calls made via
- this interface to have the InteractiveAuthorizationAllowed flag set. Passing
- false disables this behavior.
+ Configures whether, for asynchronous calls, the caller
+ is prepared to wait for interactive authorization.
+
+ If \a enable is set to \c true, the D-Bus messages generated for
+ asynchronous calls via this interface will set the
+ \c ALLOW_INTERACTIVE_AUTHORIZATION flag.
+
+ This flag is only useful when unprivileged code calls a more privileged
+ method call, and an authorization framework is deployed that allows
+ possibly interactive authorization.
+
+ The default is \c false.
\since 6.7
- \sa QDBusMessage::setInteractiveAuthorizationAllowed()
+ \sa QDBusMessage::setInteractiveAuthorizationAllowed(),
+ interactiveAuthorizationAllowed()
*/
void QDBusAbstractInterface::setInteractiveAuthorizationAllowed(bool enable)
{
@@ -411,10 +421,14 @@ void QDBusAbstractInterface::setInteractiveAuthorizationAllowed(bool enable)
}
/*!
- Returns the current value of the InteractiveAuthorizationAllowed flag.
+ Returns whether, for asynchronous calls, the caller
+ is prepared to wait for interactive authorization.
+
+ The default is \c false.
\since 6.7
- \sa QDBusMessage::setInteractiveAuthorizationAllowed()
+ \sa setInteractiveAuthorizationAllowed(),
+ QDBusMessage::setInteractiveAuthorizationAllowed()
*/
bool QDBusAbstractInterface::isInteractiveAuthorizationAllowed() const
{