6 using namespace swift::misc::network;
10 namespace swift::misc::db
12 CDbInfoList::CDbInfoList() {}
18 for (
const CDbInfo &info : *
this)
28 for (
const QJsonValue &value : array)
void push_back(const T &value)
Appends an element at the end of the sequence.
Info about the latest models.
bool matchesEntity(network::CEntityFlags::Entity entity) const
Matches given entity.
static CDbInfo fromDatabaseJson(const QJsonObject &json, const QString &prefix=QString())
From our database JSON format.
Value object encapsulating a list of info objects.
static CDbInfoList fromDatabaseJson(const QJsonArray &array)
From our database JSON format.
CDbInfo findFirstByEntityOrDefault(swift::misc::network::CEntityFlags::Entity entity) const
Find by entity.
void sortByKey()
Sort by timestamp.
#define SWIFT_DEFINE_SEQUENCE_MIXINS(Namespace, T, List)
Explicit template definition of mixins for a CSequence subclass.