swift
|
DBus connection. More...
Public Types | |
using | NewConnectionFunc = std::function< void(std::shared_ptr< CDBusConnection >)> |
New connection handler function. | |
Public Member Functions | |
CDBusServer () | |
Constructor. | |
virtual | ~CDBusServer () |
Destructor. | |
void | setDispatcher (CDBusDispatcher *dispatcher) |
Set the dispatcher. | |
bool | listen (const std::string &address) |
Connect to bus. | |
bool | isConnected () const |
Is connected? | |
void | dispatch () |
Dispatch execution method. | |
void | close () |
Close connection. | |
CDBusError | lastError () const |
Get the last error. | |
void | setNewConnectionFunc (const NewConnectionFunc &func) |
Set the function to be used for handling new connections. | |
![]() | |
IDispatchable ()=default | |
Default constructor. | |
virtual | ~IDispatchable ()=default |
Default destructor. | |
DBus connection.
Definition at line 26 of file dbusserver.h.