Mercurial > dedupe
comparison SqliteDBLink.hpp @ 85:1f9e27a0bd7f
Allow for lazy calculation of checksums, ignore them, if only one file of given size.
| author | Tom Fredrik Blenning Klaussen <bfg@bfgconsult.no> |
|---|---|
| date | Thu, 10 Oct 2013 15:55:30 +0200 |
| parents | 69a30d9f126e |
| children | af7962f3274b |
comparison
equal
deleted
inserted
replaced
| 84:848496a57039 | 85:1f9e27a0bd7f |
|---|---|
| 14 virtual void updateFile(const QString& path, qint64 size, | 14 virtual void updateFile(const QString& path, qint64 size, |
| 15 const QDateTime& dtime, const QByteArray& hash); | 15 const QDateTime& dtime, const QByteArray& hash); |
| 16 bool exists(const QString& path); | 16 bool exists(const QString& path); |
| 17 DBStatus existsWithMtime(const QString& path, const QDateTime& mtime); | 17 DBStatus existsWithMtime(const QString& path, const QDateTime& mtime); |
| 18 | 18 |
| 19 virtual const QList<dbinf_ptr_t> filesWithSize(qint64 size, const QString& prefix = QString()) const; | |
| 20 | |
| 21 | |
| 19 QStringList toStringList(); | 22 QStringList toStringList(); |
| 20 const QList<dbinf_ptr_t > values(const QString& prefix = QString() ) const; | 23 const QList<dbinf_ptr_t > values(const QString& prefix = QString() ) const; |
| 21 virtual void keepOnlyFromPrefix(const QString& prefix, | 24 virtual void keepOnlyFromPrefix(const QString& prefix, |
| 22 const QStringList& files); | 25 const QStringList& files); |
| 23 virtual void deleteFileFromDB(const QString& path); | 26 virtual void deleteFileFromDB(const QString& path); |
