mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-22 13:05:51 +03:00
Expose latest sync state in file provider socket controller
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
3877efba5e
commit
b290611471
2 changed files with 6 additions and 0 deletions
|
@ -242,6 +242,11 @@ void FileProviderSocketController::reportSyncState(const QString &receivedState)
|
|||
emit syncStateChanged(_accountState->account(), syncState);
|
||||
}
|
||||
|
||||
SyncResult::Status FileProviderSocketController::latestStatus() const
|
||||
{
|
||||
return _latestStatus;
|
||||
}
|
||||
|
||||
} // namespace Mac
|
||||
|
||||
} // namespace OCC
|
||||
|
|
|
@ -33,6 +33,7 @@ public:
|
|||
explicit FileProviderSocketController(QLocalSocket * const socket, QObject * const parent = nullptr);
|
||||
|
||||
[[nodiscard]] AccountStatePtr accountState() const;
|
||||
[[nodiscard]] SyncResult::Status latestStatus() const;
|
||||
|
||||
signals:
|
||||
void socketDestroyed(const QLocalSocket * const socket);signals:
|
||||
|
|
Loading…
Reference in a new issue