|
virtual | ~InterfaceSkeleton () |
|
GDBusInterfaceSkeleton* | gobj () |
| Provides access to the underlying C GObject. More...
|
|
const GDBusInterfaceSkeleton* | gobj () const |
| Provides access to the underlying C GObject. More...
|
|
GDBusInterfaceSkeleton* | gobj_copy () |
| Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. More...
|
|
void | flush () |
| If interface has outstanding changes, request for these changes to be emitted immediately. More...
|
|
Glib::RefPtr< InterfaceInfo > | get_info () |
| Gets D-Bus introspection information for the D-Bus interface implemented by interface. More...
|
|
Glib::RefPtr< const InterfaceInfo > | get_info () const |
| Gets D-Bus introspection information for the D-Bus interface implemented by interface. More...
|
|
Glib::VariantBase | get_properties () const |
| Gets all D-Bus properties for interface. More...
|
|
void | export_interface_skeleton (const Glib::RefPtr< Connection >& connection, const Glib::ustring& object_path) |
| Exports interface at object_path on connection. More...
|
|
void | unexport () |
| Stops exporting interface on all connections it is exported on. More...
|
|
void | unexport_from_connection (const Glib::RefPtr< Connection >& connection) |
| Stops exporting interface on connection. More...
|
|
Glib::RefPtr< Connection > | get_connection () |
| Gets the first connection that interface is exported on, if any. More...
|
|
Glib::RefPtr< const Connection > | get_connection () const |
| Gets the first connection that interface is exported on, if any. More...
|
|
std::vector< Glib::RefPtr< Connection > > | get_connections () |
| Gets a list of the connections that interface is exported on. More...
|
|
std::vector< Glib::RefPtr< const Connection > > | get_connections () const |
| Gets a list of the connections that interface is exported on. More...
|
|
bool | has_connection (const Glib::RefPtr< const Connection >& connection) const |
| Checks if interface is exported on connection. More...
|
|
Glib::ustring | get_object_path () const |
| Gets the object path that interface is exported on, if any. More...
|
|
InterfaceSkeletonFlags | get_flags () const |
| Gets the DBusInterfaceSkeletonFlags that describes what the behavior of interface. More...
|
|
void | set_flags (InterfaceSkeletonFlags flags) |
| Sets flags describing what the behavior of skeleton should be. More...
|
|
Glib::PropertyProxy< InterfaceSkeletonFlags > | property_g_flags () |
| Flags for the interface skeleton. More...
|
|
Glib::PropertyProxy_ReadOnly< InterfaceSkeletonFlags > | property_g_flags () const |
| Flags for the interface skeleton. More...
|
|
Glib::SignalProxy1< bool, const Glib::RefPtr< MethodInvocation >& > | signal_authorize_method () |
|
void* | get_data (const QueryQuark& key) |
|
void | set_data (const Quark& key, void* data) |
|
void | set_data (const Quark& key, void* data, DestroyNotify notify) |
|
void | remove_data (const QueryQuark& quark) |
|
void* | steal_data (const QueryQuark& quark) |
|
void | set_property_value (const Glib::ustring& property_name, const Glib::ValueBase& value) |
| You probably want to use a specific property_*() accessor method instead. More...
|
|
void | get_property_value (const Glib::ustring& property_name, Glib::ValueBase& value) const |
| You probably want to use a specific property_*() accessor method instead. More...
|
|
template<class PropertyType > |
void | set_property (const Glib::ustring& property_name, const PropertyType& value) |
| You probably want to use a specific property_*() accessor method instead. More...
|
|
template<class PropertyType > |
void | get_property (const Glib::ustring& property_name, PropertyType& value) const |
| You probably want to use a specific property_*() accessor method instead. More...
|
|
void | connect_property_changed (const Glib::ustring& property_name, const sigc::slot< void >& slot) |
| You can use the signal_changed() signal of the property proxy instead, but this is necessary when using the reduced API. More...
|
|
sigc::connection | connect_property_changed_with_return (const Glib::ustring& property_name, const sigc::slot< void >& slot) |
| You can use the signal_changed() signal of the property proxy instead, but this is necessary when using the reduced API. More...
|
|
void | freeze_notify () |
| Increases the freeze count on object. More...
|
|
void | thaw_notify () |
| Reverts the effect of a previous call to freeze_notify(). More...
|
|
virtual void | reference () const |
| Increment the reference count for this object. More...
|
|
virtual void | unreference () const |
| Decrement the reference count for this object. More...
|
|
GObject* | gobj () |
| Provides access to the underlying C GObject. More...
|
|
const GObject* | gobj () const |
| Provides access to the underlying C GObject. More...
|
|
GObject* | gobj_copy () const |
| Give a ref-ed copy to someone. Use for direct struct access. More...
|
|
virtual | ~Interface () |
|
GDBusInterface* | gobj () |
| Provides access to the underlying C GObject. More...
|
|
const GDBusInterface* | gobj () const |
| Provides access to the underlying C GObject. More...
|
|
Glib::RefPtr< InterfaceInfo > | get_info () |
| Gets D-Bus introspection information for the D-Bus interface implemented by interface. More...
|
|
Glib::RefPtr< const InterfaceInfo > | get_info () const |
| Gets D-Bus introspection information for the D-Bus interface implemented by interface. More...
|
|
Glib::RefPtr< Gio::DBus::Object > | get_object () |
| Gets the DBusObject that interface belongs to, if any. More...
|
|
Glib::RefPtr< const Gio::DBus::Object > | get_object () const |
| Gets the DBusObject that interface belongs to, if any. More...
|
|
Glib::RefPtr< Gio::DBus::Object > | dup_object () |
| Gets the DBusObject that interface belongs to, if any. More...
|
|
Glib::RefPtr< const Gio::DBus::Object > | dup_object () const |
| Gets the DBusObject that interface belongs to, if any. More...
|
|
void | set_object (const Glib::RefPtr< Gio::DBus::Object >& object) |
| Sets the DBusObject for interface to object. More...
|
|
virtual Glib::RefPtr< InterfaceInfo > | get_info_vfunc () const |
|
virtual Glib::RefPtr< Gio::DBus::Object > | get_object_vfunc () const |
|
virtual void | set_object_vfunc (const Glib::RefPtr< Gio::DBus::Object >& object) |
|
virtual Glib::RefPtr< Gio::DBus::Object > | dup_object_vfunc () const |
|
| Interface () |
| A Default constructor. More...
|
|
| Interface (const Glib::Interface_Class& interface_class) |
| Called by constructors of derived classes. More...
|
|
| Interface (GObject* castitem) |
| Called by constructors of derived classes. More...
|
|
GObject* | gobj () |
|
const GObject* | gobj () const |
|
Abstract base class for D-Bus interfaces on the service side.
- Since glibmm 2.38:
- Slot Prototype:
bool on_my_authorize_method(const Glib::RefPtr<MethodInvocation>& invocation)
Emitted when a method is invoked by a remote caller and used to determine if the method call is authorized.
Note that this signal is emitted in a thread dedicated to handling the method call so handlers are allowed to perform blocking IO. This means that it is appropriate to call e.g. polkit_authority_check_authorization_sync() with the POLKIT_CHECK_AUTHORIZATION_FLAGS_ALLOW_USER_INTERACTION flag set.
If false
is returned then no further handlers are run and the signal handler must take a reference to invocation and finish handling the call (e.g. return an error via g_dbus_method_invocation_return_error()).
Otherwise, if true
is returned, signal emission continues. If no handlers return false
, then the method is dispatched. If interface has an enclosing DBusObjectSkeleton, then the DBusObjectSkeleton::signal_authorize_method() signal handlers run before the handlers for this signal.
The default class handler just returns true
.
Please note that the common case is optimized: if no signals handlers are connected and the default class handler isn't overridden (for both interface and the enclosing DBusObjectSkeleton, if any) and DBusInterfaceSkeleton::property_g_flags() does not have the DBUS_INTERFACE_SKELETON_FLAGS_HANDLE_METHOD_INVOCATIONS_IN_THREAD flags set, no dedicated thread is ever used and the call will be handled in the same thread as the object that interface belongs to was exported in.
- Since glibmm 2.30:
- Parameters
-
invocation | A DBusMethodInvocation. |
- Returns
true
if the call is authorized, false
otherwise.