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

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.
 
UserInfooperator= (const UserInfo &other)
 Copy-Assignment operator.
 
UserInfooperator= (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...
 

Detailed Description

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.

See also
UserExchangeManager, UserExchangeManager::devices

Definition at line 18 of file userexchangemanager.h.

Property Documentation

◆ address

QtDataSync::UserInfo::address
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
READaddress()
CONSTANT
See also
UserInfo::port

Definition at line 26 of file userexchangemanager.h.

◆ name

QtDataSync::UserInfo::name
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
READname()
CONSTANT
See also
UserExchangeManager::deviceName

Definition at line 24 of file userexchangemanager.h.

◆ port

QtDataSync::UserInfo::port
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
READport()
CONSTANT
See also
UserInfo::address

Definition at line 28 of file userexchangemanager.h.


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