6#include <idoc/IDocumentMetaInfo.h>
11 class IProgressManager;
Interface for device data persistence.
virtual bool RemoveAllData(StorageType storageType)=0
Delete all data from device storage.
virtual bool WriteDataToStorage(const QByteArray &data, StorageType storageType, ibase::IProgressManager *progressPtr=nullptr)=0
Write all data to device storage.
MetaInfo
Device metadata information types.
@ MIT_FIRMWARE_VERSION
Firmware version string.
@ MIT_SERIAL_NUMBER
Device serial number.
@ MIT_VERSION_NUMBER
Device version number.
virtual bool ResetStorage(StorageType storageType)=0
Reset storage to initial/factory state.
StorageType
Device storage types.
@ ST_EEPROM
Electrically erasable programmable ROM (user configuration)
@ ST_ROM
Read-only memory (firmware, factory data)
virtual bool IsDeviceReady() const =0
Check if device is ready for operations.
virtual bool ReadDataFromStorage(QByteArray &data, StorageType storageType, ibase::IProgressManager *progressPtr=nullptr) const =0
Read all data from device storage.
virtual bool ReadDeviceMetaInfo(idoc::IDocumentMetaInfo &metaInfo) const =0
Read metadata from the device.