QtDataSync
4.2.0
A simple offline-first synchronisation framework, to synchronize data of Qt applications between devices
|
Provides information about a detected exchange user. More...
#include <userexchangemanager.h>
Public Member Functions | |
UserInfo (const UserInfo &other) | |
Copy Constructor. | |
UserInfo (UserInfo &&other) noexcept | |
Move constructor. | |
UserInfo & | operator= (const UserInfo &other) |
Copy-Assignment operator. | |
UserInfo & | operator= (UserInfo &&other) noexcept |
Move-Assignment operator. | |
QString | name () const |
READ accessor for UserInfo::name. | |
QHostAddress | address () const |
READ accessor for UserInfo::address. | |
quint16 | port () const |
READ accessor for UserInfo::port. | |
bool | operator== (const UserInfo &other) const |
Equality operator. | |
bool | operator!= (const UserInfo &other) const |
inequality operator | |
Properties | |
QString | name |
The display name of the user. More... | |
QHostAddress | address |
The ip address of the user. More... | |
quint16 | port |
The port of the user. More... | |
Provides information about a detected exchange user.
This class is used by the UserExchangeManager class to provide information about discovered users. The name can be choosen by the remote that sent the user information, address and port are detected from the message.
Definition at line 18 of file userexchangemanager.h.
|
read |
The ip address of the user.
Default: Unknown
The address from where the message came. Is also used as target address to send a message back.
Accessors | |
---|---|
READ | address() |
CONSTANT |
Definition at line 26 of file userexchangemanager.h.
|
read |
The display name of the user.
Default: "<Unnamed>"
(Translated)
The name can be choosen by whoever sent the message. It is typically used to identify a device from a users view.
Accessors | |
---|---|
READ | name() |
CONSTANT |
Definition at line 24 of file userexchangemanager.h.
|
read |
The port of the user.
Default: Unknown
The port from where the message came. Is also used as target port to send a message back.
Accessors | |
---|---|
READ | port() |
CONSTANT |
Definition at line 28 of file userexchangemanager.h.