зеркало из https://github.com/nextcloud/desktop.git
Bounce sync state change signals from socket controller in socket server
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Родитель
744ac540db
Коммит
87066c8bb5
|
@ -62,6 +62,8 @@ void FileProviderSocketServer::slotNewConnection()
|
|||
}
|
||||
|
||||
const FileProviderSocketControllerPtr socketController(new FileProviderSocketController(socket, this));
|
||||
connect(socketController.data(), &FileProviderSocketController::syncStateChanged,
|
||||
this, &FileProviderSocketServer::syncStateChanged);
|
||||
connect(socketController.data(), &FileProviderSocketController::socketDestroyed,
|
||||
this, &FileProviderSocketServer::slotSocketDestroyed);
|
||||
_socketControllers.insert(socket, socketController);
|
||||
|
|
|
@ -17,6 +17,9 @@
|
|||
#include <QObject>
|
||||
#include <QLocalServer>
|
||||
|
||||
#include "libsync/accountfwd.h"
|
||||
#include "libsync/syncresult.h"
|
||||
|
||||
namespace OCC {
|
||||
|
||||
namespace Mac {
|
||||
|
@ -46,6 +49,9 @@ class FileProviderSocketServer : public QObject
|
|||
public:
|
||||
explicit FileProviderSocketServer(QObject *parent = nullptr);
|
||||
|
||||
signals:
|
||||
void syncStateChanged(const AccountPtr &account, SyncResult::Status state) const;
|
||||
|
||||
private slots:
|
||||
void startListening();
|
||||
void slotNewConnection();
|
||||
|
|
Загрузка…
Ссылка в новой задаче