comparison MemoryDBLink.cpp @ 101:6c6f3a5f96ea

Better support for batch operations.
author Tom Fredrik Blenning Klaussen <bfg@bfgconsult.no>
date Thu, 13 Feb 2014 15:19:37 +0100
parents f49023c61dac
children
comparison
equal deleted inserted replaced
100:f4ebbfa3ffae 101:6c6f3a5f96ea
50 } 50 }
51 return list; 51 return list;
52 } 52 }
53 53
54 54
55 void MemoryDBLink::deleteFileFromDB(const QString& path) 55 void MemoryDBLink::deleteFileFromDB(const QString& path, bool lazy)
56 { 56 {
57 entries.remove(path); 57 entries.remove(path);
58 } 58 }
59 59
60 60
61 void MemoryDBLink::keepOnlyFromPrefix(const QString& prefix, 61 void MemoryDBLink::keepOnlyFromPrefix(const QString& prefix,
62 const QStringList& files) 62 const QStringList& files,
63 bool lazy)
63 { 64 {
64 QStringList list; 65 QStringList list;
65 foreach(dbinf_ptr_t info, values(prefix)) { 66 foreach(dbinf_ptr_t info, values(prefix)) {
66 if (!files.contains(info->path())) { 67 if (!files.contains(info->path())) {
67 list << info->path(); 68 list << info->path();