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::LoginRequest Class Reference

A login request done by another device to this device. More...

#include <accountmanager.h>

Public Member Functions

 LoginRequest (const LoginRequest &other)
 Copy constructor.
 
 LoginRequest (LoginRequest &&other) noexcept
 Move constructor.
 
LoginRequestoperator= (const LoginRequest &other)
 Copy-Assignment operator.
 
LoginRequestoperator= (LoginRequest &&other) noexcept
 Move-Assignment operator.
 
DeviceInfo device () const
 READ accessor for LoginRequest::device.
 
bool handled () const
 READ accessor for LoginRequest::handled.
 
Q_INVOKABLE void accept ()
 Accepts the login request if it has not been handled yet. Marks is as handled.
 
Q_INVOKABLE void reject ()
 Rejects the login request if it has not been handled yet. Marks is as handled.
 

Properties

QtDataSync::DeviceInfo device
 The device that requested to be added to the account. More...
 
bool handled
 Indicates whether this request has already been handled. More...
 

Detailed Description

A login request done by another device to this device.

See also
AccountManager::loginRequested

Definition at line 79 of file accountmanager.h.

Property Documentation

◆ device

QtDataSync::LoginRequest::device
read

The device that requested to be added to the account.

Default: The device that requested the login

Accessors
READdevice()
CONSTANT{}
See also
DeviceInfo

Definition at line 85 of file accountmanager.h.

◆ handled

QtDataSync::LoginRequest::handled
read

Indicates whether this request has already been handled.

Default: false

Note
This property gets updated to true as accept() or reject() have been called the first time
Accessors
READhandled()
CONSTANT{}
See also
LoginRequest::accept, LoginRequest::reject

Definition at line 87 of file accountmanager.h.


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