"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/common/syncjournaldb.h" between
ownCloud-2.9.0.5150.tar.xz and ownCloud-2.9.1.5500.tar.xz

About: ownCloud Client (formerly "mirall") is a tool to synchronize files from ownCloud Server with your desktop client. It uses OCSync as its syncing backend.

syncjournaldb.h  (ownCloud-2.9.0.5150.tar.xz):syncjournaldb.h  (ownCloud-2.9.1.5500.tar.xz)
skipping to change at line 53 skipping to change at line 53
*/ */
class OCSYNC_EXPORT SyncJournalDb : public QObject class OCSYNC_EXPORT SyncJournalDb : public QObject
{ {
Q_OBJECT Q_OBJECT
public: public:
explicit SyncJournalDb(const QString &dbFilePath, QObject *parent = nullptr) ; explicit SyncJournalDb(const QString &dbFilePath, QObject *parent = nullptr) ;
~SyncJournalDb() override; ~SyncJournalDb() override;
/// Create a journal path for a specific configuration /// Create a journal path for a specific configuration
static QString makeDbName(const QString &localPath, static QString makeDbName(const QString &localPath,
const QString &infix); const QString &infix = QStringLiteral("journal"));
static QString makeDbName(const QString &localPath,
const QUrl &remoteUrl,
const QString &remotePath,
const QString &user);
/// Migrate a csync_journal to the new path, if necessary. Returns false on error /// Migrate a csync_journal to the new path, if necessary. Returns false on error
static bool maybeMigrateDb(const QString &localPath, const QString &absolute JournalPath); static bool maybeMigrateDb(const QString &localPath, const QString &absolute JournalPath);
// To verify that the record could be found check with SyncJournalFileRecord ::isValid() // To verify that the record could be found check with SyncJournalFileRecord ::isValid()
bool getFileRecord(const QString &filename, SyncJournalFileRecord *rec) { re turn getFileRecord(filename.toUtf8(), rec); } bool getFileRecord(const QString &filename, SyncJournalFileRecord *rec) { re turn getFileRecord(filename.toUtf8(), rec); }
bool getFileRecord(const QByteArray &filename, SyncJournalFileRecord *rec); bool getFileRecord(const QByteArray &filename, SyncJournalFileRecord *rec);
bool getFileRecordByInode(quint64 inode, SyncJournalFileRecord *rec); bool getFileRecordByInode(quint64 inode, SyncJournalFileRecord *rec);
bool getFileRecordsByFileId(const QByteArray &fileId, const std::function<vo id(const SyncJournalFileRecord &)> &rowCallback); bool getFileRecordsByFileId(const QByteArray &fileId, const std::function<vo id(const SyncJournalFileRecord &)> &rowCallback);
bool getFilesBelowPath(const QByteArray &path, const std::function<void(cons t SyncJournalFileRecord&)> &rowCallback); bool getFilesBelowPath(const QByteArray &path, const std::function<void(cons t SyncJournalFileRecord&)> &rowCallback);
 End of changes. 1 change blocks. 
6 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)