Make sync journal name generating a method of SyncJournal.

Before it was in Folder, however, the command line client does not
have the Folder class. To not duplicate code, the function to generate
the sync journal name went to SyncEngine class.
Esse commit está contido em:
Klaas Freitag
2016-09-02 16:12:43 +02:00
commit 84ede3f01f
6 arquivos alterados com 22 adições e 29 exclusões
-3
Ver Arquivo
@@ -271,7 +271,6 @@ void selectiveSyncFixup(OCC::SyncJournalDb *journal, const QStringList &newList)
}
}
int main(int argc, char **argv) {
QCoreApplication app(argc, argv);
@@ -437,8 +436,6 @@ restart_sync:
Cmd cmd;
SyncJournalDb db;
// FIXME: Use new MD5 based name
db.setDatabaseFilePath(options.source_dir + ".csync_journal.db");
if (!selectiveSyncList.empty()) {
selectiveSyncFixup(&db, selectiveSyncList);