• DeviceHandler
  • DeviceHandler Class

    (nymeaserver::DeviceHandler)

    This subclass of JsonHandler processes the JSON requests for the Devices namespace of the JSON-RPC API. More...

    Header: #include <DeviceHandler>
    Inherits: JsonHandler

    Public Functions

    DeviceHandler(QObject * parent = 0)

    Reimplemented Public Functions

    virtual QString name() const

    Signals

    void DeviceAdded(const QVariantMap & params)
    void DeviceChanged(const QVariantMap & params)
    void DeviceRemoved(const QVariantMap & params)
    void PluginConfigurationChanged(const QVariantMap & params)
    void StateChanged(const QVariantMap & params)

    Additional Inherited Members

    Detailed Description

    This subclass of JsonHandler processes the JSON requests for the Devices namespace of the JSON-RPC API.

    This JsonHandler will be created in the JsonRPCServer and used to handle JSON-RPC requests for the Devices namespace of the API.

    See also Device, JsonHandler, and JsonRPCServer.

    Member Function Documentation

    DeviceHandler::DeviceHandler(QObject * parent = 0)

    Constructs a new DeviceHandler with the given parent.

    [signal] void DeviceHandler::DeviceAdded(const QVariantMap & params)

    This signal is emitted to the API notifications when a Device has been added. The params contain the map for the notification.

    [signal] void DeviceHandler::DeviceChanged(const QVariantMap & params)

    This signal is emitted to the API notifications when a Device has been changed or reconfigured. The params contain the map for the notification.

    [signal] void DeviceHandler::DeviceRemoved(const QVariantMap & params)

    This signal is emitted to the API notifications when a Device has been removed. The params contain the map for the notification.

    [signal] void DeviceHandler::PluginConfigurationChanged(const QVariantMap & params)

    [signal] void DeviceHandler::StateChanged(const QVariantMap & params)

    This signal is emitted to the API notifications when a State has changed. The params contain the map for the notification.

    [virtual] QString DeviceHandler::name() const

    Reimplemented from JsonHandler::name().

    Returns the name of the DeviceHandler. In this case Devices.