fully qualify types in signals and slots

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
This commit is contained in:
Matthieu Gallien 2022-10-24 16:00:50 +02:00
parent 401a7778bb
commit 61c792c6f4
No known key found for this signature in database
GPG Key ID: 7D0F74F05C22F553
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
* on the same data.
*/
virtual void fileStatusChanged(const QString &systemFileName, SyncFileStatus fileStatus) = 0;
virtual void fileStatusChanged(const QString &systemFileName, OCC::SyncFileStatus fileStatus) = 0;
signals:
/// Emitted when a user-initiated hydration starts
@ -320,7 +320,7 @@ public:
AvailabilityResult availability(const QString &) override { return VfsItemAvailability::AlwaysLocal; }
public slots:
void fileStatusChanged(const QString &, SyncFileStatus) override {}
void fileStatusChanged(const QString &, OCC::SyncFileStatus) override {}
protected:
void startImpl(const VfsSetupParams &) override {}

View File

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

View File

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

View File

@ -193,21 +193,21 @@ private:
void resetRetryCount();
signals:
void stateChanged(State state);
void stateChanged(OCC::AccountState::State state);
void isConnectedChanged();
void hasFetchedNavigationApps();
void statusChanged();
void desktopNotificationsAllowedChanged();
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
/// before asking for user credentials again
void slotHandleRemoteWipeCheck();
void slotCredentialsFetched(AbstractCredentials *creds);
void slotCredentialsAsked(AbstractCredentials *creds);
void slotCredentialsFetched(OCC::AbstractCredentials *creds);
void slotCredentialsAsked(OCC::AbstractCredentials *creds);
void slotNavigationAppsFetched(const QJsonDocument &reply, int statusCode);
void slotEtagResponseHeaderReceived(const QByteArray &value, int statusCode);

View File

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

View File

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

View File

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

View File

@ -58,10 +58,10 @@ signals:
* The state has changed.
* 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());
void statusChanged(const PollStatus status, int secondsLeft);
void statusChanged(const OCC::Flow2Auth::PollStatus status, int secondsLeft);
public slots:
void slotPollNow();

View File

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

View File

@ -113,43 +113,43 @@ signals:
void serverError(const int code, const QString &message);
void passwordSetError(const QString &shareId, const int code, const QString &message);
void requestPasswordForLinkShare();
void requestPasswordForEmailSharee(const ShareePtr &sharee);
void requestPasswordForEmailSharee(const OCC::ShareePtr &sharee);
void sharesChanged();
public slots:
void setAccountState(AccountState *accountState);
void setAccountState(OCC::AccountState *accountState);
void setLocalPath(const QString &localPath);
void createNewLinkShare() const;
void createNewLinkShareWithPassword(const QString &password) const;
void createNewUserGroupShare(const ShareePtr &sharee);
void createNewUserGroupShare(const OCC::ShareePtr &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 deleteShare(const SharePtr &share) const;
void deleteShare(const OCC::SharePtr &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 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 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 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 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 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 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
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 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;
private slots:
@ -160,11 +160,11 @@ private slots:
void slotPropfindReceived(const QVariantMap &result);
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 slotSharesFetched(const QList<SharePtr> &shares);
void slotAddSharee(const ShareePtr &sharee);
void slotRemoveSharee(const ShareePtr &sharee);
void slotSharesFetched(const QList<OCC::SharePtr> &shares);
void slotAddSharee(const OCC::ShareePtr &sharee);
void slotRemoveSharee(const OCC::ShareePtr &sharee);
void slotSharePermissionsSet(const QString &shareId);
void slotSharePasswordSet(const QString &shareId);

View File

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

View File

@ -299,10 +299,10 @@ public:
signals:
void syncStateChange();
void syncStarted();
void syncFinished(const SyncResult &result);
void progressInfo(const ProgressInfo &progress);
void syncFinished(const OCC::SyncResult &result);
void progressInfo(const OCC::ProgressInfo &progress);
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();
/**
@ -319,7 +319,7 @@ public slots:
void slotTerminateSync();
// 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
@ -338,7 +338,7 @@ public slots:
* changes. Needs to check whether this change should trigger a new
* 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.
@ -374,12 +374,12 @@ private slots:
/** 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 slotItemCompleted(const SyncFileItemPtr &);
void slotTransmissionProgress(const OCC::ProgressInfo &pi);
void slotItemCompleted(const OCC::SyncFileItemPtr &);
void slotRunEtagJob();
void etagRetrieved(const QByteArray &, const QDateTime &tp);
@ -404,7 +404,7 @@ private slots:
void slotFolderConflicts(const QString &folder, const QStringList &conflictPaths);
/** 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 */
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.
*/
void folderSyncStateChange(Folder *);
void folderSyncStateChange(OCC::Folder *);
/**
* Indicates when the schedule queue changes.
@ -231,12 +231,12 @@ signals:
/**
* 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
*/
void wipeDone(AccountState *account, bool success);
void wipeDone(OCC::AccountState *account, bool success);
public slots:
@ -260,18 +260,18 @@ public slots:
void slotSyncOnceFileUnlocks(const QString &path);
// 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 */
void slotWipeFolderForAccount(AccountState *accountState);
void slotWipeFolderForAccount(OCC::AccountState *accountState);
void forceSyncForFolder(Folder *folder);
void forceSyncForFolder(OCC::Folder *folder);
private slots:
void slotFolderSyncPaused(Folder *, bool paused);
void slotFolderSyncPaused(OCC::Folder *, bool paused);
void slotFolderCanSyncChanged();
void slotFolderSyncStarted();
void slotFolderSyncFinished(const SyncResult &);
void slotFolderSyncFinished(const OCC::SyncResult &);
void slotRunOneEtagJob();
void slotEtagJobDestroyed(QObject *);
@ -280,15 +280,15 @@ private slots:
void slotStartScheduledFolderSync();
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
// FolderMan::folderSyncStateChange(Folder*) signal.
void slotForwardFolderSyncStateChange();
void slotServerVersionChanged(Account *account);
void slotServerVersionChanged(OCC::Account *account);
/**
* A file whose locks were being monitored has become unlocked.
@ -306,9 +306,9 @@ private slots:
*/
void slotScheduleFolderByTime();
void slotSetupPushNotifications(const Folder::Map &);
void slotProcessFilesPushNotification(Account *account);
void slotConnectToPushNotifications(Account *account);
void slotSetupPushNotifications(const OCC::Folder::Map &);
void slotProcessFilesPushNotification(OCC::Account *account);
void slotConnectToPushNotifications(OCC::Account *account);
private:
/** 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;
public slots:
void slotUpdateFolderState(Folder *);
void slotUpdateFolderState(OCC::Folder *);
void slotApplySelectiveSync();
void resetFolders();
void slotSyncAllPendingBigFolders();
void slotSyncNoPendingBigFolders();
void slotSetProgress(const ProgressInfo &progress);
void slotSetProgress(const OCC::ProgressInfo &progress);
private slots:
void slotUpdateDirectories(const QStringList &);
void slotGatherPermissions(const QString &name, const QMap<QString, QString> &properties);
void slotGatherEncryptionStatus(const QString &href, const QMap<QString, QString> &properties);
void slotLscolFinishedWithError(QNetworkReply *r);
void slotFolderSyncStateChange(Folder *f);
void slotFolderSyncStateChange(OCC::Folder *f);
void slotFolderScheduleQueueChanged();
void slotNewBigFolder();

View File

@ -78,13 +78,13 @@ public slots:
void slotShowTrayUpdateMessage(const QString &title, const QString &msg, const QUrl &webUrl);
void slotShowOptionalTrayMessage(const QString &title, const QString &msg);
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 slotFoldersChanged();
void slotShowSettings();
void slotShowSyncProtocol();
void slotShutdown();
void slotSyncStateChange(Folder *);
void slotSyncStateChange(OCC::Folder *);
void slotTrayClicked(QSystemTrayIcon::ActivationReason reason);
void slotToggleLogBrowser();
void slotOpenOwnCloud();
@ -94,7 +94,7 @@ public slots:
void slotHelp();
void slotOpenPath(const QString &path);
void slotAccountStateChanged();
void slotTrayMessageIfServerUnsupported(Account *account);
void slotTrayMessageIfServerUnsupported(OCC::Account *account);
/**

View File

@ -19,7 +19,7 @@ signals:
/**
* Notify if wipe was requested
*/
void authorized(AccountState*);
void authorized(OCC::AccountState*);
/**
* 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
* <server>/index.php/core/wipe/success
*/
void notifyServerSuccessJob(AccountState *accountState, bool);
void notifyServerSuccessJob(OCC::AccountState *accountState, bool);
void notifyServerSuccessJobSlot();
private:
@ -58,4 +58,4 @@ private:
friend class ::TestRemoteWipe;
};
}
#endif // REMOTEWIPE_H
#endif // REMOTEWIPE_H

View File

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

View File

@ -147,7 +147,7 @@ public slots:
* On success the permissionsSet 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
@ -403,9 +403,9 @@ public:
void fetchShares(const QString &path);
signals:
void shareCreated(const SharePtr &share);
void linkShareCreated(const QSharedPointer<LinkShare> &share);
void sharesFetched(const QList<SharePtr> &shares);
void shareCreated(const OCC::SharePtr &share);
void linkShareCreated(const QSharedPointer<OCC::LinkShare> &share);
void sharesFetched(const QList<OCC::SharePtr> &shares);
void serverError(int code, const QString &message);
/** Emitted when creating a link share with password fails.

View File

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

View File

@ -56,10 +56,10 @@ public:
~SocketApi() override;
public slots:
void slotUpdateFolderView(Folder *f);
void slotUpdateFolderView(OCC::Folder *f);
void slotUnregisterPath(const QString &alias);
void slotRegisterPath(const QString &alias);
void broadcastStatusPushMessage(const QString &systemPath, SyncFileStatus fileStatus);
void broadcastStatusPushMessage(const QString &systemPath, OCC::SyncFileStatus fileStatus);
signals:
void shareCommandReceived(const QString &localPath);
@ -104,47 +104,47 @@ private:
void processShareRequest(const QString &localFile, SocketListener *listener);
void processFileActivityRequest(const QString &localFile);
Q_INVOKABLE void command_RETRIEVE_FOLDER_STATUS(const QString &argument, SocketListener *listener);
Q_INVOKABLE void command_RETRIEVE_FILE_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, 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
Q_INVOKABLE void command_ACTIVITY(const QString &localFile, SocketListener *listener);
Q_INVOKABLE void command_SHARE(const QString &localFile, SocketListener *listener);
Q_INVOKABLE void command_MANAGE_PUBLIC_LINKS(const QString &localFile, SocketListener *listener);
Q_INVOKABLE void command_COPY_PUBLIC_LINK(const QString &localFile, SocketListener *listener);
Q_INVOKABLE void command_COPY_PRIVATE_LINK(const QString &localFile, SocketListener *listener);
Q_INVOKABLE void command_EMAIL_PRIVATE_LINK(const QString &localFile, SocketListener *listener);
Q_INVOKABLE void command_OPEN_PRIVATE_LINK(const QString &localFile, SocketListener *listener);
Q_INVOKABLE void command_MAKE_AVAILABLE_LOCALLY(const QString &filesArg, SocketListener *listener);
Q_INVOKABLE void command_MAKE_ONLINE_ONLY(const QString &filesArg, SocketListener *listener);
Q_INVOKABLE void command_RESOLVE_CONFLICT(const QString &localFile, SocketListener *listener);
Q_INVOKABLE void command_DELETE_ITEM(const QString &localFile, SocketListener *listener);
Q_INVOKABLE void command_MOVE_ITEM(const QString &localFile, SocketListener *listener);
Q_INVOKABLE void command_LOCK_FILE(const QString &localFile, SocketListener *listener);
Q_INVOKABLE void command_UNLOCK_FILE(const QString &localFile, SocketListener *listener);
Q_INVOKABLE void command_ACTIVITY(const QString &localFile, OCC::SocketListener *listener);
Q_INVOKABLE void command_SHARE(const QString &localFile, OCC::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, OCC::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, OCC::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, OCC::SocketListener *listener);
Q_INVOKABLE void command_MAKE_ONLINE_ONLY(const QString &filesArg, OCC::SocketListener *listener);
Q_INVOKABLE void command_RESOLVE_CONFLICT(const QString &localFile, OCC::SocketListener *listener);
Q_INVOKABLE void command_DELETE_ITEM(const QString &localFile, OCC::SocketListener *listener);
Q_INVOKABLE void command_MOVE_ITEM(const QString &localFile, OCC::SocketListener *listener);
Q_INVOKABLE void command_LOCK_FILE(const QString &localFile, OCC::SocketListener *listener);
Q_INVOKABLE void command_UNLOCK_FILE(const QString &localFile, OCC::SocketListener *listener);
void setFileLock(const QString &localFile, const SyncFileItem::LockStatus lockState) const;
// Windows Shell / Explorer pinning fallbacks, see issue: https://github.com/nextcloud/desktop/issues/1599
#ifdef Q_OS_WIN
Q_INVOKABLE void command_COPYASPATH(const QString &localFile, SocketListener *listener);
Q_INVOKABLE void command_OPENNEWWINDOW(const QString &localFile, SocketListener *listener);
Q_INVOKABLE void command_OPEN(const QString &localFile, SocketListener *listener);
Q_INVOKABLE void command_COPYASPATH(const QString &localFile, OCC::SocketListener *listener);
Q_INVOKABLE void command_OPENNEWWINDOW(const QString &localFile, OCC::SocketListener *listener);
Q_INVOKABLE void command_OPEN(const QString &localFile, OCC::SocketListener *listener);
#endif
// External sync
Q_INVOKABLE void command_V2_LIST_ACCOUNTS(const QSharedPointer<SocketApiJobV2> &job) const;
Q_INVOKABLE void command_V2_UPLOAD_FILES_FROM(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<OCC::SocketApiJobV2> &job) const;
// Fetch the private link and call 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 */
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
void sendSharingContextMenuOptions(const FileData &fileData, SocketListener *listener, bool enabled);
@ -167,10 +167,10 @@ private:
* If flag contains 'd', the menu should be disabled
* 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
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);
#if GUI_TESTING

View File

@ -100,7 +100,7 @@ signals:
void openHelp();
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 showErrorMessageDialog(const QString &error);
@ -111,11 +111,11 @@ public slots:
void setTrayEngine(QQmlApplicationEngine *trayEngine);
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 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 destroyEditFileLocallyLoadingDialog();
@ -130,7 +130,7 @@ public slots:
// only for those managed by the C++ engine
void destroyDialog(QQuickWindow *window) const;
void showWindow(WindowPosition position = WindowPosition::Default);
void showWindow(OCC::Systray::WindowPosition position = OCC::Systray::WindowPosition::Default);
void hideWindow();
void setSyncIsPaused(const bool syncIsPaused);

View File

@ -110,14 +110,14 @@ public slots:
void slotTriggerAction(const int activityIndex, const int actionIndex);
void slotTriggerDismiss(const int activityIndex);
void addNotificationToActivityList(const Activity &activity);
void addErrorToActivityList(const Activity &activity);
void addIgnoredFileToList(const Activity &newActivity);
void addSyncFileItemToActivityList(const Activity &activity);
void addNotificationToActivityList(const OCC::Activity &activity);
void addErrorToActivityList(const OCC::Activity &activity);
void addIgnoredFileToList(const OCC::Activity &newActivity);
void addSyncFileItemToActivityList(const OCC::Activity &activity);
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 setCurrentItem(const int currentItem);
@ -140,12 +140,12 @@ protected slots:
void setDoneFetching(bool value);
void setHideOldActivities(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();
private slots:
void addEntriesToActivityList(const ActivityList &activityList);
void addEntriesToActivityList(const OCC::ActivityList &activityList);
private:
static QVariantList convertLinksToMenuEntries(const Activity &activity);

View File

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

View File

@ -34,7 +34,7 @@ signals:
void activityListModelChanged();
public slots:
void setActivityListModel(ActivityListModel *activityListModel);
void setActivityListModel(OCC::ActivityListModel *activityListModel);
protected:
[[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);
public slots:
void slotItemCompleted(const QString &folder, const SyncFileItemPtr &item);
void slotProgressInfo(const QString &folder, const ProgressInfo &progress);
void slotAddError(const QString &folderAlias, const QString &message, ErrorCategory category);
void slotAddErrorToGui(const QString &folderAlias, SyncFileItem::Status status, const QString &errorMessage, const QString &subject = {});
void slotItemCompleted(const QString &folder, const OCC::SyncFileItemPtr &item);
void slotProgressInfo(const QString &folder, const OCC::ProgressInfo &progress);
void slotAddError(const QString &folderAlias, const QString &message, OCC::ErrorCategory category);
void slotAddErrorToGui(const QString &folderAlias, OCC::SyncFileItem::Status status, const QString &errorMessage, const QString &subject = {});
void slotNotificationRequestFinished(int statusCode);
void slotNotifyNetworkError(QNetworkReply *reply);
void slotEndNotificationRequest(int replyCode);
void slotNotifyServerFinished(const QString &reply, int replyCode);
void slotSendNotificationRequest(const QString &accountName, const QString &link, const QByteArray &verb, int row);
void slotBuildNotificationDisplay(const ActivityList &list);
void slotBuildIncomingCallDialogs(const ActivityList &list);
void slotBuildNotificationDisplay(const OCC::ActivityList &list);
void slotBuildIncomingCallDialogs(const OCC::ActivityList &list);
void slotRefreshNotifications();
void slotRefreshActivitiesInitial();
void slotRefreshActivities();

View File

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

View File

@ -93,7 +93,7 @@ public:
Q_REQUIRED_RESULT QVariantList clearStageTypes() 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;
@ -101,8 +101,8 @@ public slots:
void setUserIndex(const int userIndex);
void setUserStatus();
void clearUserStatus();
void setClearAt(const ClearStageType clearStageType);
void setPredefinedStatus(const UserStatus &predefinedStatus);
void setClearAt(const OCC::UserStatusSelectorModel::ClearStageType clearStageType);
void setPredefinedStatus(const OCC::UserStatus &predefinedStatus);
signals:
void userIndexChanged();

View File

@ -90,9 +90,9 @@ public:
QList<QSslCertificate> _clientSslCaCertificates;
public slots:
void setAuthType(DetermineAuthTypeJob::AuthType type);
void setAuthType(OCC::DetermineAuthTypeJob::AuthType type);
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 successfulStep();
void slotCustomButtonClicked(const int which);

View File

@ -316,16 +316,16 @@ signals:
/// Triggered by handleInvalidCredentials()
void invalidCredentials();
void credentialsFetched(AbstractCredentials *credentials);
void credentialsAsked(AbstractCredentials *credentials);
void credentialsFetched(OCC::AbstractCredentials *credentials);
void credentialsAsked(OCC::AbstractCredentials *credentials);
/// Forwards from QNetworkAccessManager::proxyAuthenticationRequired().
void proxyAuthenticationRequired(const QNetworkProxy &, QAuthenticator *);
// 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 accountChangedDisplayName();
@ -334,8 +334,8 @@ signals:
/// Used in RemoteWipe
void appPasswordRetrieved(QString);
void pushNotificationsReady(Account *account);
void pushNotificationsDisabled(Account *account);
void pushNotificationsReady(OCC::Account *account);
void pushNotificationsDisabled(OCC::Account *account);
void userStatusChanged();

View File

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

View File

@ -67,26 +67,26 @@ public:
JobParallelism parallelism() override;
private slots:
void startUploadFile(SyncFileItemPtr item, UploadFileInfo fileToUpload);
void startUploadFile(OCC::SyncFileItemPtr item, OCC::BulkPropagatorJob::UploadFileInfo fileToUpload);
// Content checksum computed, compute the transmission checksum
void slotComputeTransmissionChecksum(SyncFileItemPtr item,
UploadFileInfo fileToUpload);
void slotComputeTransmissionChecksum(OCC::SyncFileItemPtr item,
OCC::BulkPropagatorJob::UploadFileInfo fileToUpload);
// transmission checksum computed, prepare the upload
void slotStartUpload(SyncFileItemPtr item,
UploadFileInfo fileToUpload,
void slotStartUpload(OCC::SyncFileItemPtr item,
OCC::BulkPropagatorJob::UploadFileInfo fileToUpload,
const QByteArray &transmissionChecksumType,
const QByteArray &transmissionChecksum);
// invoked on internal error to unlock a folder and faile
void slotOnErrorStartFolderUnlock(SyncFileItemPtr item,
SyncFileItem::Status status,
void slotOnErrorStartFolderUnlock(OCC::SyncFileItemPtr item,
OCC::SyncFileItem::Status status,
const QString &errorString);
void slotPutFinished();
void slotUploadProgress(SyncFileItemPtr item, qint64 sent, qint64 total);
void slotUploadProgress(OCC::SyncFileItemPtr item, qint64 sent, qint64 total);
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)
: QObject(parent), QRunnable(), _localPath(localPath), _account(account), _vfs(vfs)
{
qRegisterMetaType<QVector<LocalInfo> >("QVector<LocalInfo>");
qRegisterMetaType<QVector<OCC::LocalInfo> >("QVector<OCC::LocalInfo>");
}
// Use as QRunnable

View File

@ -102,11 +102,11 @@ public:
void run() override;
signals:
void finished(QVector<LocalInfo> result);
void finished(QVector<OCC::LocalInfo> result);
void finishedFatalError(QString errorString);
void finishedNonFatalError(QString errorString);
void itemDiscovered(SyncFileItemPtr item);
void itemDiscovered(OCC::SyncFileItemPtr item);
void childIgnored(bool b);
private slots:
private:
@ -134,9 +134,9 @@ public:
// This is not actually a network job, it is just a job
signals:
void firstDirectoryPermissions(RemotePermissions);
void firstDirectoryPermissions(OCC::RemotePermissions);
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:
void directoryListingIteratedSlot(const QString &, const QMap<QString, QString> &);
@ -286,7 +286,7 @@ public:
signals:
void fatalError(const QString &errorString);
void itemDiscovered(const SyncFileItemPtr &item);
void itemDiscovered(const OCC::SyncFileItemPtr &item);
void finished();
// 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
* supposed to do.
*/
void slotItemCompleted(const SyncFileItemPtr &item);
void slotItemCompleted(const OCC::SyncFileItemPtr &item);
/**
* When a sync finishes, the lists must be updated

View File

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

View File

@ -283,7 +283,7 @@ public:
private slots:
void slotSubJobAbortFinished();
bool possiblyRunNextJob(PropagatorJob *next)
bool possiblyRunNextJob(OCC::PropagatorJob *next)
{
if (next->_state == NotYetStarted) {
connect(next, &PropagatorJob::finished, this, &PropagatorCompositeJob::slotSubJobFinished);
@ -291,7 +291,7 @@ private slots:
return next->scheduleSelfOrChild();
}
void slotSubJobFinished(SyncFileItem::Status status);
void slotSubJobFinished(OCC::SyncFileItem::Status status);
void finalize();
};
@ -349,8 +349,8 @@ public:
private slots:
void slotFirstJobFinished(SyncFileItem::Status status);
virtual void slotSubJobsFinished(SyncFileItem::Status status);
void slotFirstJobFinished(OCC::SyncFileItem::Status status);
virtual void slotSubJobsFinished(OCC::SyncFileItem::Status status);
};
@ -374,11 +374,11 @@ public:
[[nodiscard]] qint64 committedDiskSpace() const override;
public slots:
void appendDirDeletionJob(PropagatorJob *job);
void appendDirDeletionJob(OCC::PropagatorJob *job);
private slots:
void slotSubJobsFinished(SyncFileItem::Status status) override;
void slotDirDeletionJobsFinished(SyncFileItem::Status status);
void slotSubJobsFinished(OCC::SyncFileItem::Status status) override;
void slotDirDeletionJobsFinished(OCC::SyncFileItem::Status status);
private:
@ -636,7 +636,7 @@ private slots:
}
/** 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)
emit finished(status == SyncFileItem::Success);
@ -647,9 +647,9 @@ private slots:
void scheduleNextJobImpl();
signals:
void newItem(const SyncFileItemPtr &);
void itemCompleted(const SyncFileItemPtr &);
void progress(const SyncFileItem &, qint64 bytes);
void newItem(const OCC::SyncFileItemPtr &);
void itemCompleted(const OCC::SyncFileItemPtr &);
void progress(const OCC::SyncFileItem &, qint64 bytes);
void finished(bool success);
/** 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.
*/
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
*/
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.
*/
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
@ -297,7 +297,7 @@ signals:
* @param[out] full error message
* @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

View File

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

View File

@ -72,17 +72,17 @@ signals:
/**
* 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
*/
void activitiesChanged(Account *account);
void activitiesChanged(OCC::Account *account);
/**
* 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

View File

@ -127,7 +127,7 @@ public slots:
void abort();
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; }
/**
@ -141,7 +141,7 @@ public slots:
* revert afterwards. Use _lastLocalDiscoveryStyle to discover the last
* 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);
@ -150,17 +150,17 @@ signals:
void rootEtag(const QByteArray &, const QDateTime &);
// 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)
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.
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 started();
@ -170,7 +170,7 @@ signals:
* 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.
*/
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
void newBigFolder(const QString &folder, bool isExternal);
@ -186,7 +186,7 @@ private slots:
void slotRootEtagReceived(const QByteArray &, const QDateTime &time);
/** 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.
*
@ -194,12 +194,12 @@ private slots:
* can also be called via the propagator for items that are
* 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 slotPropagationFinished(bool success);
void slotProgress(const SyncFileItem &item, qint64 curent);
void slotProgress(const OCC::SyncFileItem &item, qint64 curent);
void slotCleanPollsJobAborted(const QString &error);
/** Records that a file was touched by a job. */

View File

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

View File

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

View File

@ -61,7 +61,7 @@ public:
public slots:
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:
void hydrationRequestReady(const QString &requestId);

View File

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

View File

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

View File

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

View File

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

View File

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