6 #ifndef SWIFT_MISC_DB_DBINFO_H
7 #define SWIFT_MISC_DB_DBINFO_H
16 namespace swift::misc::db
27 IndexTableName = CPropertyIndexRef::GlobalIndexCDbInfo,
36 CDbInfo(
int key,
const QString &tableName,
int entries);
45 void setTableName(
const QString &tableName);
48 network::CEntityFlags::Entity getEntity()
const;
51 const QString &getSharedFileName()
const;
54 const QString &getServiceName()
const;
57 void setEntity(network::CEntityFlags::Entity entity);
63 bool matchesEntity(network::CEntityFlags::Entity entity)
const;
69 QString convertToQString(
bool i18n =
false)
const;
81 static CDbInfo fromDatabaseJson(
const QJsonObject &json,
const QString &prefix = QString());
84 static const QStringList &sharedFileNames();
87 static const QString &sharedInfoFileName();
90 static const QStringList &serviceNames();
93 static const QString &entityToSharedName(network::CEntityFlags::Entity entity);
96 static const QString &entityToServiceName(network::CEntityFlags::Entity entity);
Non-owning reference to a CPropertyIndex with a subset of its features.
Mix of the most commonly used mixin classes.
Info about the latest models.
CDbInfo()=default
Constructor.
void setEntries(int entries)
Set entries.
int getEntries() const
Entry count.
const QString & getTableName() const
Table name.
Class from which a derived class can inherit datastore-related functions.
ColumnIndex
Property index.
#define SWIFT_MISC_EXPORT
Export a class or function from the library.
#define SWIFT_DECLARE_VALUEOBJECT_MIXINS(Namespace, Class)
Explicit template declaration of mixins for a CValueObject subclass to be placed near the top of the ...