|
| | ObjectManagerServer (ObjectManagerServer&& src) noexcept |
| |
| ObjectManagerServer& | operator= (ObjectManagerServer&& src) noexcept |
| |
| | ~ObjectManagerServer () noexcept override |
| |
| GDBusObjectManagerServer* | gobj () |
| | Provides access to the underlying C GObject. More...
|
| |
| const GDBusObjectManagerServer* | gobj () const |
| | Provides access to the underlying C GObject. More...
|
| |
| GDBusObjectManagerServer* | gobj_copy () |
| | Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. More...
|
| |
| Glib::RefPtr< Connection > | get_connection () |
| | Gets the Gio::DBus::Connection used by manager. More...
|
| |
| Glib::RefPtr< const Connection > | get_connection () const |
| | Gets the Gio::DBus::Connection used by manager. More...
|
| |
| void | set_connection (const Glib::RefPtr< Connection >& connection) |
| | Exports all objects managed by manager on connection. More...
|
| |
| void | export_object (const Glib::RefPtr< Gio::DBus::ObjectSkeleton >& object) |
| | Exports object on manager. More...
|
| |
| void | export_uniquely (const Glib::RefPtr< Gio::DBus::ObjectSkeleton >& object) |
| | Like g_dbus_object_manager_server_export() but appends a string of the form _N (with N being a natural number) to object's object path if an object with the given path already exists. More...
|
| |
| bool | is_exported (const Glib::RefPtr< Gio::DBus::ObjectSkeleton >& object) const |
| | Returns whether object is currently exported on manager. More...
|
| |
| bool | unexport (const Glib::ustring& object_path) |
| | If manager has an object at path, removes the object. More...
|
| |
| Glib::PropertyProxy< Glib::RefPtr< Connection > > | property_connection () |
| | The Gio::DBus::Connection to export objects on. More...
|
| |
| Glib::PropertyProxy_ReadOnly< Glib::RefPtr< Connection > > | property_connection () const |
| | The Gio::DBus::Connection to export objects on. More...
|
| |
| Glib::PropertyProxy_ReadOnly< Glib::ustring > | property_object_path () const |
| | The object path to register the manager object at. More...
|
| |
| | Object (const Object&)=delete |
| |
| Object& | operator= (const Object&)=delete |
| |
| | Object (Object&& src) noexcept |
| |
| Object& | operator= (Object&& src) noexcept |
| |
| 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) |
| |
| | ObjectBase (const ObjectBase&)=delete |
| |
| ObjectBase& | operator= (const ObjectBase&)=delete |
| |
| 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...
|
| |
| template<class PropertyType > |
| PropertyType | get_property (const Glib::ustring& property_name) const |
| | You probably want to use a specific property_*() accessor method instead. More...
|
| |
| sigc::connection | 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. More...
|
| |
| sigc::connection | connect_property_changed (const Glib::ustring& property_name, sigc::slot< void()>&& slot) |
| | You can use the signal_changed() signal of the property proxy instead. 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...
|
| |
| | trackable () noexcept |
| |
| | trackable (const trackable &src) noexcept |
| |
| | trackable (trackable &&src) noexcept |
| |
| | ~trackable () |
| |
| void | add_destroy_notify_callback (notifiable *data, func_destroy_notify func) const |
| |
| void | notify_callbacks () |
| |
| trackable & | operator= (const trackable &src) |
| |
| trackable & | operator= (trackable &&src) noexcept |
| |
| void | remove_destroy_notify_callback (notifiable *data) const |
| |
| | ObjectManager (ObjectManager&& src) noexcept |
| |
| ObjectManager& | operator= (ObjectManager&& src) noexcept |
| |
| | ~ObjectManager () noexcept override |
| |
| GDBusObjectManager* | gobj () |
| | Provides access to the underlying C GObject. More...
|
| |
| const GDBusObjectManager* | gobj () const |
| | Provides access to the underlying C GObject. More...
|
| |
| Glib::ustring | get_object_path () const |
| | Gets the object path that manager is for. More...
|
| |
| std::vector< Glib::RefPtr< Gio::DBus::Object > > | get_objects () |
| | Gets all DBusObject objects known to manager. More...
|
| |
| std::vector< Glib::RefPtr< const Gio::DBus::Object > > | get_objects () const |
| | Gets all DBusObject objects known to manager. More...
|
| |
| Glib::RefPtr< Gio::DBus::Object > | get_object (const Glib::ustring& object_path) |
| | Gets the DBusObjectProxy at object_path, if any. More...
|
| |
| Glib::RefPtr< const Gio::DBus::Object > | get_object (const Glib::ustring& object_path) const |
| | Gets the DBusObjectProxy at object_path, if any. More...
|
| |
| Glib::RefPtr< Gio::DBus::Interface > | get_interface (const Glib::ustring& object_path, const Glib::ustring& interface_name) |
| | Gets the interface proxy for interface_name at object_path, if any. More...
|
| |
| Glib::RefPtr< const Gio::DBus::Interface > | get_interface (const Glib::ustring& object_path, const Glib::ustring& interface_name) const |
| | Gets the interface proxy for interface_name at object_path, if any. More...
|
| |
| Glib::SignalProxy< void(const Glib::RefPtr< Gio::DBus::Object >&)> | signal_object_added () |
| |
| Glib::SignalProxy< void(const Glib::RefPtr< Gio::DBus::Object >&)> | signal_object_removed () |
| |
| Glib::SignalProxy< void(const Glib::RefPtr< Gio::DBus::Object >&, const Glib::RefPtr< Gio::DBus::Interface >&)> | signal_interface_added () |
| |
| Glib::SignalProxy< void(const Glib::RefPtr< Gio::DBus::Object >&, const Glib::RefPtr< Gio::DBus::Interface >&)> | signal_interface_removed () |
| |
| | Interface () |
| | A Default constructor. More...
|
| |
| | Interface (Interface&& src) noexcept |
| |
| Interface& | operator= (Interface&& src) noexcept |
| |
| | Interface (const Glib::Interface_Class& interface_class) |
| | Called by constructors of derived classes. More...
|
| |
| | Interface (GObject* castitem) |
| | Called by constructors of derived classes. More...
|
| |
| | ~Interface () noexcept override |
| |
| | Interface (const Interface&)=delete |
| |
| Interface& | operator= (const Interface&)=delete |
| |
| GObject* | gobj () |
| |
| const GObject* | gobj () const |
| |
Service-side object manager.
Gio::DBus::ObjectManagerServer is used to export Gio::DBus::Object instances using the standardized org.freedesktop.DBus.ObjectManager interface. For example, remote D-Bus clients can get all objects and properties in a single call. Additionally, any change in the object hierarchy is broadcast using signals. This means that D-Bus clients can keep caches up to date by only listening to D-Bus signals.
The recommended path to export an object manager at is the path form of the well-known name of a D-Bus service, or below. For example, if a D-Bus service is available at the well-known name net.example.ExampleService1, the object manager should typically be exported at /net/example/ExampleService1, or below (to allow for multiple object managers in a service).
It is supported, but not recommended, to export an object manager at the root path, /.
See Gio::DBus::ObjectManagerClient for the client-side code that is intended to be used with ObjectManagerServer or any D-Bus object implementing the org.freedesktop.DBus.ObjectManager interface.
- Since glibmm 2.62: