diff options
author | Roland Winklmeier <Roland.M.Winklmeier@gmail.com> | 2014-01-13 21:49:49 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-01-15 14:15:22 +0100 |
commit | 419a1f53d527583458da46d1508aab272fdf0280 (patch) | |
tree | 374c0a203d118e76a31f1bde3797c1ec01b76826 /src/dbus/qdbusserver.h | |
parent | 40133df06fea67ab3983b90844cc2a8f47e6e20c (diff) |
Add method to QDBusServer to allow anonymous client connections.
This change adds a new method to QDBusServer to allow anonymous
connections. This is part of the DBus API and was not yet possible
to use with QDBusServer. It is set in the newConnection callback
when a new client tries to connect.
Anonymous connections are enabled by default in DBus but not allowed
by default.
[ChangeLog][QtDBus][QDBusServer] Added method to QDBusServer to allow
anonymous client connections, even if the connecting client is not
authenticated as a user.
Change-Id: I984c9e634101ecd2e67bb25c8d12bb1071836fd3
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/dbus/qdbusserver.h')
-rw-r--r-- | src/dbus/qdbusserver.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dbus/qdbusserver.h b/src/dbus/qdbusserver.h index d455f8e0ec..7a7f54b6c1 100644 --- a/src/dbus/qdbusserver.h +++ b/src/dbus/qdbusserver.h @@ -66,6 +66,9 @@ public: QDBusError lastError() const; QString address() const; + void setAnonymousAuthenticationAllowed(bool value); + bool isAnonymousAuthenticationAllowed() const; + Q_SIGNALS: void newConnection(const QDBusConnection &connection); |