* 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
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 {}
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);
};
}
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:
void slotUpdateQuota(qint64 total, qint64 used);
void slotAccountStateChanged();
void slotStyleChanged();
- AccountState *accountsState() { return _accountState; }
+ OCC::AccountState *accountsState() { return _accountState; }
void slotHideSelectiveSyncWidget();
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);
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);
signals:
void folderRemoved();
- void folderStateChanged(Folder *);
+ void folderStateChanged(OCC::Folder *);
void isShowingSettingsDialog();
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();
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;
void checkAuthentication();
signals:
- void connectionResult(ConnectionValidator::Status status, const QStringList &errors);
+ void connectionResult(OCC::ConnectionValidator::Status status, const QStringList &errors);
protected slots:
void slotCheckServerAndAuth();
void slotAuthSuccess();
void slotCapabilitiesRecieved(const QJsonDocument &);
- void slotUserFetched(UserInfo *userInfo);
+ void slotUserFetched(OCC::UserInfo *userInfo);
private:
#ifndef TOKEN_AUTH_ONLY
* 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();
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();
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 ¬e) const;
+ void setShareNote(const OCC::SharePtr &share, const QString ¬e) const;
void setShareNoteFromQml(const QVariant &share, const QString ¬e) const;
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);
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;
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();
/**
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
* 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.
/** 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);
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);
*
* 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.
/**
* 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:
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 *);
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.
*/
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
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();
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();
void slotHelp();
void slotOpenPath(const QString &path);
void slotAccountStateChanged();
- void slotTrayMessageIfServerUnsupported(Account *account);
+ void slotTrayMessageIfServerUnsupported(OCC::Account *account);
/**
/**
* Notify if wipe was requested
*/
- void authorized(AccountState*);
+ void authorized(OCC::AccountState*);
/**
* Notify if user only needs to login again
* 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:
friend class ::TestRemoteWipe;
};
}
-#endif // REMOTEWIPE_H
\ No newline at end of file
+#endif // REMOTEWIPE_H
public slots:
void showFirstPage();
- void showIssuesList(AccountState *account);
+ void showIssuesList(OCC::AccountState *account);
void slotSwitchPage(QAction *action);
void slotAccountAvatarChanged();
void slotAccountDisplayNameChanged();
void changeEvent(QEvent *) override;
private slots:
- void accountAdded(AccountState *);
- void accountRemoved(AccountState *);
+ void accountAdded(OCC::AccountState *);
+ void accountRemoved(OCC::AccountState *);
private:
void customizeStyle();
* 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
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.
}
private slots:
- void sharesFetched(const QList<SharePtr> &shares)
+ void sharesFetched(const QList<OCC::SharePtr> &shares)
{
auto shareName = SocketApi::tr("Context menu share");
_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());
~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);
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);
* 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
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);
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();
// 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);
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);
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);
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();
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;
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();
Q_SIGNALS:
void quotaUpdated(qint64 total, qint64 used);
- void fetchedLastInfo(UserInfo *userInfo);
+ void fetchedLastInfo(OCC::UserInfo *userInfo);
private:
[[nodiscard]] bool canGetInfo() const;
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;
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();
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);
/// 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();
/// 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();
public slots:
- void registerUploadDevice(UploadDevice *);
+ void registerUploadDevice(OCC::UploadDevice *);
void unregisterUploadDevice(QObject *);
- void registerDownloadJob(GETFileJob *);
+ void registerDownloadJob(OCC::GETFileJob *);
void unregisterDownloadJob(QObject *);
void absoluteLimitTimerExpired();
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);
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
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:
// 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> &);
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
* 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
explicit DetermineAuthTypeJob(AccountPtr account, QObject *parent = nullptr);
void start();
signals:
- void authType(AuthType);
+ void authType(OCC::DetermineAuthTypeJob::AuthType);
private:
void checkAllDone();
private slots:
void slotSubJobAbortFinished();
- bool possiblyRunNextJob(PropagatorJob *next)
+ bool possiblyRunNextJob(OCC::PropagatorJob *next)
{
if (next->_state == NotYetStarted) {
connect(next, &PropagatorJob::finished, this, &PropagatorCompositeJob::slotSubJobFinished);
return next->scheduleSelfOrChild();
}
- void slotSubJobFinished(SyncFileItem::Status status);
+ void slotSubJobFinished(OCC::SyncFileItem::Status status);
void finalize();
};
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);
};
[[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:
}
/** 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);
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. */
@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
* @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
void doStartUpload() override;
public slots:
- void abort(PropagatorJob::AbortType abortType) override;
+ void abort(OCC::PropagatorJob::AbortType abortType) override;
private slots:
void startNextChunk();
void slotPutFinished();
void startNewUpload();
void startNextChunk();
public slots:
- void abort(AbortType abortType) override;
+ void abort(OCC::PropagateUploadFileNG::AbortType abortType) override;
private slots:
void slotPropfindFinished();
void slotPropfindFinishedWithError();
/**
* 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
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; }
/**
* 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);
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();
* 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);
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.
*
* 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. */
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();
[[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);
};
}
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);
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 ¶ms) override;
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 ¶ms) override;
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) {
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)
void cleanupTestCase() {
}
- SyncFileItem createItem( const QString& file ) {
+ OCC::SyncFileItem createItem( const QString& file ) {
SyncFileItem i;
i._file = file;
return i;