QtDataSync
4.2.0
A simple offline-first synchronisation framework, to synchronize data of Qt applications between devices
|
Information about a device that is part of an account or wants to be added. More...
#include <accountmanager.h>
Public Member Functions | |
DeviceInfo () | |
Default constructor. | |
DeviceInfo (const QUuid &deviceId, const QString &name, const QByteArray &fingerprint) | |
Constructor from data. | |
DeviceInfo (const DeviceInfo &other) | |
Copy constructor. | |
DeviceInfo (DeviceInfo &&other) noexcept | |
Move constructor. | |
DeviceInfo & | operator= (const DeviceInfo &other) |
Copy-Assignment operator. | |
DeviceInfo & | operator= (DeviceInfo &&other) noexcept |
Move-Assignment operator. | |
QUuid | deviceId () const |
READ accessor for DeviceInfo::deviceId. | |
QString | name () const |
READ accessor for DeviceInfo::name. | |
QByteArray | fingerprint () const |
READ accessor for DeviceInfo::fingerprint. | |
void | setDeviceId (const QUuid &deviceId) |
WRITE accessor for DeviceInfo::deviceId. | |
void | setName (const QString &name) |
WRITE accessor for DeviceInfo::name. | |
void | setFingerprint (const QByteArray &fingerprint) |
WRITE accessor for DeviceInfo::fingerprint. | |
bool | operator== (const DeviceInfo &other) const |
Equality operator. | |
bool | operator!= (const DeviceInfo &other) const |
Inequality operator. | |
Properties | |
QUuid | deviceId |
The unique id that device is identified by. More... | |
QString | name |
The display name of the device. More... | |
QByteArray | fingerprint |
The fingerprint of the devices cryptographic keys. More... | |
Friends | |
Q_DATASYNC_EXPORT QDataStream & | operator<< (QDataStream &stream, const DeviceInfo &deviceInfo) |
Stream operator to stream into a QDataStream. | |
Q_DATASYNC_EXPORT QDataStream & | operator>> (QDataStream &stream, DeviceInfo &deviceInfo) |
Stream operator to stream out of a QDataStream. | |
Information about a device that is part of an account or wants to be added.
Definition at line 24 of file accountmanager.h.
|
readwrite |
The unique id that device is identified by.
Default: {00000000-0000-0000-0000-000000000000}
Accessors | |
---|---|
READ | deviceId() |
WRITE | setDeviceId() |
Definition at line 29 of file accountmanager.h.
|
readwrite |
The fingerprint of the devices cryptographic keys.
Default: empty
Accessors | |
---|---|
READ | fingerprint() |
WRITE | setFingerprint() |
Definition at line 33 of file accountmanager.h.
|
readwrite |
The display name of the device.
Default: empty
Accessors | |
---|---|
READ | name() |
WRITE | setName() |
Definition at line 31 of file accountmanager.h.