|
| DBusThreadObject (DBusConnection *aConnection, const std::string &aInterfaceName, otbr::Ncp::ControllerOpenThread *aNcp, Mdns::Publisher *aPublisher) |
|
otbrError | Init (void) override |
|
void | RegisterGetPropertyHandler (const std::string &aInterfaceName, const std::string &aPropertyName, const PropertyHandlerType &aHandler) override |
|
| DBusObject (DBusConnection *aConnection, const std::string &aObjectPath) |
|
void | RegisterMethod (const std::string &aInterfaceName, const std::string &aMethodName, const MethodHandlerType &aHandler) |
|
virtual void | RegisterSetPropertyHandler (const std::string &aInterfaceName, const std::string &aPropertyName, const PropertyHandlerType &aHandler) |
|
template<typename... FieldTypes> |
otbrError | Signal (const std::string &aInterfaceName, const std::string &aSignalName, const std::tuple< FieldTypes... > &aArgs) |
|
template<typename ValueType > |
otbrError | SignalPropertyChanged (const std::string &aInterfaceName, const std::string &aPropertyName, const ValueType &aValue) |
|
virtual | ~DBusObject (void) |
|
void | Flush (void) |
|
|
using | MethodHandlerType = std::function< void(DBusRequest &)> |
|
using | PropertyHandlerType = std::function< otError(DBusMessageIter &)> |
|
◆ DBusThreadObject()
This constructor of dbus thread object.
- Parameters
-
[in] | aConnection | The dbus connection. |
[in] | aInterfaceName | The dbus interface name. |
[in] | aNcp | The ncp controller |
[in] | aPublisher | The Mdns::Publisher |
◆ Init()
otbrError otbr::DBus::DBusThreadObject::Init |
( |
void |
| ) |
|
|
overridevirtual |
This method initializes the d-bus object.
This method will register the object to the d-bus library.
- Return values
-
OTBR_ERROR_NONE | Successfully registered the object. |
OTBR_ERROR_DBUS | Failed to ragister an object. |
Reimplemented from otbr::DBus::DBusObject.
◆ RegisterGetPropertyHandler()
void otbr::DBus::DBusThreadObject::RegisterGetPropertyHandler |
( |
const std::string & |
aInterfaceName, |
|
|
const std::string & |
aPropertyName, |
|
|
const PropertyHandlerType & |
aHandler |
|
) |
| |
|
overridevirtual |
This method registers the get handler for a property.
- Parameters
-
[in] | aInterfaceName | The interface name. |
[in] | aPropertyName | The property name. |
[in] | aHandler | The method handler. |
Reimplemented from otbr::DBus::DBusObject.
The documentation for this class was generated from the following files: