openthread-br  0.3.0-72c0388
Public Member Functions | List of all members
otbr::DBus::DBusThreadObject Class Reference
Inheritance diagram for otbr::DBus::DBusThreadObject:
otbr::DBus::DBusObject NonCopyable

Public Member Functions

 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
 
- Public Member Functions inherited from otbr::DBus::DBusObject
 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)
 

Additional Inherited Members

- Public Types inherited from otbr::DBus::DBusObject
using MethodHandlerType = std::function< void(DBusRequest &)>
 
using PropertyHandlerType = std::function< otError(DBusMessageIter &)>
 

Constructor & Destructor Documentation

◆ DBusThreadObject()

otbr::DBus::DBusThreadObject::DBusThreadObject ( DBusConnection *  aConnection,
const std::string &  aInterfaceName,
otbr::Ncp::ControllerOpenThread aNcp,
Mdns::Publisher aPublisher 
)

This constructor of dbus thread object.

Parameters
[in]aConnectionThe dbus connection.
[in]aInterfaceNameThe dbus interface name.
[in]aNcpThe ncp controller
[in]aPublisherThe Mdns::Publisher

Member Function Documentation

◆ 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_NONESuccessfully registered the object.
OTBR_ERROR_DBUSFailed 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]aInterfaceNameThe interface name.
[in]aPropertyNameThe property name.
[in]aHandlerThe method handler.

Reimplemented from otbr::DBus::DBusObject.


The documentation for this class was generated from the following files: