DBusObject class
An object that is exported on the bus.
Constructors
- DBusObject(DBusObjectPath path, {bool isObjectManager = false})
- Creates a new object to export on the bus at path.
Properties
- client ↔ DBusClient?
-
The client this object is being exported by.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
-
interfacesAndProperties
→ Map<
String, Map< String, DBusValue> > -
Interfaces and properties of this object.
This only requires overriding if using this object with the org.freedesktop.DBus.ObjectManager interface.
no setter
- isObjectManager → bool
-
True if this object exposes the org.freedesktop.DBus.ObjectManager interface.
final
- path → DBusObjectPath
-
The path this object is registered on.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
emitInterfacesAdded(
DBusObjectPath path, Map< String, Map< interfacesAndProperties) → Future<String, DBusValue> >void> -
Emits org.freedesktop.DBus.ObjectManager.InterfacesAdded on this object.
path
is the path to the object that has been added or changed.interfacesAndProperties
is the interfaces added to the object atpath
and the properties this object has. -
emitInterfacesRemoved(
DBusObjectPath path, Iterable< String> interfaces) → Future<void> -
Emits org.freedesktop.DBus.ObjectManager.InterfacesRemoved on this object.
path
is the path to the object is being removed or changed.interfaces
is the names of the interfaces being removed from the object atpath
. -
emitPropertiesChanged(
String interface, {Map< String, DBusValue> changedProperties = const {}, List<String> invalidatedProperties = const []}) → Future<void> - Emits org.freedesktop.DBus.Properties.PropertiesChanged on this object.
-
emitSignal(
String interface, String name, [Iterable< DBusValue> values = const []]) → Future<void> - Emits a signal on this object.
-
getAllProperties(
String interface) → Future< DBusMethodResponse> - Called when all properties are requested on this object. On success, return DBusGetAllPropertiesResponse.
-
getProperty(
String interface, String name) → Future< DBusMethodResponse> - Called when a property is requested on this object. On success, return DBusGetPropertyResponse.
-
handleMethodCall(
DBusMethodCall methodCall) → Future< DBusMethodResponse> - Called when a method call is received on this object.
-
introspect(
) → List< DBusIntrospectInterface> - Called to get introspection information about this object.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setProperty(
String interface, String name, DBusValue value) → Future< DBusMethodResponse> - Called when a property is set on this object. On success, return DBusMethodSuccessResponse.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited