move some void returning methods to be slots
authorMatthieu Gallien <matthieu.gallien@nextcloud.com>
Tue, 24 Jan 2023 20:21:34 +0000 (21:21 +0100)
committerMatthieu Gallien <matthieu.gallien@nextcloud.com>
Wed, 25 Jan 2023 15:37:36 +0000 (16:37 +0100)
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
src/common/syncjournaldb.h

index 1cf1ee0418ab53e44f6e969610a36d2959d4ac6f..2da2d967bcd2dbf750d0e6dc96056400a18287d6 100644 (file)
@@ -249,18 +249,12 @@ public:
     /// Retrieve a conflict record by path of the file with the conflict tag
     ConflictRecord conflictRecord(const QByteArray &path);
 
-    /// Store a new or updated record in the database
-    void setCaseConflictRecord(const ConflictRecord &record);
-
     /// Retrieve a conflict record by path of the file with the conflict tag
     ConflictRecord caseConflictRecordByBasePath(const QString &baseNamePath);
 
     /// Retrieve a conflict record by path of the file with the conflict tag
     ConflictRecord caseConflictRecordByPath(const QString &path);
 
-    /// Delete a case clash conflict record by path of the file with the conflict tag
-    void deleteCaseClashConflictByPathRecord(const QString &path);
-
     /// Return all paths of files with a conflict tag in the name and records in the db
     QByteArrayList caseClashConflictRecordPaths();
 
@@ -388,6 +382,13 @@ public:
      */
     int autotestFailCounter = -1;
 
+public slots:
+    /// Store a new or updated record in the database
+    void setCaseConflictRecord(const ConflictRecord &record);
+
+    /// Delete a case clash conflict record by path of the file with the conflict tag
+    void deleteCaseClashConflictByPathRecord(const QString &path);
+
 private:
     int getFileRecordCount();
     [[nodiscard]] bool updateDatabaseStructure();