|
| ObjectManagerServer (ObjectManagerServer &&src) noexcept |
|
ObjectManagerServer & | operator= (ObjectManagerServer &&src) noexcept |
|
| ~ObjectManagerServer () noexcept override |
|
GDBusObjectManagerServer * | gobj () |
| Provides access to the underlying C GObject.
|
|
const GDBusObjectManagerServer * | gobj () const |
| Provides access to the underlying C GObject.
|
|
GDBusObjectManagerServer * | gobj_copy () |
| Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
|
|
Glib::RefPtr< Connection > | get_connection () |
| Gets the Gio::DBus::Connection used by manager.
|
|
Glib::RefPtr< const Connection > | get_connection () const |
| Gets the Gio::DBus::Connection used by manager.
|
|
void | set_connection (const Glib::RefPtr< Connection > &connection) |
| Exports all objects managed by manager on connection.
|
|
void | export_object (const Glib::RefPtr< Gio::DBus::ObjectSkeleton > &object) |
| Exports object on manager.
|
|
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.
|
|
bool | is_exported (const Glib::RefPtr< Gio::DBus::ObjectSkeleton > &object) const |
| Returns whether object is currently exported on manager.
|
|
bool | unexport (const Glib::ustring &object_path) |
| If manager has an object at path, removes the object.
|
|
Glib::PropertyProxy< Glib::RefPtr< Connection > > | property_connection () |
| The Gio::DBus::Connection to export objects on.
|
|
Glib::PropertyProxy_ReadOnly< Glib::RefPtr< Connection > > | property_connection () const |
| The Gio::DBus::Connection to export objects on.
|
|
Glib::PropertyProxy_ReadOnly< Glib::ustring > | property_object_path () const |
| The object path to register the manager object at.
|
|
| 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_with_c_callback (const Quark & key, void *data, GDestroyNotify notify) |
|
void | set_data (const Quark & key, void *data, DestroyNotify notify) |
| Prefer set_data_with_c_callback() with a callback with C linkage.
|
|
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.
|
|
void | get_property_value (const Glib::ustring & property_name, Glib::ValueBase & value) const |
| You probably want to use a specific property_*() accessor method instead.
|
|
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.
|
|
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.
|
|
template<class PropertyType > |
PropertyType | get_property (const Glib::ustring & property_name) const |
| You probably want to use a specific property_*() accessor method instead.
|
|
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.
|
|
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.
|
|
void | freeze_notify () |
| Increases the freeze count on object.
|
|
void | thaw_notify () |
| Reverts the effect of a previous call to freeze_notify().
|
|
virtual void | reference () const |
| Increment the reference count for this object.
|
|
virtual void | unreference () const |
| Decrement the reference count for this object.
|
|
GObject * | gobj () |
| Provides access to the underlying C GObject.
|
|
const GObject * | gobj () const |
| Provides access to the underlying C GObject.
|
|
GObject * | gobj_copy () const |
| Give a ref-ed copy to someone. Use for direct struct access.
|
|
| ObjectManager (ObjectManager &&src) noexcept |
|
ObjectManager & | operator= (ObjectManager &&src) noexcept |
|
| ~ObjectManager () noexcept override |
|
GDBusObjectManager * | gobj () |
| Provides access to the underlying C GObject.
|
|
const GDBusObjectManager * | gobj () const |
| Provides access to the underlying C GObject.
|
|
Glib::ustring | get_object_path () const |
| Gets the object path that manager is for.
|
|
std::vector< Glib::RefPtr< Gio::DBus::Object > > | get_objects () |
| Gets all DBusObject objects known to manager.
|
|
std::vector< Glib::RefPtr< const Gio::DBus::Object > > | get_objects () const |
| Gets all DBusObject objects known to manager.
|
|
Glib::RefPtr< Gio::DBus::Object > | get_object (const Glib::ustring &object_path) |
| Gets the DBusObject at object_path, if any.
|
|
Glib::RefPtr< const Gio::DBus::Object > | get_object (const Glib::ustring &object_path) const |
| Gets the DBusObject at object_path, if any.
|
|
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.
|
|
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.
|
|
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.
|
|
| Interface (Interface &&src) noexcept |
|
Interface & | operator= (Interface &&src) noexcept |
|
| Interface (const Glib::Interface_Class &interface_class) |
| Called by constructors of derived classes.
|
|
| Interface (GObject *castitem) |
| Called by constructors of derived classes.
|
|
| ~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: