public slots:
/// Store a new or updated record in the database
- void setCaseConflictRecord(const ConflictRecord &record);
+ void setCaseConflictRecord(const OCC::ConflictRecord &record);
/// Delete a case clash conflict record by path of the file with the conflict tag
void deleteCaseClashConflictByPathRecord(const QString &path);
private slots:
void displayMnemonic(const QString &mnemonic);
- void disableEncryptionForAccount(const AccountPtr &account) const;
+ void disableEncryptionForAccount(const OCC::AccountPtr &account) const;
void showConnectionLabel(const QString &message, QStringList errors = QStringList());
void openIgnoredFilesDialog(const QString & absFolderPath);
void customizeStyle();
void accountSetupFromCommandLinePropfindHandleFailure();
- void setupLocalSyncFolder(AccountState *accountState);
+ void setupLocalSyncFolder(OCC::AccountState *accountState);
void printAccountSetupFromCommandLineStatusAndExit(const QString &status, bool isFailure);
void lockFile();
void fileAlreadyLocked();
- void fileLockSuccess(const SyncFileItemPtr &item);
+ void fileLockSuccess(const OCC::SyncFileItemPtr &item);
void fileLockError(const QString &errorMessage);
void fileLockProcedureComplete(const QString ¬ificationTitle,
const QString ¬ificationMessage,
private slots:
void shareesFetched(const QJsonDocument &reply);
- void insertSearchGloballyItem(const QVector<ShareePtr> &newShareesFetched);
+ void insertSearchGloballyItem(const QVector<OCC::ShareePtr> &newShareesFetched);
void filterSharees();
void slotDarkModeChanged();
int goodSeen = 0;
int abortOrPausedSeen = 0;
int runSeen = 0;
- int various = 0;
for (const Folder *folder : qAsConst(folders)) {
SyncResult folderResult = folder->syncResult();
switch (syncStatus) {
case SyncResult::Undefined:
case SyncResult::NotYetStarted:
- various++;
break;
case SyncResult::SyncPrepare:
case SyncResult::SyncRunning:
void forceSyncForFolder(OCC::Folder *folder);
- void removeE2eFiles(const AccountPtr &account) const;
+ void removeE2eFiles(const OCC::AccountPtr &account) const;
private slots:
void slotFolderSyncPaused(OCC::Folder *, bool paused);
// The context menu actions
Q_INVOKABLE void command_ACTIVITY(const QString &localFile, OCC::SocketListener *listener);
- Q_INVOKABLE void command_ENCRYPT(const QString &localFile, SocketListener *listener);
+ Q_INVOKABLE void command_ENCRYPT(const QString &localFile, OCC::SocketListener *listener);
Q_INVOKABLE void command_SHARE(const QString &localFile, OCC::SocketListener *listener);
- Q_INVOKABLE void command_LEAVESHARE(const QString &localFile, SocketListener *listener);
+ Q_INVOKABLE void command_LEAVESHARE(const QString &localFile, OCC::SocketListener *listener);
Q_INVOKABLE void command_MANAGE_PUBLIC_LINKS(const QString &localFile, OCC::SocketListener *listener);
Q_INVOKABLE void command_COPY_SECUREFILEDROP_LINK(const QString &localFile, OCC::SocketListener *listener);
Q_INVOKABLE void command_COPY_PUBLIC_LINK(const QString &localFile, OCC::SocketListener *listener);
void shutdown();
void showFileDetailsPage(const QString &fileLocalPath, const OCC::Systray::FileDetailsPage page);
- void showFileDetails(AccountState *accountState, const QString &localPath, const OCC::Systray::FileDetailsPage fileDetailsPage);
+ void showFileDetails(OCC::AccountState *accountState, const QString &localPath, const OCC::Systray::FileDetailsPage fileDetailsPage);
void sendChatMessage(const QString &token, const QString &message, const QString &replyTo);
void showErrorMessageDialog(const QString &error);
void showMessage(const QString &title, const QString &message, QSystemTrayIcon::MessageIcon icon = Information);
void showUpdateMessage(const QString &title, const QString &message, const QUrl &webUrl);
- void showTalkMessage(const QString &title, const QString &message, const QString &replyTo, const QString &token, const AccountStatePtr &accountState);
+ void showTalkMessage(const QString &title, const QString &message, const QString &replyTo, const QString &token, const OCC::AccountStatePtr &accountState);
void setToolTip(const QString &tip);
void createCallDialog(const OCC::Activity &callNotification, const OCC::AccountStatePtr accountState);
private slots:
void slotPushNotificationsReady();
void slotDisconnectPushNotifications();
- void slotReceivedPushNotification(Account *account);
- void slotReceivedPushActivity(Account *account);
+ void slotReceivedPushNotification(OCC::Account *account);
+ void slotReceivedPushActivity(OCC::Account *account);
void slotCheckExpiredActivities();
void checkNotifiedNotifications();
void showDesktopNotification(const QString &title, const QString &message, const long notificationId);
- void showDesktopNotification(const Activity &activity);
- void showDesktopNotification(const ActivityList &activityList);
- void showDesktopTalkNotification(const Activity &activity);
+ void showDesktopNotification(const OCC::Activity &activity);
+ void showDesktopNotification(const OCC::ActivityList &activityList);
+ void showDesktopTalkNotification(const OCC::Activity &activity);
private:
void connectPushNotifications() const;
void mnemonicDeleted();
public slots:
- void initialize(const AccountPtr &account);
- void forgetSensitiveData(const AccountPtr &account);
+ void initialize(const OCC::AccountPtr &account);
+ void forgetSensitiveData(const OCC::AccountPtr &account);
private slots:
- void generateKeyPair(const AccountPtr &account);
- void encryptPrivateKey(const AccountPtr &account);
+ void generateKeyPair(const OCC::AccountPtr &account);
+ void encryptPrivateKey(const OCC::AccountPtr &account);
void publicKeyFetched(QKeychain::Job *incoming);
void privateKeyFetched(QKeychain::Job *incoming);
void handleMnemonicDeleted(const QKeychain::Job* const incoming);
void checkAllSensitiveDataDeleted();
- void getPrivateKeyFromServer(const AccountPtr &account);
- void getPublicKeyFromServer(const AccountPtr &account);
- void fetchAndValidatePublicKeyFromServer(const AccountPtr &account);
- void decryptPrivateKey(const AccountPtr &account, const QByteArray &key);
+ void getPrivateKeyFromServer(const OCC::AccountPtr &account);
+ void getPublicKeyFromServer(const OCC::AccountPtr &account);
+ void fetchAndValidatePublicKeyFromServer(const OCC::AccountPtr &account);
+ void decryptPrivateKey(const OCC::AccountPtr &account, const QByteArray &key);
- void fetchFromKeyChain(const AccountPtr &account);
- void writePrivateKey(const AccountPtr &account);
- void writeCertificate(const AccountPtr &account);
- void writeMnemonic(const AccountPtr &account);
+ void fetchFromKeyChain(const OCC::AccountPtr &account);
+ void writePrivateKey(const OCC::AccountPtr &account);
+ void writeCertificate(const OCC::AccountPtr &account);
+ void writeMnemonic(const OCC::AccountPtr &account);
private:
void generateCSR(const AccountPtr &account, PKey keyPair);
[[nodiscard]] const SyncEngine::SingleItemDiscoveryOptions &singleItemDiscoveryOptions() const;
public slots:
- void setSingleItemDiscoveryOptions(const SingleItemDiscoveryOptions &singleItemDiscoveryOptions);
+ void setSingleItemDiscoveryOptions(const OCC::SyncEngine::SingleItemDiscoveryOptions &singleItemDiscoveryOptions);
void startSync();
void transmissionProgress(const OCC::ProgressInfo &progress);
- void itemDiscovered(const SyncFileItemPtr &);
+ void itemDiscovered(const OCC::SyncFileItemPtr &);
/// We've produced a new sync error of a type.
void syncError(const QString &message, OCC::ErrorCategory category = OCC::ErrorCategory::Normal);
signals:
void folderUnlocked(const QByteArray &folderId, int httpStatus);
- void fileDropMetadataParsedAndAdjusted(const FolderMetadata *const metadata);
+ void fileDropMetadataParsedAndAdjusted(const OCC::FolderMetadata *const metadata);
private:
QString _path;