6#include <QtCore/QSharedPointer>
9#include <istd/IChangeable.h>
32typedef QSharedPointer<IDeviceAccessor> DeviceAccessorPtr;
139 virtual DeviceAccessorPtr
GetSubDevice(
const QByteArray& deviceId)
const = 0;
154 const QByteArray& commandId,
155 const iprm::IParamsSet* commandParamsPtr =
nullptr) = 0;
Common interface for accessing an open device.
virtual const iprm::IOptionsList & GetSubDeviceList() const =0
Get the list of sub-devices.
virtual QByteArray GetDeviceId() const =0
Get the device ID associated with this accessor.
virtual CommandResultPtr ExecuteCommand(const QByteArray &commandId, const iprm::IParamsSet *commandParamsPtr=nullptr)=0
Execute a command on the device.
virtual DeviceAccessorPtr GetSubDevice(const QByteArray &deviceId) const =0
Access a sub-device.
virtual bool IsValid() const =0
Get device accessor validity status.
QSharedPointer< istd::IChangeable > CommandResultPtr
Shared pointer type for command results.