From: Claudio Cambra Date: Wed, 19 Mar 2025 17:53:56 +0000 (+0100) Subject: gui/macOS: Constify methods in file provider socket controller X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2^2~68^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=b4bff5c5b7f69ebb971a5fa4313b44e19ebdd185;p=nextcloud-desktop.git gui/macOS: Constify methods in file provider socket controller Signed-off-by: Claudio Cambra --- diff --git a/src/gui/macOS/fileprovidersocketcontroller.cpp b/src/gui/macOS/fileprovidersocketcontroller.cpp index ae70f9fdb..1f9bd202b 100644 --- a/src/gui/macOS/fileprovidersocketcontroller.cpp +++ b/src/gui/macOS/fileprovidersocketcontroller.cpp @@ -162,7 +162,7 @@ void FileProviderSocketController::requestFileProviderDomainInfo() const sendMessage(requestMessage); } -void FileProviderSocketController::slotAccountStateChanged(const AccountState::State state) +void FileProviderSocketController::slotAccountStateChanged(const AccountState::State state) const { switch(state) { case AccountState::Disconnected: @@ -241,7 +241,7 @@ void FileProviderSocketController::sendAccountDetails() const sendMessage(message); } -void FileProviderSocketController::reportSyncState(const QString &receivedState) +void FileProviderSocketController::reportSyncState(const QString &receivedState) const { if (!accountState()) { qCWarning(lcFileProviderSocketController) << "No account state available to report sync state"; diff --git a/src/gui/macOS/fileprovidersocketcontroller.h b/src/gui/macOS/fileprovidersocketcontroller.h index 30fc8251a..94c3ccfb0 100644 --- a/src/gui/macOS/fileprovidersocketcontroller.h +++ b/src/gui/macOS/fileprovidersocketcontroller.h @@ -47,14 +47,14 @@ private slots: void slotSocketDestroyed(const QObject * const object); void slotReadyRead(); - void slotAccountStateChanged(const OCC::AccountState::State state); + void slotAccountStateChanged(const OCC::AccountState::State state) const; void parseReceivedLine(const QString &receivedLine); void requestFileProviderDomainInfo() const; void sendAccountDetails() const; void sendNotAuthenticated() const; - void reportSyncState(const QString &receivedState); + void reportSyncState(const QString &receivedState) const; private: QPointer _socket;