glibmm: Gio::DBus::NodeInfo Class Reference
NodeInfo - Stores information about nodes in a remote object hierarchy. More...
#include <giomm/dbusintrospection.h>
Public Member Functions | |
| void | reference () const |
| Increment the reference count for this object. | |
| void | unreference () const |
| Decrement the reference count for this object. | |
| GDBusNodeInfo* | gobj () |
| Provides access to the underlying C instance. | |
| const GDBusNodeInfo* | gobj () const |
| Provides access to the underlying C instance. | |
| GDBusNodeInfo* | gobj_copy () const |
| Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. | |
| Glib::RefPtr< InterfaceInfo > | lookup_interface (const Glib::ustring& name) |
| Looks up information about an interface. | |
| Glib::RefPtr< const InterfaceInfo > | lookup_interface (const Glib::ustring& name) const |
| Looks up information about an interface. | |
| Glib::RefPtr< InterfaceInfo > | lookup_interface () |
| Looks up information about the first interface. | |
| Glib::RefPtr< const InterfaceInfo > | lookup_interface () const |
| Looks up information about the first interface. | |
Static Public Member Functions | |
| static Glib::RefPtr< NodeInfo > | create_for_xml (const Glib::ustring& xml_data) |
| Parses xml_data and returns a DBusNodeInfo representing the data. | |
Protected Member Functions | |
| NodeInfo () | |
| void | operator delete (void*, std::size_t) |
Related Functions | |
(Note that these are not member functions.) | |
| Glib::RefPtr< Gio::DBus::NodeInfo > | wrap (GDBusNodeInfo* object, bool take_copy=false) |
| A Glib::wrap() method for this object. | |
Detailed Description
NodeInfo - Stores information about nodes in a remote object hierarchy.
Constructor & Destructor Documentation
|
protected |
Member Function Documentation
|
static |
Parses xml_data and returns a DBusNodeInfo representing the data.
The introspection XML must contain exactly one top-level <tag class="starttag">node</tag> element.
Note that this routine is using a GMarkup-based parser that only accepts a subset of valid XML documents.
- Parameters
-
xml_data Valid D-Bus introspection XML.
- Returns
- A DBusNodeInfo structure or
0if error is set. Free with g_dbus_node_info_unref().
- Exceptions
-
Glib::Error.
| GDBusNodeInfo* Gio::DBus::NodeInfo::gobj | ( | ) |
Provides access to the underlying C instance.
| const GDBusNodeInfo* Gio::DBus::NodeInfo::gobj | ( | ) | const |
Provides access to the underlying C instance.
| GDBusNodeInfo* Gio::DBus::NodeInfo::gobj_copy | ( | ) | const |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
| Glib::RefPtr<InterfaceInfo> Gio::DBus::NodeInfo::lookup_interface | ( | const Glib::ustring& | name | ) |
Looks up information about an interface.
This cost of this function is O(n) in number of interfaces.
- Parameters
-
name A D-Bus interface name.
- Returns
- A DBusInterfaceInfo or
0if not found. Do not free, it is owned by info.
| Glib::RefPtr<const InterfaceInfo> Gio::DBus::NodeInfo::lookup_interface | ( | const Glib::ustring& | name | ) | const |
Looks up information about an interface.
This cost of this function is O(n) in number of interfaces.
- Parameters
-
name A D-Bus interface name.
- Returns
- A DBusInterfaceInfo or
0if not found. Do not free, it is owned by info.
| Glib::RefPtr<InterfaceInfo> Gio::DBus::NodeInfo::lookup_interface | ( | ) |
Looks up information about the first interface.
| Glib::RefPtr<const InterfaceInfo> Gio::DBus::NodeInfo::lookup_interface | ( | ) | const |
Looks up information about the first interface.
|
protected |
| void Gio::DBus::NodeInfo::reference | ( | ) | const |
Increment the reference count for this object.
You should never need to do this manually - use the object via a RefPtr instead.
| void Gio::DBus::NodeInfo::unreference | ( | ) | const |
Decrement the reference count for this object.
You should never need to do this manually - use the object via a RefPtr instead.
Friends And Related Function Documentation
|
related |
A Glib::wrap() method for this object.
- Parameters
-
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.
- Returns
- A C++ instance that wraps this C instance.
