refs #768, return DB keys as set

This commit is contained in:
Klaus Basan
2016-10-17 03:02:06 +02:00
parent 7d8f5f689f
commit 4c6bb6e3fd
8 changed files with 18 additions and 17 deletions

View File

@@ -15,7 +15,7 @@
#include "blackmisc/timestampobjectlist.h"
#include <QJsonArray>
#include <QList>
#include <QSet>
#include <QString>
namespace BlackMisc
@@ -37,13 +37,13 @@ namespace BlackMisc
void sortByKey();
//! All keys as list
QList<KEYTYPE> toDbKeyList() const;
QSet<KEYTYPE> toDbKeySet() const;
//! Max.key value (making sense with integer key)
KEYTYPE getMaxKey(bool *ok = nullptr) const;
//! Remove objects with key
int removeObjectsWithKeys(const QList<KEYTYPE> &keys);
int removeObjectsWithKeys(const QSet<KEYTYPE> &keys);
//! Remove objects without key
int removeObjectsWithoutDbKey();