mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-07 11:05:33 +08:00
refs #568, specialized lists (timestamp, DB objects, model list)
* remaned to latest/oldestObject * JSON functions with prefix * remove by keys * only add models with model string to QStringList
This commit is contained in:
@@ -31,9 +31,18 @@ namespace BlackMisc
|
||||
//! Sort by timestamp
|
||||
void sortByKey();
|
||||
|
||||
//! From DB JSON
|
||||
//! All keys as list
|
||||
QList<int> toDbKeyList() const;
|
||||
|
||||
//! Remove objects with key
|
||||
int removeObjectsWithKeys(const QList<int> &keys);
|
||||
|
||||
//! From DB JSON with default prefixes
|
||||
static CONTAINER fromDatabaseJson(const QJsonArray &array);
|
||||
|
||||
//! From DB JSON
|
||||
static CONTAINER fromDatabaseJson(const QJsonArray &array, const QString &prefix);
|
||||
|
||||
protected:
|
||||
//! Constructor
|
||||
IDatastoreObjectListWithIntegerKey();
|
||||
@@ -53,9 +62,15 @@ namespace BlackMisc
|
||||
//! All keys as string list
|
||||
QStringList toDbKeyList() const;
|
||||
|
||||
//! From DB JSON
|
||||
//! Remove objects with key
|
||||
int removeObjectsWithKeys(const QStringList &keys);
|
||||
|
||||
//! From DB JSON with default prefixes
|
||||
static CONTAINER fromDatabaseJson(const QJsonArray &array);
|
||||
|
||||
//! From DB JSON
|
||||
static CONTAINER fromDatabaseJson(const QJsonArray &array, const QString &prefix);
|
||||
|
||||
protected:
|
||||
//! Constructor
|
||||
IDatastoreObjectListWithStringKey();
|
||||
|
||||
Reference in New Issue
Block a user