18 #include <QDataStream> 39 QDataStream *stream =
new QDataStream(&data, QIODevice::WriteOnly);
58 QDataStream readStream(&data, QIODevice::ReadOnly);
void deleteDeviceArgs(const QString &id, int sequence)
QDataStream & operator<<(QDataStream &ds, const DeviceUserArgs::Args &inObj)
void addOrUpdateDeviceArgs(const QString &id, int sequence, const QString &args)
Add or update if it exists for same reference.
void writeBlob(quint32 id, const QByteArray &value)
QDataStream & operator>>(QDataStream &ds, DeviceUserArgs::Args &outObj)
QByteArray serialize() const
QList< Args > m_argsByDevice
args corresponding to a device
bool readBlob(quint32 id, QByteArray *result, const QByteArray &def=QByteArray()) const
void addDeviceArgs(const QString &id, int sequence, const QString &args)
Will not add if it exists for same reference.
quint32 getVersion() const
bool deserialize(const QByteArray &data)
void updateDeviceArgs(const QString &id, int sequence, const QString &args)
Will not update if reference does not exist.
const QByteArray & final()
QString findUserArgs(const QString &id, int sequence)