Mercurial > dedupe
comparison FileDBLink.hpp @ 13:9463c0c22969
Refactor computeHash into separate function.
| author | Tom Fredrik Blenning Klaussen <bfg@sim.no> |
|---|---|
| date | Fri, 24 Aug 2012 22:57:19 +0200 |
| parents | b5943e4bf676 |
| children | b9515dc35fe4 |
comparison
equal
deleted
inserted
replaced
| 12:0114be0b5ad4 | 13:9463c0c22969 |
|---|---|
| 87 int editDistance_; | 87 int editDistance_; |
| 88 }; | 88 }; |
| 89 | 89 |
| 90 static QSharedPointer<DBInfo> computedValue(const QSharedPointer<DBInfo>& info, const QList<QSharedPointer<DBInfo> >&); | 90 static QSharedPointer<DBInfo> computedValue(const QSharedPointer<DBInfo>& info, const QList<QSharedPointer<DBInfo> >&); |
| 91 | 91 |
| 92 static QByteArray computeHash(const QString& path, QCryptographicHash::Algorithm = QCryptographicHash::Sha1); | |
| 92 | 93 |
| 93 public: | 94 public: |
| 94 enum DBStatus { NONE = 0, MTIME_DIFFERENT, SAME}; | 95 enum DBStatus { NONE = 0, MTIME_DIFFERENT, SAME}; |
| 95 | 96 |
| 96 virtual ~FileDBLink() {} | 97 virtual ~FileDBLink() {} |
