ImagingTools Core SDK
IDeviceStateProvider.h
1// SPDX-License-Identifier: LGPL-2.1-or-later OR GPL-2.0-or-later OR GPL-3.0-or-later OR LicenseRef-ImtCore-Commercial
2#pragma once
3
4
5// ACF includes
6#include <istd/IChangeable.h>
7
8
9namespace imtdev
10{
11
12
79class IDeviceStateProvider : virtual public istd::IChangeable
80{
81public:
82
89 {
97
106
114 };
115
122 {
125 CF_STATE_CHANGED = istd::IChangeable::ChangeFlags::CF_NO_UNDO + 7171
126 };
127
137 virtual DeviceState GetDeviceState(const QByteArray& deviceId) const = 0;
138};
139
140
141} // namespace imtdev
142
143
Interface for tracking device connection states.
DeviceState
Runtime state of a device.
@ DS_NONE
Device is not available.
@ DS_CLOSED
Device is available but not running.
@ DS_OPENED
Processing loop of the device is running.
virtual DeviceState GetDeviceState(const QByteArray &deviceId) const =0
Get the current state of a device.
ChangeFlags
Change notification flags.