Ref T109, datastore object and list

* unified properties in int/string DB objects
* fixed typo dbKeysAsString
This commit is contained in:
Klaus Basan
2017-07-17 00:17:25 +02:00
committed by Mathew Sutcliffe
parent 03a551d016
commit dfb6b05e9d
6 changed files with 59 additions and 15 deletions

View File

@@ -35,11 +35,14 @@ namespace BlackMisc
//! Sort by timestamp
void sortByKey();
//! All keys as list
//! All keys as set
QSet<KEYTYPE> toDbKeySet() const;
//! All keys as string set (also int keys will be converted to string)
QSet<QString> toDbKeyStringSet() const;
//! The DB keys as string
QString dbKeysAsStrings(const QString &separator) const;
QString dbKeysAsString(const QString &separator) const;
//! Max.key value (making sense with integer key)
KEYTYPE getMaxKey(bool *ok = nullptr) const;