QtDataSync  4.2.0
A simple offline-first synchronisation framework, to synchronize data of Qt applications between devices
Public Member Functions | Properties | Friends | List of all members
QtDataSync::DeviceInfo Class Reference

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.
 
DeviceInfooperator= (const DeviceInfo &other)
 Copy-Assignment operator.
 
DeviceInfooperator= (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 QDataStreamoperator<< (QDataStream &stream, const DeviceInfo &deviceInfo)
 Stream operator to stream into a QDataStream.
 
Q_DATASYNC_EXPORT QDataStreamoperator>> (QDataStream &stream, DeviceInfo &deviceInfo)
 Stream operator to stream out of a QDataStream.
 

Detailed Description

Information about a device that is part of an account or wants to be added.

See also
LoginRequest, AccountManager

Definition at line 24 of file accountmanager.h.

Property Documentation

◆ deviceId

QtDataSync::DeviceInfo::deviceId
readwrite

The unique id that device is identified by.

Default: {00000000-0000-0000-0000-000000000000}

Accessors
READdeviceId()
WRITEsetDeviceId()
See also
AccountManager::removeDevice

Definition at line 29 of file accountmanager.h.

◆ fingerprint

QtDataSync::DeviceInfo::fingerprint
readwrite

The fingerprint of the devices cryptographic keys.

Default: empty

Accessors
READfingerprint()
WRITEsetFingerprint()
See also
AccountManager::deviceFingerprint

Definition at line 33 of file accountmanager.h.

◆ name

QtDataSync::DeviceInfo::name
readwrite

The display name of the device.

Default: empty

Accessors
READname()
WRITEsetName()
See also
AccountManager::deviceName

Definition at line 31 of file accountmanager.h.


The documentation for this class was generated from the following files: