Merge pull request #5088 from nextcloud/ci/clazyNotFullyQualifiedTypes

fully qualify types in signals and slots
This commit is contained in:
Matthieu Gallien 2022-11-15 11:02:00 +01:00 committed by GitHub
commit adb91765a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
48 changed files with 215 additions and 215 deletions

View file

@ -258,7 +258,7 @@ public slots:
* via the vfs plugin. The connection to SyncFileStatusTracker allows both to be based * via the vfs plugin. The connection to SyncFileStatusTracker allows both to be based
* on the same data. * on the same data.
*/ */
virtual void fileStatusChanged(const QString &systemFileName, SyncFileStatus fileStatus) = 0; virtual void fileStatusChanged(const QString &systemFileName, OCC::SyncFileStatus fileStatus) = 0;
signals: signals:
/// Emitted when a user-initiated hydration starts /// Emitted when a user-initiated hydration starts
@ -320,7 +320,7 @@ public:
AvailabilityResult availability(const QString &) override { return VfsItemAvailability::AlwaysLocal; } AvailabilityResult availability(const QString &) override { return VfsItemAvailability::AlwaysLocal; }
public slots: public slots:
void fileStatusChanged(const QString &, SyncFileStatus) override {} void fileStatusChanged(const QString &, OCC::SyncFileStatus) override {}
protected: protected:
void startImpl(const VfsSetupParams &) override {} void startImpl(const VfsSetupParams &) override {}

View file

@ -108,16 +108,16 @@ private:
public slots: public slots:
/// Saves account data, not including the credentials /// Saves account data, not including the credentials
void saveAccount(Account *a); void saveAccount(OCC::Account *a);
/// Saves account state data, not including the account /// Saves account state data, not including the account
void saveAccountState(AccountState *a); void saveAccountState(OCC::AccountState *a);
Q_SIGNALS: Q_SIGNALS:
void accountAdded(AccountState *account); void accountAdded(OCC::AccountState *account);
void accountRemoved(AccountState *account); void accountRemoved(OCC::AccountState *account);
void accountSyncConnectionRemoved(AccountState *account); void accountSyncConnectionRemoved(OCC::AccountState *account);
void removeAccountFolders(AccountState *account); void removeAccountFolders(OCC::AccountState *account);
}; };
} }

View file

@ -62,9 +62,9 @@ public:
signals: signals:
void folderChanged(); void folderChanged();
void openFolderAlias(const QString &); void openFolderAlias(const QString &);
void showIssuesList(AccountState *account); void showIssuesList(OCC::AccountState *account);
void requestMnemonic(); void requestMnemonic();
void removeAccountFolders(AccountState *account); void removeAccountFolders(OCC::AccountState *account);
void styleChanged(); void styleChanged();
public slots: public slots:
@ -72,7 +72,7 @@ public slots:
void slotUpdateQuota(qint64 total, qint64 used); void slotUpdateQuota(qint64 total, qint64 used);
void slotAccountStateChanged(); void slotAccountStateChanged();
void slotStyleChanged(); void slotStyleChanged();
AccountState *accountsState() { return _accountState; } OCC::AccountState *accountsState() { return _accountState; }
void slotHideSelectiveSyncWidget(); void slotHideSelectiveSyncWidget();
protected slots: protected slots:
@ -89,14 +89,14 @@ protected slots:
void slotEditCurrentLocalIgnoredFiles(); void slotEditCurrentLocalIgnoredFiles();
void slotEnableVfsCurrentFolder(); void slotEnableVfsCurrentFolder();
void slotDisableVfsCurrentFolder(); void slotDisableVfsCurrentFolder();
void slotSetCurrentFolderAvailability(PinState state); void slotSetCurrentFolderAvailability(OCC::PinState state);
void slotSetSubFolderAvailability(Folder *folder, const QString &path, PinState state); void slotSetSubFolderAvailability(OCC::Folder *folder, const QString &path, OCC::PinState state);
void slotFolderWizardAccepted(); void slotFolderWizardAccepted();
void slotFolderWizardRejected(); void slotFolderWizardRejected();
void slotDeleteAccount(); void slotDeleteAccount();
void slotToggleSignInState(); void slotToggleSignInState();
void refreshSelectiveSyncStatus(); void refreshSelectiveSyncStatus();
void slotMarkSubfolderEncrypted(FolderStatusModel::SubFolderInfo *folderInfo); void slotMarkSubfolderEncrypted(OCC::FolderStatusModel::SubFolderInfo *folderInfo);
void slotSubfolderContextMenuRequested(const QModelIndex& idx, const QPoint& point); void slotSubfolderContextMenuRequested(const QModelIndex& idx, const QPoint& point);
void slotCustomContextMenuRequested(const QPoint &); void slotCustomContextMenuRequested(const QPoint &);
void slotFolderListClicked(const QModelIndex &indx); void slotFolderListClicked(const QModelIndex &indx);

View file

@ -193,21 +193,21 @@ private:
void resetRetryCount(); void resetRetryCount();
signals: signals:
void stateChanged(State state); void stateChanged(OCC::AccountState::State state);
void isConnectedChanged(); void isConnectedChanged();
void hasFetchedNavigationApps(); void hasFetchedNavigationApps();
void statusChanged(); void statusChanged();
void desktopNotificationsAllowedChanged(); void desktopNotificationsAllowedChanged();
protected Q_SLOTS: protected Q_SLOTS:
void slotConnectionValidatorResult(ConnectionValidator::Status status, const QStringList &errors); void slotConnectionValidatorResult(OCC::ConnectionValidator::Status status, const QStringList &errors);
/// When client gets a 401 or 403 checks if server requested remote wipe /// When client gets a 401 or 403 checks if server requested remote wipe
/// before asking for user credentials again /// before asking for user credentials again
void slotHandleRemoteWipeCheck(); void slotHandleRemoteWipeCheck();
void slotCredentialsFetched(AbstractCredentials *creds); void slotCredentialsFetched(OCC::AbstractCredentials *creds);
void slotCredentialsAsked(AbstractCredentials *creds); void slotCredentialsAsked(OCC::AbstractCredentials *creds);
void slotNavigationAppsFetched(const QJsonDocument &reply, int statusCode); void slotNavigationAppsFetched(const QJsonDocument &reply, int statusCode);
void slotEtagResponseHeaderReceived(const QByteArray &value, int statusCode); void slotEtagResponseHeaderReceived(const QByteArray &value, int statusCode);

View file

@ -94,7 +94,7 @@ protected:
signals: signals:
void folderRemoved(); void folderRemoved();
void folderStateChanged(Folder *); void folderStateChanged(OCC::Folder *);
void isShowingSettingsDialog(); void isShowingSettingsDialog();
protected slots: protected slots:
@ -102,8 +102,8 @@ protected slots:
void slotCheckConnection(); void slotCheckConnection();
void slotUseMonoIconsChanged(bool); void slotUseMonoIconsChanged(bool);
void slotCleanup(); void slotCleanup();
void slotAccountStateAdded(AccountState *accountState); void slotAccountStateAdded(OCC::AccountState *accountState);
void slotAccountStateRemoved(AccountState *accountState); void slotAccountStateRemoved(OCC::AccountState *accountState);
void slotSystemOnlineConfigurationChanged(QNetworkConfiguration); void slotSystemOnlineConfigurationChanged(QNetworkConfiguration);
void slotGuiIsShowingSettings(); void slotGuiIsShowingSettings();

View file

@ -49,9 +49,9 @@ public:
public slots: public slots:
void slotSyncStarted(); void slotSyncStarted();
void slotSyncFinished(const SyncResult &); void slotSyncFinished(const OCC::SyncResult &);
void slotUpdateProgress(const QString &folder, const ProgressInfo &progress); void slotUpdateProgress(const QString &folder, const OCC::ProgressInfo &progress);
void slotSyncPausedChanged(Folder*, bool); void slotSyncPausedChanged(OCC::Folder*, bool);
private: private:
Folder *_folder; Folder *_folder;

View file

@ -108,7 +108,7 @@ public slots:
void checkAuthentication(); void checkAuthentication();
signals: signals:
void connectionResult(ConnectionValidator::Status status, const QStringList &errors); void connectionResult(OCC::ConnectionValidator::Status status, const QStringList &errors);
protected slots: protected slots:
void slotCheckServerAndAuth(); void slotCheckServerAndAuth();
@ -121,7 +121,7 @@ protected slots:
void slotAuthSuccess(); void slotAuthSuccess();
void slotCapabilitiesRecieved(const QJsonDocument &); void slotCapabilitiesRecieved(const QJsonDocument &);
void slotUserFetched(UserInfo *userInfo); void slotUserFetched(OCC::UserInfo *userInfo);
private: private:
#ifndef TOKEN_AUTH_ONLY #ifndef TOKEN_AUTH_ONLY

View file

@ -58,10 +58,10 @@ signals:
* The state has changed. * The state has changed.
* when logged in, appPassword has the value of the app password. * when logged in, appPassword has the value of the app password.
*/ */
void result(Flow2Auth::Result result, const QString &errorString = QString(), void result(OCC::Flow2Auth::Result result, const QString &errorString = QString(),
const QString &user = QString(), const QString &appPassword = QString()); const QString &user = QString(), const QString &appPassword = QString());
void statusChanged(const PollStatus status, int secondsLeft); void statusChanged(const OCC::Flow2Auth::PollStatus status, int secondsLeft);
public slots: public slots:
void slotPollNow(); void slotPollNow();

View file

@ -75,10 +75,10 @@ signals:
void displayErrorMessage(const int code, const QString &message); void displayErrorMessage(const int code, const QString &message);
public slots: public slots:
void setAccountState(AccountState *accountState); void setAccountState(OCC::AccountState *accountState);
void setShareItemIsFolder(const bool shareItemIsFolder); void setShareItemIsFolder(const bool shareItemIsFolder);
void setSearchString(const QString &searchString); void setSearchString(const QString &searchString);
void setLookupMode(const LookupMode lookupMode); void setLookupMode(const OCC::ShareeModel::LookupMode lookupMode);
void setShareeBlocklist(const QVariantList shareeBlocklist); void setShareeBlocklist(const QVariantList shareeBlocklist);
void fetch(); void fetch();

View file

@ -113,43 +113,43 @@ signals:
void serverError(const int code, const QString &message); void serverError(const int code, const QString &message);
void passwordSetError(const QString &shareId, const int code, const QString &message); void passwordSetError(const QString &shareId, const int code, const QString &message);
void requestPasswordForLinkShare(); void requestPasswordForLinkShare();
void requestPasswordForEmailSharee(const ShareePtr &sharee); void requestPasswordForEmailSharee(const OCC::ShareePtr &sharee);
void sharesChanged(); void sharesChanged();
public slots: public slots:
void setAccountState(AccountState *accountState); void setAccountState(OCC::AccountState *accountState);
void setLocalPath(const QString &localPath); void setLocalPath(const QString &localPath);
void createNewLinkShare() const; void createNewLinkShare() const;
void createNewLinkShareWithPassword(const QString &password) const; void createNewLinkShareWithPassword(const QString &password) const;
void createNewUserGroupShare(const ShareePtr &sharee); void createNewUserGroupShare(const OCC::ShareePtr &sharee);
void createNewUserGroupShareFromQml(const QVariant &sharee); void createNewUserGroupShareFromQml(const QVariant &sharee);
void createNewUserGroupShareWithPassword(const ShareePtr &sharee, const QString &password) const; void createNewUserGroupShareWithPassword(const OCC::ShareePtr &sharee, const QString &password) const;
void createNewUserGroupShareWithPasswordFromQml(const QVariant &sharee, const QString &password) const; void createNewUserGroupShareWithPasswordFromQml(const QVariant &sharee, const QString &password) const;
void deleteShare(const SharePtr &share) const; void deleteShare(const OCC::SharePtr &share) const;
void deleteShareFromQml(const QVariant &share) const; void deleteShareFromQml(const QVariant &share) const;
void toggleShareAllowEditing(const SharePtr &share, const bool enable) const; void toggleShareAllowEditing(const OCC::SharePtr &share, const bool enable) const;
void toggleShareAllowEditingFromQml(const QVariant &share, const bool enable) const; void toggleShareAllowEditingFromQml(const QVariant &share, const bool enable) const;
void toggleShareAllowResharing(const SharePtr &share, const bool enable) const; void toggleShareAllowResharing(const OCC::SharePtr &share, const bool enable) const;
void toggleShareAllowResharingFromQml(const QVariant &share, const bool enable) const; void toggleShareAllowResharingFromQml(const QVariant &share, const bool enable) const;
void toggleSharePasswordProtect(const SharePtr &share, const bool enable); void toggleSharePasswordProtect(const OCC::SharePtr &share, const bool enable);
void toggleSharePasswordProtectFromQml(const QVariant &share, const bool enable); void toggleSharePasswordProtectFromQml(const QVariant &share, const bool enable);
void toggleShareExpirationDate(const SharePtr &share, const bool enable) const; void toggleShareExpirationDate(const OCC::SharePtr &share, const bool enable) const;
void toggleShareExpirationDateFromQml(const QVariant &share, const bool enable) const; void toggleShareExpirationDateFromQml(const QVariant &share, const bool enable) const;
void toggleShareNoteToRecipient(const SharePtr &share, const bool enable) const; void toggleShareNoteToRecipient(const OCC::SharePtr &share, const bool enable) const;
void toggleShareNoteToRecipientFromQml(const QVariant &share, const bool enable) const; void toggleShareNoteToRecipientFromQml(const QVariant &share, const bool enable) const;
void setLinkShareLabel(const QSharedPointer<LinkShare> &linkShare, const QString &label) const; void setLinkShareLabel(const QSharedPointer<OCC::LinkShare> &linkShare, const QString &label) const;
void setLinkShareLabelFromQml(const QVariant &linkShare, const QString &label) const; void setLinkShareLabelFromQml(const QVariant &linkShare, const QString &label) const;
void setShareExpireDate(const SharePtr &share, const qint64 milliseconds) const; void setShareExpireDate(const OCC::SharePtr &share, const qint64 milliseconds) const;
// Needed as ints in QML are 32 bits so we need to use a QVariant // Needed as ints in QML are 32 bits so we need to use a QVariant
void setShareExpireDateFromQml(const QVariant &share, const QVariant milliseconds) const; void setShareExpireDateFromQml(const QVariant &share, const QVariant milliseconds) const;
void setSharePassword(const SharePtr &share, const QString &password); void setSharePassword(const OCC::SharePtr &share, const QString &password);
void setSharePasswordFromQml(const QVariant &share, const QString &password); void setSharePasswordFromQml(const QVariant &share, const QString &password);
void setShareNote(const SharePtr &share, const QString &note) const; void setShareNote(const OCC::SharePtr &share, const QString &note) const;
void setShareNoteFromQml(const QVariant &share, const QString &note) const; void setShareNoteFromQml(const QVariant &share, const QString &note) const;
private slots: private slots:
@ -160,11 +160,11 @@ private slots:
void slotPropfindReceived(const QVariantMap &result); void slotPropfindReceived(const QVariantMap &result);
void slotServerError(const int code, const QString &message); void slotServerError(const int code, const QString &message);
void slotAddShare(const SharePtr &share); void slotAddShare(const OCC::SharePtr &share);
void slotRemoveShareWithId(const QString &shareId); void slotRemoveShareWithId(const QString &shareId);
void slotSharesFetched(const QList<SharePtr> &shares); void slotSharesFetched(const QList<OCC::SharePtr> &shares);
void slotAddSharee(const ShareePtr &sharee); void slotAddSharee(const OCC::ShareePtr &sharee);
void slotRemoveSharee(const ShareePtr &sharee); void slotRemoveSharee(const OCC::ShareePtr &sharee);
void slotSharePermissionsSet(const QString &shareId); void slotSharePermissionsSet(const QString &shareId);
void slotSharePasswordSet(const QString &shareId); void slotSharePasswordSet(const QString &shareId);

View file

@ -33,7 +33,7 @@ signals:
void shareModelChanged(); void shareModelChanged();
public slots: public slots:
void setShareModel(ShareModel *shareModel); void setShareModel(OCC::ShareModel *shareModel);
protected: protected:
[[nodiscard]] bool lessThan(const QModelIndex &sourceLeft, const QModelIndex &sourceRight) const override; [[nodiscard]] bool lessThan(const QModelIndex &sourceLeft, const QModelIndex &sourceRight) const override;

View file

@ -299,10 +299,10 @@ public:
signals: signals:
void syncStateChange(); void syncStateChange();
void syncStarted(); void syncStarted();
void syncFinished(const SyncResult &result); void syncFinished(const OCC::SyncResult &result);
void progressInfo(const ProgressInfo &progress); void progressInfo(const OCC::ProgressInfo &progress);
void newBigFolderDiscovered(const QString &); // A new folder bigger than the threshold was discovered void newBigFolderDiscovered(const QString &); // A new folder bigger than the threshold was discovered
void syncPausedChanged(Folder *, bool paused); void syncPausedChanged(OCC::Folder *, bool paused);
void canSyncChanged(); void canSyncChanged();
/** /**
@ -319,7 +319,7 @@ public slots:
void slotTerminateSync(); void slotTerminateSync();
// connected to the corresponding signals in the SyncEngine // connected to the corresponding signals in the SyncEngine
void slotAboutToRemoveAllFiles(SyncFileItem::Direction, std::function<void(bool)> callback); void slotAboutToRemoveAllFiles(OCC::SyncFileItem::Direction, std::function<void(bool)> callback);
/** /**
* Starts a sync operation * Starts a sync operation
@ -338,7 +338,7 @@ public slots:
* changes. Needs to check whether this change should trigger a new * changes. Needs to check whether this change should trigger a new
* sync run to be scheduled. * sync run to be scheduled.
*/ */
void slotWatchedPathChanged(const QString &path, ChangeReason reason); void slotWatchedPathChanged(const QString &path, OCC::Folder::ChangeReason reason);
/** /**
* Mark a virtual file as being requested for download, and start a sync. * Mark a virtual file as being requested for download, and start a sync.
@ -374,12 +374,12 @@ private slots:
/** Adds a error message that's not tied to a specific item. /** Adds a error message that's not tied to a specific item.
*/ */
void slotSyncError(const QString &message, ErrorCategory category = ErrorCategory::Normal); void slotSyncError(const QString &message, OCC::ErrorCategory category = OCC::ErrorCategory::Normal);
void slotAddErrorToGui(SyncFileItem::Status status, const QString &errorMessage, const QString &subject = {}); void slotAddErrorToGui(OCC::SyncFileItem::Status status, const QString &errorMessage, const QString &subject = {});
void slotTransmissionProgress(const ProgressInfo &pi); void slotTransmissionProgress(const OCC::ProgressInfo &pi);
void slotItemCompleted(const SyncFileItemPtr &); void slotItemCompleted(const OCC::SyncFileItemPtr &);
void slotRunEtagJob(); void slotRunEtagJob();
void etagRetrieved(const QByteArray &, const QDateTime &tp); void etagRetrieved(const QByteArray &, const QDateTime &tp);
@ -404,7 +404,7 @@ private slots:
void slotFolderConflicts(const QString &folder, const QStringList &conflictPaths); void slotFolderConflicts(const QString &folder, const QStringList &conflictPaths);
/** Warn users if they create a file or folder that is selective-sync excluded */ /** Warn users if they create a file or folder that is selective-sync excluded */
void warnOnNewExcludedItem(const SyncJournalFileRecord &record, const QStringRef &path); void warnOnNewExcludedItem(const OCC::SyncJournalFileRecord &record, const QStringRef &path);
/** Warn users about an unreliable folder watcher */ /** Warn users about an unreliable folder watcher */
void slotWatcherUnreliable(const QString &message); void slotWatcherUnreliable(const QString &message);

View file

@ -221,7 +221,7 @@ signals:
* *
* Attention: The folder may be zero. Do a general update of the state then. * Attention: The folder may be zero. Do a general update of the state then.
*/ */
void folderSyncStateChange(Folder *); void folderSyncStateChange(OCC::Folder *);
/** /**
* Indicates when the schedule queue changes. * Indicates when the schedule queue changes.
@ -231,12 +231,12 @@ signals:
/** /**
* Emitted whenever the list of configured folders changes. * Emitted whenever the list of configured folders changes.
*/ */
void folderListChanged(const Folder::Map &); void folderListChanged(const OCC::Folder::Map &);
/** /**
* Emitted once slotRemoveFoldersForAccount is done wiping * Emitted once slotRemoveFoldersForAccount is done wiping
*/ */
void wipeDone(AccountState *account, bool success); void wipeDone(OCC::AccountState *account, bool success);
public slots: public slots:
@ -260,18 +260,18 @@ public slots:
void slotSyncOnceFileUnlocks(const QString &path); void slotSyncOnceFileUnlocks(const QString &path);
// slot to schedule an ETag job (from Folder only) // slot to schedule an ETag job (from Folder only)
void slotScheduleETagJob(const QString &alias, RequestEtagJob *job); void slotScheduleETagJob(const QString &alias, OCC::RequestEtagJob *job);
/** Wipe folder */ /** Wipe folder */
void slotWipeFolderForAccount(AccountState *accountState); void slotWipeFolderForAccount(OCC::AccountState *accountState);
void forceSyncForFolder(Folder *folder); void forceSyncForFolder(OCC::Folder *folder);
private slots: private slots:
void slotFolderSyncPaused(Folder *, bool paused); void slotFolderSyncPaused(OCC::Folder *, bool paused);
void slotFolderCanSyncChanged(); void slotFolderCanSyncChanged();
void slotFolderSyncStarted(); void slotFolderSyncStarted();
void slotFolderSyncFinished(const SyncResult &); void slotFolderSyncFinished(const OCC::SyncResult &);
void slotRunOneEtagJob(); void slotRunOneEtagJob();
void slotEtagJobDestroyed(QObject *); void slotEtagJobDestroyed(QObject *);
@ -280,15 +280,15 @@ private slots:
void slotStartScheduledFolderSync(); void slotStartScheduledFolderSync();
void slotEtagPollTimerTimeout(); void slotEtagPollTimerTimeout();
void slotAccountRemoved(AccountState *accountState); void slotAccountRemoved(OCC::AccountState *accountState);
void slotRemoveFoldersForAccount(AccountState *accountState); void slotRemoveFoldersForAccount(OCC::AccountState *accountState);
// Wraps the Folder::syncStateChange() signal into the // Wraps the Folder::syncStateChange() signal into the
// FolderMan::folderSyncStateChange(Folder*) signal. // FolderMan::folderSyncStateChange(Folder*) signal.
void slotForwardFolderSyncStateChange(); void slotForwardFolderSyncStateChange();
void slotServerVersionChanged(Account *account); void slotServerVersionChanged(OCC::Account *account);
/** /**
* A file whose locks were being monitored has become unlocked. * A file whose locks were being monitored has become unlocked.
@ -306,9 +306,9 @@ private slots:
*/ */
void slotScheduleFolderByTime(); void slotScheduleFolderByTime();
void slotSetupPushNotifications(const Folder::Map &); void slotSetupPushNotifications(const OCC::Folder::Map &);
void slotProcessFilesPushNotification(Account *account); void slotProcessFilesPushNotification(OCC::Account *account);
void slotConnectToPushNotifications(Account *account); void slotConnectToPushNotifications(OCC::Account *account);
private: private:
/** Adds a new folder, does not add it to the account settings and /** Adds a new folder, does not add it to the account settings and

View file

@ -119,19 +119,19 @@ public:
QModelIndex indexForPath(Folder *f, const QString &path) const; QModelIndex indexForPath(Folder *f, const QString &path) const;
public slots: public slots:
void slotUpdateFolderState(Folder *); void slotUpdateFolderState(OCC::Folder *);
void slotApplySelectiveSync(); void slotApplySelectiveSync();
void resetFolders(); void resetFolders();
void slotSyncAllPendingBigFolders(); void slotSyncAllPendingBigFolders();
void slotSyncNoPendingBigFolders(); void slotSyncNoPendingBigFolders();
void slotSetProgress(const ProgressInfo &progress); void slotSetProgress(const OCC::ProgressInfo &progress);
private slots: private slots:
void slotUpdateDirectories(const QStringList &); void slotUpdateDirectories(const QStringList &);
void slotGatherPermissions(const QString &name, const QMap<QString, QString> &properties); void slotGatherPermissions(const QString &name, const QMap<QString, QString> &properties);
void slotGatherEncryptionStatus(const QString &href, const QMap<QString, QString> &properties); void slotGatherEncryptionStatus(const QString &href, const QMap<QString, QString> &properties);
void slotLscolFinishedWithError(QNetworkReply *r); void slotLscolFinishedWithError(QNetworkReply *r);
void slotFolderSyncStateChange(Folder *f); void slotFolderSyncStateChange(OCC::Folder *f);
void slotFolderScheduleQueueChanged(); void slotFolderScheduleQueueChanged();
void slotNewBigFolder(); void slotNewBigFolder();

View file

@ -78,13 +78,13 @@ public slots:
void slotShowTrayUpdateMessage(const QString &title, const QString &msg, const QUrl &webUrl); void slotShowTrayUpdateMessage(const QString &title, const QString &msg, const QUrl &webUrl);
void slotShowOptionalTrayMessage(const QString &title, const QString &msg); void slotShowOptionalTrayMessage(const QString &title, const QString &msg);
void slotFolderOpenAction(const QString &alias); void slotFolderOpenAction(const QString &alias);
void slotUpdateProgress(const QString &folder, const ProgressInfo &progress); void slotUpdateProgress(const QString &folder, const OCC::ProgressInfo &progress);
void slotShowGuiMessage(const QString &title, const QString &message); void slotShowGuiMessage(const QString &title, const QString &message);
void slotFoldersChanged(); void slotFoldersChanged();
void slotShowSettings(); void slotShowSettings();
void slotShowSyncProtocol(); void slotShowSyncProtocol();
void slotShutdown(); void slotShutdown();
void slotSyncStateChange(Folder *); void slotSyncStateChange(OCC::Folder *);
void slotTrayClicked(QSystemTrayIcon::ActivationReason reason); void slotTrayClicked(QSystemTrayIcon::ActivationReason reason);
void slotToggleLogBrowser(); void slotToggleLogBrowser();
void slotOpenOwnCloud(); void slotOpenOwnCloud();
@ -94,7 +94,7 @@ public slots:
void slotHelp(); void slotHelp();
void slotOpenPath(const QString &path); void slotOpenPath(const QString &path);
void slotAccountStateChanged(); void slotAccountStateChanged();
void slotTrayMessageIfServerUnsupported(Account *account); void slotTrayMessageIfServerUnsupported(OCC::Account *account);
/** /**

View file

@ -19,7 +19,7 @@ signals:
/** /**
* Notify if wipe was requested * Notify if wipe was requested
*/ */
void authorized(AccountState*); void authorized(OCC::AccountState*);
/** /**
* Notify if user only needs to login again * Notify if user only needs to login again
@ -44,7 +44,7 @@ private slots:
* Once the client has wiped all the required data a POST to * Once the client has wiped all the required data a POST to
* <server>/index.php/core/wipe/success * <server>/index.php/core/wipe/success
*/ */
void notifyServerSuccessJob(AccountState *accountState, bool); void notifyServerSuccessJob(OCC::AccountState *accountState, bool);
void notifyServerSuccessJobSlot(); void notifyServerSuccessJobSlot();
private: private:
@ -58,4 +58,4 @@ private:
friend class ::TestRemoteWipe; friend class ::TestRemoteWipe;
}; };
} }
#endif // REMOTEWIPE_H #endif // REMOTEWIPE_H

View file

@ -55,7 +55,7 @@ public:
public slots: public slots:
void showFirstPage(); void showFirstPage();
void showIssuesList(AccountState *account); void showIssuesList(OCC::AccountState *account);
void slotSwitchPage(QAction *action); void slotSwitchPage(QAction *action);
void slotAccountAvatarChanged(); void slotAccountAvatarChanged();
void slotAccountDisplayNameChanged(); void slotAccountDisplayNameChanged();
@ -70,8 +70,8 @@ protected:
void changeEvent(QEvent *) override; void changeEvent(QEvent *) override;
private slots: private slots:
void accountAdded(AccountState *); void accountAdded(OCC::AccountState *);
void accountRemoved(AccountState *); void accountRemoved(OCC::AccountState *);
private: private:
void customizeStyle(); void customizeStyle();

View file

@ -147,7 +147,7 @@ public slots:
* On success the permissionsSet signal is emitted * On success the permissionsSet signal is emitted
* In case of a server error the serverError signal is emitted. * In case of a server error the serverError signal is emitted.
*/ */
void setPermissions(Permissions permissions); void setPermissions(OCC::Share::Permissions permissions);
/* /*
* Set the password for remote share * Set the password for remote share
@ -403,9 +403,9 @@ public:
void fetchShares(const QString &path); void fetchShares(const QString &path);
signals: signals:
void shareCreated(const SharePtr &share); void shareCreated(const OCC::SharePtr &share);
void linkShareCreated(const QSharedPointer<LinkShare> &share); void linkShareCreated(const QSharedPointer<OCC::LinkShare> &share);
void sharesFetched(const QList<SharePtr> &shares); void sharesFetched(const QList<OCC::SharePtr> &shares);
void serverError(int code, const QString &message); void serverError(int code, const QString &message);
/** Emitted when creating a link share with password fails. /** Emitted when creating a link share with password fails.

View file

@ -673,7 +673,7 @@ public:
} }
private slots: private slots:
void sharesFetched(const QList<SharePtr> &shares) void sharesFetched(const QList<OCC::SharePtr> &shares)
{ {
auto shareName = SocketApi::tr("Context menu share"); auto shareName = SocketApi::tr("Context menu share");
@ -694,7 +694,7 @@ private slots:
_shareManager.createLinkShare(_localFile, shareName, QString()); _shareManager.createLinkShare(_localFile, shareName, QString());
} }
void linkShareCreated(const QSharedPointer<LinkShare> &share) void linkShareCreated(const QSharedPointer<OCC::LinkShare> &share)
{ {
qCDebug(lcPublicLink) << "New share created"; qCDebug(lcPublicLink) << "New share created";
success(share->getLink().toString()); success(share->getLink().toString());

View file

@ -56,10 +56,10 @@ public:
~SocketApi() override; ~SocketApi() override;
public slots: public slots:
void slotUpdateFolderView(Folder *f); void slotUpdateFolderView(OCC::Folder *f);
void slotUnregisterPath(const QString &alias); void slotUnregisterPath(const QString &alias);
void slotRegisterPath(const QString &alias); void slotRegisterPath(const QString &alias);
void broadcastStatusPushMessage(const QString &systemPath, SyncFileStatus fileStatus); void broadcastStatusPushMessage(const QString &systemPath, OCC::SyncFileStatus fileStatus);
signals: signals:
void shareCommandReceived(const QString &localPath); void shareCommandReceived(const QString &localPath);
@ -104,47 +104,47 @@ private:
void processShareRequest(const QString &localFile, SocketListener *listener); void processShareRequest(const QString &localFile, SocketListener *listener);
void processFileActivityRequest(const QString &localFile); void processFileActivityRequest(const QString &localFile);
Q_INVOKABLE void command_RETRIEVE_FOLDER_STATUS(const QString &argument, SocketListener *listener); Q_INVOKABLE void command_RETRIEVE_FOLDER_STATUS(const QString &argument, OCC::SocketListener *listener);
Q_INVOKABLE void command_RETRIEVE_FILE_STATUS(const QString &argument, SocketListener *listener); Q_INVOKABLE void command_RETRIEVE_FILE_STATUS(const QString &argument, OCC::SocketListener *listener);
Q_INVOKABLE void command_VERSION(const QString &argument, SocketListener *listener); Q_INVOKABLE void command_VERSION(const QString &argument, OCC::SocketListener *listener);
Q_INVOKABLE void command_SHARE_MENU_TITLE(const QString &argument, SocketListener *listener); Q_INVOKABLE void command_SHARE_MENU_TITLE(const QString &argument, OCC::SocketListener *listener);
// The context menu actions // The context menu actions
Q_INVOKABLE void command_ACTIVITY(const QString &localFile, SocketListener *listener); Q_INVOKABLE void command_ACTIVITY(const QString &localFile, OCC::SocketListener *listener);
Q_INVOKABLE void command_SHARE(const QString &localFile, SocketListener *listener); Q_INVOKABLE void command_SHARE(const QString &localFile, OCC::SocketListener *listener);
Q_INVOKABLE void command_MANAGE_PUBLIC_LINKS(const QString &localFile, SocketListener *listener); Q_INVOKABLE void command_MANAGE_PUBLIC_LINKS(const QString &localFile, OCC::SocketListener *listener);
Q_INVOKABLE void command_COPY_PUBLIC_LINK(const QString &localFile, SocketListener *listener); Q_INVOKABLE void command_COPY_PUBLIC_LINK(const QString &localFile, OCC::SocketListener *listener);
Q_INVOKABLE void command_COPY_PRIVATE_LINK(const QString &localFile, SocketListener *listener); Q_INVOKABLE void command_COPY_PRIVATE_LINK(const QString &localFile, OCC::SocketListener *listener);
Q_INVOKABLE void command_EMAIL_PRIVATE_LINK(const QString &localFile, SocketListener *listener); Q_INVOKABLE void command_EMAIL_PRIVATE_LINK(const QString &localFile, OCC::SocketListener *listener);
Q_INVOKABLE void command_OPEN_PRIVATE_LINK(const QString &localFile, SocketListener *listener); Q_INVOKABLE void command_OPEN_PRIVATE_LINK(const QString &localFile, OCC::SocketListener *listener);
Q_INVOKABLE void command_MAKE_AVAILABLE_LOCALLY(const QString &filesArg, SocketListener *listener); Q_INVOKABLE void command_MAKE_AVAILABLE_LOCALLY(const QString &filesArg, OCC::SocketListener *listener);
Q_INVOKABLE void command_MAKE_ONLINE_ONLY(const QString &filesArg, SocketListener *listener); Q_INVOKABLE void command_MAKE_ONLINE_ONLY(const QString &filesArg, OCC::SocketListener *listener);
Q_INVOKABLE void command_RESOLVE_CONFLICT(const QString &localFile, SocketListener *listener); Q_INVOKABLE void command_RESOLVE_CONFLICT(const QString &localFile, OCC::SocketListener *listener);
Q_INVOKABLE void command_DELETE_ITEM(const QString &localFile, SocketListener *listener); Q_INVOKABLE void command_DELETE_ITEM(const QString &localFile, OCC::SocketListener *listener);
Q_INVOKABLE void command_MOVE_ITEM(const QString &localFile, SocketListener *listener); Q_INVOKABLE void command_MOVE_ITEM(const QString &localFile, OCC::SocketListener *listener);
Q_INVOKABLE void command_LOCK_FILE(const QString &localFile, SocketListener *listener); Q_INVOKABLE void command_LOCK_FILE(const QString &localFile, OCC::SocketListener *listener);
Q_INVOKABLE void command_UNLOCK_FILE(const QString &localFile, SocketListener *listener); Q_INVOKABLE void command_UNLOCK_FILE(const QString &localFile, OCC::SocketListener *listener);
void setFileLock(const QString &localFile, const SyncFileItem::LockStatus lockState) const; void setFileLock(const QString &localFile, const SyncFileItem::LockStatus lockState) const;
// Windows Shell / Explorer pinning fallbacks, see issue: https://github.com/nextcloud/desktop/issues/1599 // Windows Shell / Explorer pinning fallbacks, see issue: https://github.com/nextcloud/desktop/issues/1599
#ifdef Q_OS_WIN #ifdef Q_OS_WIN
Q_INVOKABLE void command_COPYASPATH(const QString &localFile, SocketListener *listener); Q_INVOKABLE void command_COPYASPATH(const QString &localFile, OCC::SocketListener *listener);
Q_INVOKABLE void command_OPENNEWWINDOW(const QString &localFile, SocketListener *listener); Q_INVOKABLE void command_OPENNEWWINDOW(const QString &localFile, OCC::SocketListener *listener);
Q_INVOKABLE void command_OPEN(const QString &localFile, SocketListener *listener); Q_INVOKABLE void command_OPEN(const QString &localFile, OCC::SocketListener *listener);
#endif #endif
// External sync // External sync
Q_INVOKABLE void command_V2_LIST_ACCOUNTS(const QSharedPointer<SocketApiJobV2> &job) const; Q_INVOKABLE void command_V2_LIST_ACCOUNTS(const QSharedPointer<OCC::SocketApiJobV2> &job) const;
Q_INVOKABLE void command_V2_UPLOAD_FILES_FROM(const QSharedPointer<SocketApiJobV2> &job) const; Q_INVOKABLE void command_V2_UPLOAD_FILES_FROM(const QSharedPointer<OCC::SocketApiJobV2> &job) const;
// Fetch the private link and call targetFun // Fetch the private link and call targetFun
void fetchPrivateLinkUrlHelper(const QString &localFile, const std::function<void(const QString &url)> &targetFun); void fetchPrivateLinkUrlHelper(const QString &localFile, const std::function<void(const QString &url)> &targetFun);
/** Sends translated/branded strings that may be useful to the integration */ /** Sends translated/branded strings that may be useful to the integration */
Q_INVOKABLE void command_GET_STRINGS(const QString &argument, SocketListener *listener); Q_INVOKABLE void command_GET_STRINGS(const QString &argument, OCC::SocketListener *listener);
// Sends the context menu options relating to sharing to listener // Sends the context menu options relating to sharing to listener
void sendSharingContextMenuOptions(const FileData &fileData, SocketListener *listener, bool enabled); void sendSharingContextMenuOptions(const FileData &fileData, SocketListener *listener, bool enabled);
@ -167,10 +167,10 @@ private:
* If flag contains 'd', the menu should be disabled * If flag contains 'd', the menu should be disabled
* and ends with GET_MENU_ITEMS:END * and ends with GET_MENU_ITEMS:END
*/ */
Q_INVOKABLE void command_GET_MENU_ITEMS(const QString &argument, SocketListener *listener); Q_INVOKABLE void command_GET_MENU_ITEMS(const QString &argument, OCC::SocketListener *listener);
/// Direct Editing /// Direct Editing
Q_INVOKABLE void command_EDIT(const QString &localFile, SocketListener *listener); Q_INVOKABLE void command_EDIT(const QString &localFile, OCC::SocketListener *listener);
DirectEditor* getDirectEditorForLocalFile(const QString &localFile); DirectEditor* getDirectEditorForLocalFile(const QString &localFile);
#if GUI_TESTING #if GUI_TESTING

View file

@ -100,7 +100,7 @@ signals:
void openHelp(); void openHelp();
void shutdown(); void shutdown();
void showFileDetailsPage(const QString &fileLocalPath, const FileDetailsPage page); void showFileDetailsPage(const QString &fileLocalPath, const OCC::Systray::FileDetailsPage page);
void sendChatMessage(const QString &token, const QString &message, const QString &replyTo); void sendChatMessage(const QString &token, const QString &message, const QString &replyTo);
void showErrorMessageDialog(const QString &error); void showErrorMessageDialog(const QString &error);
@ -111,11 +111,11 @@ public slots:
void setTrayEngine(QQmlApplicationEngine *trayEngine); void setTrayEngine(QQmlApplicationEngine *trayEngine);
void create(); void create();
void showMessage(const QString &title, const QString &message, MessageIcon icon = Information); void showMessage(const QString &title, const QString &message, QSystemTrayIcon::MessageIcon icon = Information);
void showUpdateMessage(const QString &title, const QString &message, const QUrl &webUrl); void showUpdateMessage(const QString &title, const QString &message, const QUrl &webUrl);
void setToolTip(const QString &tip); void setToolTip(const QString &tip);
void createCallDialog(const Activity &callNotification, const AccountStatePtr accountState); void createCallDialog(const OCC::Activity &callNotification, const OCC::AccountStatePtr accountState);
void createEditFileLocallyLoadingDialog(const QString &fileName); void createEditFileLocallyLoadingDialog(const QString &fileName);
void destroyEditFileLocallyLoadingDialog(); void destroyEditFileLocallyLoadingDialog();
@ -130,7 +130,7 @@ public slots:
// only for those managed by the C++ engine // only for those managed by the C++ engine
void destroyDialog(QQuickWindow *window) const; void destroyDialog(QQuickWindow *window) const;
void showWindow(WindowPosition position = WindowPosition::Default); void showWindow(OCC::Systray::WindowPosition position = OCC::Systray::WindowPosition::Default);
void hideWindow(); void hideWindow();
void setSyncIsPaused(const bool syncIsPaused); void setSyncIsPaused(const bool syncIsPaused);

View file

@ -110,14 +110,14 @@ public slots:
void slotTriggerAction(const int activityIndex, const int actionIndex); void slotTriggerAction(const int activityIndex, const int actionIndex);
void slotTriggerDismiss(const int activityIndex); void slotTriggerDismiss(const int activityIndex);
void addNotificationToActivityList(const Activity &activity); void addNotificationToActivityList(const OCC::Activity &activity);
void addErrorToActivityList(const Activity &activity); void addErrorToActivityList(const OCC::Activity &activity);
void addIgnoredFileToList(const Activity &newActivity); void addIgnoredFileToList(const OCC::Activity &newActivity);
void addSyncFileItemToActivityList(const Activity &activity); void addSyncFileItemToActivityList(const OCC::Activity &activity);
void removeActivityFromActivityList(int row); void removeActivityFromActivityList(int row);
void removeActivityFromActivityList(const Activity &activity); void removeActivityFromActivityList(const OCC::Activity &activity);
void setAccountState(AccountState *state); void setAccountState(OCC::AccountState *state);
void setReplyMessageSent(const int activityIndex, const QString &message); void setReplyMessageSent(const int activityIndex, const QString &message);
void setCurrentItem(const int currentItem); void setCurrentItem(const int currentItem);
@ -140,12 +140,12 @@ protected slots:
void setDoneFetching(bool value); void setDoneFetching(bool value);
void setHideOldActivities(bool value); void setHideOldActivities(bool value);
void setDisplayActions(bool value); void setDisplayActions(bool value);
void setFinalList(const ActivityList &finalList); // added for unit tests void setFinalList(const OCC::ActivityList &finalList); // added for unit tests
virtual void startFetchJob(); virtual void startFetchJob();
private slots: private slots:
void addEntriesToActivityList(const ActivityList &activityList); void addEntriesToActivityList(const OCC::ActivityList &activityList);
private: private:
static QVariantList convertLinksToMenuEntries(const Activity &activity); static QVariantList convertLinksToMenuEntries(const Activity &activity);

View file

@ -16,8 +16,8 @@ public:
explicit ServerNotificationHandler(AccountState *accountState, QObject *parent = nullptr); explicit ServerNotificationHandler(AccountState *accountState, QObject *parent = nullptr);
signals: signals:
void newNotificationList(ActivityList); void newNotificationList(OCC::ActivityList);
void newIncomingCallsList(ActivityList); void newIncomingCallsList(OCC::ActivityList);
public slots: public slots:
void slotFetchNotifications(); void slotFetchNotifications();

View file

@ -34,7 +34,7 @@ signals:
void activityListModelChanged(); void activityListModelChanged();
public slots: public slots:
void setActivityListModel(ActivityListModel *activityListModel); void setActivityListModel(OCC::ActivityListModel *activityListModel);
protected: protected:
[[nodiscard]] bool lessThan(const QModelIndex &sourceLeft, const QModelIndex &sourceRight) const override; [[nodiscard]] bool lessThan(const QModelIndex &sourceLeft, const QModelIndex &sourceRight) const override;

View file

@ -88,17 +88,17 @@ signals:
void sendReplyMessage(const int activityIndex, const QString &conversationToken, const QString &message, const QString &replyTo); void sendReplyMessage(const int activityIndex, const QString &conversationToken, const QString &message, const QString &replyTo);
public slots: public slots:
void slotItemCompleted(const QString &folder, const SyncFileItemPtr &item); void slotItemCompleted(const QString &folder, const OCC::SyncFileItemPtr &item);
void slotProgressInfo(const QString &folder, const ProgressInfo &progress); void slotProgressInfo(const QString &folder, const OCC::ProgressInfo &progress);
void slotAddError(const QString &folderAlias, const QString &message, ErrorCategory category); void slotAddError(const QString &folderAlias, const QString &message, OCC::ErrorCategory category);
void slotAddErrorToGui(const QString &folderAlias, SyncFileItem::Status status, const QString &errorMessage, const QString &subject = {}); void slotAddErrorToGui(const QString &folderAlias, OCC::SyncFileItem::Status status, const QString &errorMessage, const QString &subject = {});
void slotNotificationRequestFinished(int statusCode); void slotNotificationRequestFinished(int statusCode);
void slotNotifyNetworkError(QNetworkReply *reply); void slotNotifyNetworkError(QNetworkReply *reply);
void slotEndNotificationRequest(int replyCode); void slotEndNotificationRequest(int replyCode);
void slotNotifyServerFinished(const QString &reply, int replyCode); void slotNotifyServerFinished(const QString &reply, int replyCode);
void slotSendNotificationRequest(const QString &accountName, const QString &link, const QByteArray &verb, int row); void slotSendNotificationRequest(const QString &accountName, const QString &link, const QByteArray &verb, int row);
void slotBuildNotificationDisplay(const ActivityList &list); void slotBuildNotificationDisplay(const OCC::ActivityList &list);
void slotBuildIncomingCallDialogs(const ActivityList &list); void slotBuildIncomingCallDialogs(const OCC::ActivityList &list);
void slotRefreshNotifications(); void slotRefreshNotifications();
void slotRefreshActivitiesInitial(); void slotRefreshActivitiesInitial();
void slotRefreshActivities(); void slotRefreshActivities();

View file

@ -91,7 +91,7 @@ private Q_SLOTS:
Q_SIGNALS: Q_SIGNALS:
void quotaUpdated(qint64 total, qint64 used); void quotaUpdated(qint64 total, qint64 used);
void fetchedLastInfo(UserInfo *userInfo); void fetchedLastInfo(OCC::UserInfo *userInfo);
private: private:
[[nodiscard]] bool canGetInfo() const; [[nodiscard]] bool canGetInfo() const;

View file

@ -93,7 +93,7 @@ public:
Q_REQUIRED_RESULT QVariantList clearStageTypes() const; Q_REQUIRED_RESULT QVariantList clearStageTypes() const;
Q_REQUIRED_RESULT QString clearAtDisplayString() const; Q_REQUIRED_RESULT QString clearAtDisplayString() const;
Q_INVOKABLE [[nodiscard]] QString clearAtReadable(const UserStatus &status) const; Q_INVOKABLE [[nodiscard]] QString clearAtReadable(const OCC::UserStatus &status) const;
Q_REQUIRED_RESULT QString errorMessage() const; Q_REQUIRED_RESULT QString errorMessage() const;
@ -101,8 +101,8 @@ public slots:
void setUserIndex(const int userIndex); void setUserIndex(const int userIndex);
void setUserStatus(); void setUserStatus();
void clearUserStatus(); void clearUserStatus();
void setClearAt(const ClearStageType clearStageType); void setClearAt(const OCC::UserStatusSelectorModel::ClearStageType clearStageType);
void setPredefinedStatus(const UserStatus &predefinedStatus); void setPredefinedStatus(const OCC::UserStatus &predefinedStatus);
signals: signals:
void userIndexChanged(); void userIndexChanged();

View file

@ -90,9 +90,9 @@ public:
QList<QSslCertificate> _clientSslCaCertificates; QList<QSslCertificate> _clientSslCaCertificates;
public slots: public slots:
void setAuthType(DetermineAuthTypeJob::AuthType type); void setAuthType(OCC::DetermineAuthTypeJob::AuthType type);
void setRemoteFolder(const QString &); void setRemoteFolder(const QString &);
void appendToConfigurationLog(const QString &msg, LogType type = LogParagraph); void appendToConfigurationLog(const QString &msg, OCC::OwncloudWizard::LogType type = LogParagraph);
void slotCurrentPageChanged(int); void slotCurrentPageChanged(int);
void successfulStep(); void successfulStep();
void slotCustomButtonClicked(const int which); void slotCustomButtonClicked(const int which);

View file

@ -316,16 +316,16 @@ signals:
/// Triggered by handleInvalidCredentials() /// Triggered by handleInvalidCredentials()
void invalidCredentials(); void invalidCredentials();
void credentialsFetched(AbstractCredentials *credentials); void credentialsFetched(OCC::AbstractCredentials *credentials);
void credentialsAsked(AbstractCredentials *credentials); void credentialsAsked(OCC::AbstractCredentials *credentials);
/// Forwards from QNetworkAccessManager::proxyAuthenticationRequired(). /// Forwards from QNetworkAccessManager::proxyAuthenticationRequired().
void proxyAuthenticationRequired(const QNetworkProxy &, QAuthenticator *); void proxyAuthenticationRequired(const QNetworkProxy &, QAuthenticator *);
// e.g. when the approved SSL certificates changed // e.g. when the approved SSL certificates changed
void wantsAccountSaved(Account *acc); void wantsAccountSaved(OCC::Account *acc);
void serverVersionChanged(Account *account, const QString &newVersion, const QString &oldVersion); void serverVersionChanged(OCC::Account *account, const QString &newVersion, const QString &oldVersion);
void accountChangedAvatar(); void accountChangedAvatar();
void accountChangedDisplayName(); void accountChangedDisplayName();
@ -334,8 +334,8 @@ signals:
/// Used in RemoteWipe /// Used in RemoteWipe
void appPasswordRetrieved(QString); void appPasswordRetrieved(QString);
void pushNotificationsReady(Account *account); void pushNotificationsReady(OCC::Account *account);
void pushNotificationsDisabled(Account *account); void pushNotificationsDisabled(OCC::Account *account);
void userStatusChanged(); void userStatusChanged();

View file

@ -44,10 +44,10 @@ public:
public slots: public slots:
void registerUploadDevice(UploadDevice *); void registerUploadDevice(OCC::UploadDevice *);
void unregisterUploadDevice(QObject *); void unregisterUploadDevice(QObject *);
void registerDownloadJob(GETFileJob *); void registerDownloadJob(OCC::GETFileJob *);
void unregisterDownloadJob(QObject *); void unregisterDownloadJob(QObject *);
void absoluteLimitTimerExpired(); void absoluteLimitTimerExpired();

View file

@ -67,26 +67,26 @@ public:
JobParallelism parallelism() override; JobParallelism parallelism() override;
private slots: private slots:
void startUploadFile(SyncFileItemPtr item, UploadFileInfo fileToUpload); void startUploadFile(OCC::SyncFileItemPtr item, OCC::BulkPropagatorJob::UploadFileInfo fileToUpload);
// Content checksum computed, compute the transmission checksum // Content checksum computed, compute the transmission checksum
void slotComputeTransmissionChecksum(SyncFileItemPtr item, void slotComputeTransmissionChecksum(OCC::SyncFileItemPtr item,
UploadFileInfo fileToUpload); OCC::BulkPropagatorJob::UploadFileInfo fileToUpload);
// transmission checksum computed, prepare the upload // transmission checksum computed, prepare the upload
void slotStartUpload(SyncFileItemPtr item, void slotStartUpload(OCC::SyncFileItemPtr item,
UploadFileInfo fileToUpload, OCC::BulkPropagatorJob::UploadFileInfo fileToUpload,
const QByteArray &transmissionChecksumType, const QByteArray &transmissionChecksumType,
const QByteArray &transmissionChecksum); const QByteArray &transmissionChecksum);
// invoked on internal error to unlock a folder and faile // invoked on internal error to unlock a folder and faile
void slotOnErrorStartFolderUnlock(SyncFileItemPtr item, void slotOnErrorStartFolderUnlock(OCC::SyncFileItemPtr item,
SyncFileItem::Status status, OCC::SyncFileItem::Status status,
const QString &errorString); const QString &errorString);
void slotPutFinished(); void slotPutFinished();
void slotUploadProgress(SyncFileItemPtr item, qint64 sent, qint64 total); void slotUploadProgress(OCC::SyncFileItemPtr item, qint64 sent, qint64 total);
void slotJobDestroyed(QObject *job); void slotJobDestroyed(QObject *job);

View file

@ -260,7 +260,7 @@ void DiscoveryPhase::scheduleMoreJobs()
DiscoverySingleLocalDirectoryJob::DiscoverySingleLocalDirectoryJob(const AccountPtr &account, const QString &localPath, OCC::Vfs *vfs, QObject *parent) DiscoverySingleLocalDirectoryJob::DiscoverySingleLocalDirectoryJob(const AccountPtr &account, const QString &localPath, OCC::Vfs *vfs, QObject *parent)
: QObject(parent), QRunnable(), _localPath(localPath), _account(account), _vfs(vfs) : QObject(parent), QRunnable(), _localPath(localPath), _account(account), _vfs(vfs)
{ {
qRegisterMetaType<QVector<LocalInfo> >("QVector<LocalInfo>"); qRegisterMetaType<QVector<OCC::LocalInfo> >("QVector<OCC::LocalInfo>");
} }
// Use as QRunnable // Use as QRunnable

View file

@ -102,11 +102,11 @@ public:
void run() override; void run() override;
signals: signals:
void finished(QVector<LocalInfo> result); void finished(QVector<OCC::LocalInfo> result);
void finishedFatalError(QString errorString); void finishedFatalError(QString errorString);
void finishedNonFatalError(QString errorString); void finishedNonFatalError(QString errorString);
void itemDiscovered(SyncFileItemPtr item); void itemDiscovered(OCC::SyncFileItemPtr item);
void childIgnored(bool b); void childIgnored(bool b);
private slots: private slots:
private: private:
@ -134,9 +134,9 @@ public:
// This is not actually a network job, it is just a job // This is not actually a network job, it is just a job
signals: signals:
void firstDirectoryPermissions(RemotePermissions); void firstDirectoryPermissions(OCC::RemotePermissions);
void etag(const QByteArray &, const QDateTime &time); void etag(const QByteArray &, const QDateTime &time);
void finished(const HttpResult<QVector<RemoteInfo>> &result); void finished(const OCC::HttpResult<QVector<OCC::RemoteInfo>> &result);
private slots: private slots:
void directoryListingIteratedSlot(const QString &, const QMap<QString, QString> &); void directoryListingIteratedSlot(const QString &, const QMap<QString, QString> &);
@ -286,7 +286,7 @@ public:
signals: signals:
void fatalError(const QString &errorString); void fatalError(const QString &errorString);
void itemDiscovered(const SyncFileItemPtr &item); void itemDiscovered(const OCC::SyncFileItemPtr &item);
void finished(); void finished();
// A new folder was discovered and was not synced because of the confirmation feature // A new folder was discovered and was not synced because of the confirmation feature

View file

@ -73,7 +73,7 @@ public slots:
* Success and failure of sync items adjust what the next sync is * Success and failure of sync items adjust what the next sync is
* supposed to do. * supposed to do.
*/ */
void slotItemCompleted(const SyncFileItemPtr &item); void slotItemCompleted(const OCC::SyncFileItemPtr &item);
/** /**
* When a sync finishes, the lists must be updated * When a sync finishes, the lists must be updated

View file

@ -502,7 +502,7 @@ public:
explicit DetermineAuthTypeJob(AccountPtr account, QObject *parent = nullptr); explicit DetermineAuthTypeJob(AccountPtr account, QObject *parent = nullptr);
void start(); void start();
signals: signals:
void authType(AuthType); void authType(OCC::DetermineAuthTypeJob::AuthType);
private: private:
void checkAllDone(); void checkAllDone();

View file

@ -283,7 +283,7 @@ public:
private slots: private slots:
void slotSubJobAbortFinished(); void slotSubJobAbortFinished();
bool possiblyRunNextJob(PropagatorJob *next) bool possiblyRunNextJob(OCC::PropagatorJob *next)
{ {
if (next->_state == NotYetStarted) { if (next->_state == NotYetStarted) {
connect(next, &PropagatorJob::finished, this, &PropagatorCompositeJob::slotSubJobFinished); connect(next, &PropagatorJob::finished, this, &PropagatorCompositeJob::slotSubJobFinished);
@ -291,7 +291,7 @@ private slots:
return next->scheduleSelfOrChild(); return next->scheduleSelfOrChild();
} }
void slotSubJobFinished(SyncFileItem::Status status); void slotSubJobFinished(OCC::SyncFileItem::Status status);
void finalize(); void finalize();
}; };
@ -349,8 +349,8 @@ public:
private slots: private slots:
void slotFirstJobFinished(SyncFileItem::Status status); void slotFirstJobFinished(OCC::SyncFileItem::Status status);
virtual void slotSubJobsFinished(SyncFileItem::Status status); virtual void slotSubJobsFinished(OCC::SyncFileItem::Status status);
}; };
@ -374,11 +374,11 @@ public:
[[nodiscard]] qint64 committedDiskSpace() const override; [[nodiscard]] qint64 committedDiskSpace() const override;
public slots: public slots:
void appendDirDeletionJob(PropagatorJob *job); void appendDirDeletionJob(OCC::PropagatorJob *job);
private slots: private slots:
void slotSubJobsFinished(SyncFileItem::Status status) override; void slotSubJobsFinished(OCC::SyncFileItem::Status status) override;
void slotDirDeletionJobsFinished(SyncFileItem::Status status); void slotDirDeletionJobsFinished(OCC::SyncFileItem::Status status);
private: private:
@ -636,7 +636,7 @@ private slots:
} }
/** Emit the finished signal and make sure it is only emitted once */ /** Emit the finished signal and make sure it is only emitted once */
void emitFinished(SyncFileItem::Status status) void emitFinished(OCC::SyncFileItem::Status status)
{ {
if (!_finishedEmited) if (!_finishedEmited)
emit finished(status == SyncFileItem::Success); emit finished(status == SyncFileItem::Success);
@ -647,9 +647,9 @@ private slots:
void scheduleNextJobImpl(); void scheduleNextJobImpl();
signals: signals:
void newItem(const SyncFileItemPtr &); void newItem(const OCC::SyncFileItemPtr &);
void itemCompleted(const SyncFileItemPtr &); void itemCompleted(const OCC::SyncFileItemPtr &);
void progress(const SyncFileItem &, qint64 bytes); void progress(const OCC::SyncFileItem &, qint64 bytes);
void finished(bool success); void finished(bool success);
/** Emitted when propagation has problems with a locked file. */ /** Emitted when propagation has problems with a locked file. */

View file

@ -279,16 +279,16 @@ signals:
@param[out] progress A struct with all progress info. @param[out] progress A struct with all progress info.
*/ */
void progressInfo(const QString &folder, const ProgressInfo &progress); void progressInfo(const QString &folder, const OCC::ProgressInfo &progress);
/** /**
* @brief: the item was completed by a job * @brief: the item was completed by a job
*/ */
void itemCompleted(const QString &folder, const SyncFileItemPtr &item); void itemCompleted(const QString &folder, const OCC::SyncFileItemPtr &item);
/** /**
* @brief A new folder-wide sync error was seen. * @brief A new folder-wide sync error was seen.
*/ */
void syncError(const QString &folder, const QString &message, ErrorCategory category); void syncError(const QString &folder, const QString &message, OCC::ErrorCategory category);
/** /**
* @brief Emitted when an error needs to be added into GUI * @brief Emitted when an error needs to be added into GUI
@ -297,7 +297,7 @@ signals:
* @param[out] full error message * @param[out] full error message
* @param[out] subject (optional) * @param[out] subject (optional)
*/ */
void addErrorToGui(const QString &folder, SyncFileItem::Status status, const QString &errorMessage, const QString &subject); void addErrorToGui(const QString &folder, OCC::SyncFileItem::Status status, const QString &errorMessage, const QString &subject);
/** /**
* @brief Emitted for a folder when a sync is done, listing all pending conflicts * @brief Emitted for a folder when a sync is done, listing all pending conflicts

View file

@ -362,7 +362,7 @@ public:
void doStartUpload() override; void doStartUpload() override;
public slots: public slots:
void abort(PropagatorJob::AbortType abortType) override; void abort(OCC::PropagatorJob::AbortType abortType) override;
private slots: private slots:
void startNextChunk(); void startNextChunk();
void slotPutFinished(); void slotPutFinished();
@ -412,7 +412,7 @@ private:
void startNewUpload(); void startNewUpload();
void startNextChunk(); void startNextChunk();
public slots: public slots:
void abort(AbortType abortType) override; void abort(OCC::PropagateUploadFileNG::AbortType abortType) override;
private slots: private slots:
void slotPropfindFinished(); void slotPropfindFinished();
void slotPropfindFinishedWithError(); void slotPropfindFinishedWithError();

View file

@ -72,17 +72,17 @@ signals:
/** /**
* Will be emitted if files on the server changed * Will be emitted if files on the server changed
*/ */
void filesChanged(Account *account); void filesChanged(OCC::Account *account);
/** /**
* Will be emitted if activities have been changed on the server * Will be emitted if activities have been changed on the server
*/ */
void activitiesChanged(Account *account); void activitiesChanged(OCC::Account *account);
/** /**
* Will be emitted if notifications have been changed on the server * Will be emitted if notifications have been changed on the server
*/ */
void notificationsChanged(Account *account); void notificationsChanged(OCC::Account *account);
/** /**
* Will be emitted if push notifications are unable to authenticate * Will be emitted if push notifications are unable to authenticate

View file

@ -127,7 +127,7 @@ public slots:
void abort(); void abort();
void setNetworkLimits(int upload, int download); void setNetworkLimits(int upload, int download);
void setSyncOptions(const SyncOptions &options) { _syncOptions = options; } void setSyncOptions(const OCC::SyncOptions &options) { _syncOptions = options; }
void setIgnoreHiddenFiles(bool ignore) { _ignore_hidden_files = ignore; } void setIgnoreHiddenFiles(bool ignore) { _ignore_hidden_files = ignore; }
/** /**
@ -141,7 +141,7 @@ public slots:
* revert afterwards. Use _lastLocalDiscoveryStyle to discover the last * revert afterwards. Use _lastLocalDiscoveryStyle to discover the last
* sync's style. * sync's style.
*/ */
void setLocalDiscoveryOptions(LocalDiscoveryStyle style, std::set<QString> paths = {}); void setLocalDiscoveryOptions(OCC::LocalDiscoveryStyle style, std::set<QString> paths = {});
void addAcceptedInvalidFileName(const QString& filePath); void addAcceptedInvalidFileName(const QString& filePath);
@ -150,17 +150,17 @@ signals:
void rootEtag(const QByteArray &, const QDateTime &); void rootEtag(const QByteArray &, const QDateTime &);
// after the above signals. with the items that actually need propagating // after the above signals. with the items that actually need propagating
void aboutToPropagate(SyncFileItemVector &); void aboutToPropagate(OCC::SyncFileItemVector &);
// after each item completed by a job (successful or not) // after each item completed by a job (successful or not)
void itemCompleted(const SyncFileItemPtr &); void itemCompleted(const OCC::SyncFileItemPtr &);
void transmissionProgress(const ProgressInfo &progress); void transmissionProgress(const OCC::ProgressInfo &progress);
/// We've produced a new sync error of a type. /// We've produced a new sync error of a type.
void syncError(const QString &message, ErrorCategory category = ErrorCategory::Normal); void syncError(const QString &message, OCC::ErrorCategory category = OCC::ErrorCategory::Normal);
void addErrorToGui(SyncFileItem::Status status, const QString &errorMessage, const QString &subject); void addErrorToGui(OCC::SyncFileItem::Status status, const QString &errorMessage, const QString &subject);
void finished(bool success); void finished(bool success);
void started(); void started();
@ -170,7 +170,7 @@ signals:
* This usually happen when the server was reset or something. * This usually happen when the server was reset or something.
* Set *cancel to true in a slot connected from this signal to abort the sync. * Set *cancel to true in a slot connected from this signal to abort the sync.
*/ */
void aboutToRemoveAllFiles(SyncFileItem::Direction direction, std::function<void(bool)> f); void aboutToRemoveAllFiles(OCC::SyncFileItem::Direction direction, std::function<void(bool)> f);
// A new folder was discovered and was not synced because of the confirmation feature // A new folder was discovered and was not synced because of the confirmation feature
void newBigFolder(const QString &folder, bool isExternal); void newBigFolder(const QString &folder, bool isExternal);
@ -186,7 +186,7 @@ private slots:
void slotRootEtagReceived(const QByteArray &, const QDateTime &time); void slotRootEtagReceived(const QByteArray &, const QDateTime &time);
/** When the discovery phase discovers an item */ /** When the discovery phase discovers an item */
void slotItemDiscovered(const SyncFileItemPtr &item); void slotItemDiscovered(const OCC::SyncFileItemPtr &item);
/** Called when a SyncFileItem gets accepted for a sync. /** Called when a SyncFileItem gets accepted for a sync.
* *
@ -194,12 +194,12 @@ private slots:
* can also be called via the propagator for items that are * can also be called via the propagator for items that are
* created during propagation. * created during propagation.
*/ */
void slotNewItem(const SyncFileItemPtr &item); void slotNewItem(const OCC::SyncFileItemPtr &item);
void slotItemCompleted(const SyncFileItemPtr &item); void slotItemCompleted(const OCC::SyncFileItemPtr &item);
void slotDiscoveryFinished(); void slotDiscoveryFinished();
void slotPropagationFinished(bool success); void slotPropagationFinished(bool success);
void slotProgress(const SyncFileItem &item, qint64 curent); void slotProgress(const OCC::SyncFileItem &item, qint64 curent);
void slotCleanPollsJobAborted(const QString &error); void slotCleanPollsJobAborted(const QString &error);
/** Records that a file was touched by a job. */ /** Records that a file was touched by a job. */

View file

@ -44,11 +44,11 @@ public slots:
void slotAddSilentlyExcluded(const QString &folderPath); void slotAddSilentlyExcluded(const QString &folderPath);
signals: signals:
void fileStatusChanged(const QString &systemFileName, SyncFileStatus fileStatus); void fileStatusChanged(const QString &systemFileName, OCC::SyncFileStatus fileStatus);
private slots: private slots:
void slotAboutToPropagate(SyncFileItemVector &items); void slotAboutToPropagate(OCC::SyncFileItemVector &items);
void slotItemCompleted(const SyncFileItemPtr &item); void slotItemCompleted(const OCC::SyncFileItemPtr &item);
void slotSyncFinished(); void slotSyncFinished();
void slotSyncEngineRunningChanged(); void slotSyncEngineRunningChanged();

View file

@ -128,12 +128,12 @@ public:
[[nodiscard]] virtual UserStatus userStatus() const = 0; [[nodiscard]] virtual UserStatus userStatus() const = 0;
signals: signals:
void userStatusFetched(const UserStatus &userStatus); void userStatusFetched(const OCC::UserStatus &userStatus);
void predefinedStatusesFetched(const QVector<UserStatus> &statuses); void predefinedStatusesFetched(const QVector<OCC::UserStatus> &statuses);
void userStatusSet(); void userStatusSet();
void serverUserStatusChanged(); void serverUserStatusChanged();
void messageCleared(); void messageCleared();
void error(Error error); void error(OCC::UserStatusConnector::Error error);
}; };
} }

View file

@ -61,7 +61,7 @@ public:
public slots: public slots:
void requestHydration(const QString &requestId, const QString &path); void requestHydration(const QString &requestId, const QString &path);
void fileStatusChanged(const QString &systemFileName, SyncFileStatus fileStatus) override; void fileStatusChanged(const QString &systemFileName, OCC::SyncFileStatus fileStatus) override;
signals: signals:
void hydrationRequestReady(const QString &requestId); void hydrationRequestReady(const QString &requestId);

View file

@ -55,7 +55,7 @@ public:
AvailabilityResult availability(const QString &folderPath) override; AvailabilityResult availability(const QString &folderPath) override;
public slots: public slots:
void fileStatusChanged(const QString &, SyncFileStatus) override {} void fileStatusChanged(const QString &, OCC::SyncFileStatus) override {}
protected: protected:
void startImpl(const VfsSetupParams &params) override; void startImpl(const VfsSetupParams &params) override;

View file

@ -53,7 +53,7 @@ public:
AvailabilityResult availability(const QString &folderPath) override; AvailabilityResult availability(const QString &folderPath) override;
public slots: public slots:
void fileStatusChanged(const QString &systemFileName, SyncFileStatus fileStatus) override; void fileStatusChanged(const QString &systemFileName, OCC::SyncFileStatus fileStatus) override;
protected: protected:
void startImpl(const VfsSetupParams &params) override; void startImpl(const VfsSetupParams &params) override;

View file

@ -1152,13 +1152,13 @@ void FakeFolder::scheduleSync()
void FakeFolder::execUntilBeforePropagation() void FakeFolder::execUntilBeforePropagation()
{ {
QSignalSpy spy(_syncEngine.get(), SIGNAL(aboutToPropagate(SyncFileItemVector &))); QSignalSpy spy(_syncEngine.get(), &OCC::SyncEngine::aboutToPropagate);
QVERIFY(spy.wait()); QVERIFY(spy.wait());
} }
void FakeFolder::execUntilItemCompleted(const QString &relativePath) void FakeFolder::execUntilItemCompleted(const QString &relativePath)
{ {
QSignalSpy spy(_syncEngine.get(), SIGNAL(itemCompleted(const SyncFileItemPtr &))); QSignalSpy spy(_syncEngine.get(), &OCC::SyncEngine::itemCompleted);
QElapsedTimer t; QElapsedTimer t;
t.start(); t.start();
while (t.elapsed() < 5000) { while (t.elapsed() < 5000) {

View file

@ -336,7 +336,7 @@ private slots:
QCOMPARE(fakeFolder.currentLocalState(), fakeFolder.currentRemoteState()); QCOMPARE(fakeFolder.currentLocalState(), fakeFolder.currentRemoteState());
} }
static void setAllPerm(FileInfo *fi, RemotePermissions perm) static void setAllPerm(FileInfo *fi, OCC::RemotePermissions perm)
{ {
fi->permissions = perm; fi->permissions = perm;
for (auto &subFi : fi->children) for (auto &subFi : fi->children)

View file

@ -21,7 +21,7 @@ private slots:
void cleanupTestCase() { void cleanupTestCase() {
} }
SyncFileItem createItem( const QString& file ) { OCC::SyncFileItem createItem( const QString& file ) {
SyncFileItem i; SyncFileItem i;
i._file = file; i._file = file;
return i; return i;