glibmm 2.31.20
|
AuthObserver - An object used for authenticating connections. More...
#include <giomm/dbusauthobserver.h>
Public Member Functions | |
virtual | ~AuthObserver () |
GDBusAuthObserver* | gobj () |
Provides access to the underlying C GObject. | |
const GDBusAuthObserver* | gobj () const |
Provides access to the underlying C GObject. | |
GDBusAuthObserver* | gobj_copy () |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. | |
bool | authorize_authenticated_peer (const Glib::RefPtr< const IOStream >& stream, const Glib::RefPtr< const Credentials >& credentials) |
Emits the DBusAuthObserver::signal_authorize_authenticated_peer() signal on observer. | |
Glib::SignalProxy2< bool, const Glib::RefPtr< const IOStream >&, const Glib::RefPtr< const Credentials >& > | signal_authorize_authenticated_peer () |
Static Public Member Functions | |
static Glib::RefPtr< AuthObserver > | create () |
Protected Member Functions | |
AuthObserver () | |
Related Functions | |
(Note that these are not member functions.) | |
Glib::RefPtr < Gio::DBus::AuthObserver > | wrap (GDBusAuthObserver* object, bool take_copy=false) |
A Glib::wrap() method for this object. |
AuthObserver - An object used for authenticating connections.
The AuthObserver type provides a mechanism for participating in how a Server (or a Connection) authenticates remote peers. Simply instantiate an AuthObserver and connect to the signals you are interested in. Note that new signals may be added in the future.
virtual Gio::DBus::AuthObserver::~AuthObserver | ( | ) | [virtual] |
Gio::DBus::AuthObserver::AuthObserver | ( | ) | [protected] |
bool Gio::DBus::AuthObserver::authorize_authenticated_peer | ( | const Glib::RefPtr< const IOStream >& | stream, |
const Glib::RefPtr< const Credentials >& | credentials | ||
) |
Emits the DBusAuthObserver::signal_authorize_authenticated_peer() signal on observer.
stream | A IOStream for the DBusConnection. |
credentials | Credentials received from the peer or 0 . |
true
if the peer is authorized, false
if not. static Glib::RefPtr<AuthObserver> Gio::DBus::AuthObserver::create | ( | ) | [static] |
GDBusAuthObserver* Gio::DBus::AuthObserver::gobj | ( | ) | [inline] |
Provides access to the underlying C GObject.
Reimplemented from Glib::ObjectBase.
const GDBusAuthObserver* Gio::DBus::AuthObserver::gobj | ( | ) | const [inline] |
Provides access to the underlying C GObject.
Reimplemented from Glib::ObjectBase.
GDBusAuthObserver* Gio::DBus::AuthObserver::gobj_copy | ( | ) |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
Glib::SignalProxy2< bool,const Glib::RefPtr<const IOStream>&,const Glib::RefPtr<const Credentials>& > Gio::DBus::AuthObserver::signal_authorize_authenticated_peer | ( | ) |
bool on_my_authorize_authenticated_peer(const Glib::RefPtr<const IOStream>& stream, const Glib::RefPtr<const Credentials>& credentials)
Emitted to check if a peer that is successfully authenticated is authorized.
stream | A IOStream for the DBusConnection. |
credentials | Credentials received from the peer or 0 . |
true
if the peer is authorized, false
if not. Glib::RefPtr< Gio::DBus::AuthObserver > wrap | ( | GDBusAuthObserver * | object, |
bool | take_copy = false |
||
) | [related] |
A Glib::wrap() method for this object.
object | The C instance. |
take_copy | False if the result should take ownership of the C instance. True if it should take a new copy or ref. |