Attica::DownloadDescription Class
class Attica::DownloadDescriptionRepresents a download description. More...
Header: | #include <Attica/DownloadDescription> |
CMake: | find_package(KF6 REQUIRED COMPONENTS Attica) target_link_libraries(mytarget PRIVATE KF6::Attica) |
Public Types
enum | Type { FileDownload, LinkDownload, PackageDownload } |
Public Functions
DownloadDescription() | |
QString | category() const |
QString | distributionType() const |
QString | gpgFingerprint() const |
QString | gpgSignature() const |
bool | hasPrice() const |
int | id() const |
QString | link() const |
QString | name() const |
QString | packageName() const |
QString | priceAmount() const |
QString | priceReason() const |
QString | repository() const |
void | setCategory(const QString &category) |
void | setDistributionType(const QString &distributionType) |
void | setGpgFingerprint(const QString &fingerprint) |
void | setGpgSignature(const QString &signature) |
void | setHasPrice(bool hasPrice) |
void | setId(int id) |
void | setLink(const QString &link) |
void | setName(const QString &name) |
void | setPackageName(const QString &packageName) |
void | setPriceAmount(const QString &priceAmount) |
void | setPriceReason(const QString &priceReason) |
void | setRepository(const QString &repository) |
void | setSize(uint size) |
(since 5.50) void | setTags(const QStringList &tags) |
void | setType(Attica::DownloadDescription::Type type) |
(since 6.5) void | setVersion(const QString &version) |
uint | size() const |
(since 5.50) QStringList | tags() const |
Attica::DownloadDescription::Type | type() const |
(since 6.5) QString | version() const |
Detailed Description
Member Type Documentation
enum DownloadDescription::Type
Constant | Value |
---|---|
Attica::DownloadDescription::FileDownload | 0 |
Attica::DownloadDescription::LinkDownload | 1 |
Attica::DownloadDescription::PackageDownload | 2 |
Member Function Documentation
DownloadDescription::DownloadDescription()
QString DownloadDescription::category() const
See also setCategory().
QString DownloadDescription::distributionType() const
See also setDistributionType().
QString DownloadDescription::gpgFingerprint() const
See also setGpgFingerprint().
QString DownloadDescription::gpgSignature() const
See also setGpgSignature().
bool DownloadDescription::hasPrice() const
See also setHasPrice().
int DownloadDescription::id() const
The id of the description - as one Content can have multiple download descriptions associated. This will simply be 1, 2, ...
See also setId().
QString DownloadDescription::link() const
See also setLink().
QString DownloadDescription::name() const
See also setName().
QString DownloadDescription::packageName() const
See also setPackageName().
QString DownloadDescription::priceAmount() const
See also setPriceAmount().
QString DownloadDescription::priceReason() const
See also setPriceReason().
QString DownloadDescription::repository() const
See also setRepository().
void DownloadDescription::setCategory(const QString &category)
See also category().
void DownloadDescription::setDistributionType(const QString &distributionType)
See also distributionType().
void DownloadDescription::setGpgFingerprint(const QString &fingerprint)
See also gpgFingerprint().
void DownloadDescription::setGpgSignature(const QString &signature)
See also gpgSignature().
void DownloadDescription::setHasPrice(bool hasPrice)
See also hasPrice().
void DownloadDescription::setId(int id)
See also id().
void DownloadDescription::setLink(const QString &link)
See also link().
void DownloadDescription::setName(const QString &name)
See also name().
void DownloadDescription::setPackageName(const QString &packageName)
See also packageName().
void DownloadDescription::setPriceAmount(const QString &priceAmount)
See also priceAmount().
void DownloadDescription::setPriceReason(const QString &priceReason)
See also priceReason().
void DownloadDescription::setRepository(const QString &repository)
See also repository().
void DownloadDescription::setSize(uint size)
See also size().
[since 5.50]
void DownloadDescription::setTags(const QStringList &tags)
Set the list of tags for this download description
This function was introduced in 5.50.
See also tags().
void DownloadDescription::setType(Attica::DownloadDescription::Type type)
See also type().
[since 6.5]
void DownloadDescription::setVersion(const QString &version)
This function was introduced in 6.5.
See also version().
uint DownloadDescription::size() const
See also setSize().
[since 5.50]
QStringList DownloadDescription::tags() const
Get the list of tags for this download description
This function was introduced in 5.50.
See also setTags().
Attica::DownloadDescription::Type DownloadDescription::type() const
See also setType().
[since 6.5]
QString DownloadDescription::version() const
The download version as set on the remote. May be QString() when not set.
This function was introduced in 6.5.
See also setVersion().