6 #ifndef SWIFT_MISC_DB_ARTIFACTLIST_H
7 #define SWIFT_MISC_DB_ARTIFACTLIST_H
22 namespace swift::misc::db
47 CArtifact findFirstByMatchingNameOrDefault(
const QString &name,
48 Qt::CaseSensitivity cs = Qt::CaseSensitive)
const;
61 bool findMoreStableDistribution =
false)
const;
68 bool findMoreStableDistributions =
false)
const;
71 CArtifact findFirstByVersionOrDefault(
const QVersionNumber &version)
const;
74 CArtifact findFirstByVersionOrDefault(
const QString &version)
const;
80 void sortByVersion(Qt::SortOrder order = Qt::AscendingOrder);
83 CArtifact getLatestArtifactOrDefault()
const;
89 QString getLatestVersion()
const;
92 QVersionNumber getLatestQVersion()
const;
96 QStringList getSortedNames()
const;
100 QStringList getSortedVersions()
const;
103 qint64 getTotalFileSize()
const;
106 QString getTotalFileSizeHumanReadable()
const;
109 static CArtifactList fromDatabaseJson(
const QJsonArray &array);
Generic ordered container with value semantics.
Generic sequential container with value semantics.
CSequence()=default
Default constructor.
Artifacts ("our software" products)
Distributions for channel.
Multiple distributions for different channels:
List of objects read from database. Such objects should implement.
Value object encapsulating a list of remote files.
#define SWIFT_DECLARE_SEQUENCE_MIXINS(Namespace, T, List)
Explicit template declaration of mixins for a CSequence subclass to be placed near the top of the hea...
#define SWIFT_MISC_EXPORT
Export a class or function from the library.