class EveusbEventHandler
 class EveusbController
 class Device 


class EveusbEventHandler

Receives responses from daemon on requests sent via EveusbController.

Pure abstract class.

 

Write an inheriting class with the implementation of methods and pass an instance of this class

to EveusbController::setEventHandler, after that, send requests to the daemon via

EveusbController.


class EveusbController

The daemon management API.

 

All member functions are asynchronous. The function sends a request to the daemon and returns control. Once the response from the daemon is received via onDataAvailable(), the corresponding function of the class instance, set via setEventHandler(), is called. setEventHandler must be called before any other non-static member.

 

Use either connect() or getSocketPath() static member functions to establish connection with daemon via local socket. You have to manage the socket yourself. You should organize read loop (see onDataAvailable) and error handling.

 

EveusbEventHandler::writeToDaemon/readFromDaemon is called if EveusbController requests read/write operations on a socket that you manage.

 

Members return zero if command is sent to the daemon, otherwise error code.


class Device

Local or remote USB device representation. If invalid arguments are passed to any constructor, Null Object will be returned. Instances of this class are often used as a key in containers such as map/set/unordered_map/unordered_set. Thus, key members cannot be changed after object creation. Strings encoding is UTF-8.