swift
Classes | Public Types | Public Member Functions | List of all members
XSwiftBus::CDBusServer Class Reference

DBus connection. More...

Inheritance diagram for XSwiftBus::CDBusServer:
[legend]

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.
 
- Public Member Functions inherited from XSwiftBus::IDispatchable
 IDispatchable ()=default
 Default constructor.
 
virtual ~IDispatchable ()=default
 Default destructor.
 

Detailed Description

DBus connection.

Definition at line 26 of file dbusserver.h.


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