Expose latest sync state in file provider socket controller

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2024-07-17 17:28:27 +08:00
parent 3877efba5e
commit b290611471
No known key found for this signature in database
GPG key ID: C839200C384636B0
2 changed files with 6 additions and 0 deletions

View file

@ -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

View file

@ -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: