9#ifndef DOWNLOADDESCRIPTION_H
10#define DOWNLOADDESCRIPTION_H
15#include "attica_export.h"
45#if ATTICA_ENABLE_DEPRECATED_SINCE(5, 4)
46 ATTICA_DEPRECATED_VERSION(5, 4,
"Use const overload")
50#if ATTICA_ENABLE_DEPRECATED_SINCE(5, 4)
51 ATTICA_DEPRECATED_VERSION(0, 2,
"Use DownloadDescription::type()")
54 Attica::DownloadDescription::Type type()
const;
55#if ATTICA_ENABLE_DEPRECATED_SINCE(0, 2)
56 ATTICA_DEPRECATED_VERSION(0, 2,
"Use DownloadDescription::type()")
57 bool isDownloadtypLink();
59#if ATTICA_ENABLE_DEPRECATED_SINCE(5, 4)
60 ATTICA_DEPRECATED_VERSION(5, 4,
"Use const overload")
63 bool hasPrice()
const;
64#if ATTICA_ENABLE_DEPRECATED_SINCE(5, 4)
65 ATTICA_DEPRECATED_VERSION(5, 4,
"Use const overload")
68 QString category()
const;
69#if ATTICA_ENABLE_DEPRECATED_SINCE(5, 4)
70 ATTICA_DEPRECATED_VERSION(5, 4,
"Use const overload")
74#if ATTICA_ENABLE_DEPRECATED_SINCE(5, 4)
75 ATTICA_DEPRECATED_VERSION(5, 4,
"Use const overload")
79#if ATTICA_ENABLE_DEPRECATED_SINCE(5, 4)
80 ATTICA_DEPRECATED_VERSION(5, 4,
"Use const overload")
81 QString distributionType();
83 QString distributionType()
const;
84#if ATTICA_ENABLE_DEPRECATED_SINCE(5, 4)
85 ATTICA_DEPRECATED_VERSION(5, 4,
"Use const overload")
86 QString priceReason();
88 QString priceReason()
const;
89#if ATTICA_ENABLE_DEPRECATED_SINCE(5, 4)
90 ATTICA_DEPRECATED_VERSION(5, 4,
"Use const overload")
91 QString priceAmount();
93 QString priceAmount()
const;
94#if ATTICA_ENABLE_DEPRECATED_SINCE(5, 4)
95 ATTICA_DEPRECATED_VERSION(5, 4,
"Use const overload")
99#if ATTICA_ENABLE_DEPRECATED_SINCE(5, 4)
100 ATTICA_DEPRECATED_VERSION(5, 4,
"Use const overload")
101 QString gpgFingerprint();
103 QString gpgFingerprint()
const;
104#if ATTICA_ENABLE_DEPRECATED_SINCE(5, 4)
105 ATTICA_DEPRECATED_VERSION(5, 4,
"Use const overload")
106 QString gpgSignature();
108 QString gpgSignature()
const;
109#if ATTICA_ENABLE_DEPRECATED_SINCE(5, 4)
110 ATTICA_DEPRECATED_VERSION(5, 4,
"Use const overload")
111 QString packageName();
113 QString packageName()
const;
114#if ATTICA_ENABLE_DEPRECATED_SINCE(5, 4)
115 ATTICA_DEPRECATED_VERSION(5, 4,
"Use const overload")
116 QString repository();
118 QString repository()
const;
126 void setType(Attica::DownloadDescription::Type type);
127#if ATTICA_ENABLE_DEPRECATED_SINCE(0, 2)
128 ATTICA_DEPRECATED_VERSION(0, 2,
"Use DownloadDescription::setType(Attica::DownloadDescription::Type)")
129 void setDownloadtypLink(
bool isLink);
131 void setHasPrice(
bool hasPrice);
132 void setCategory(
const QString &category);
133 void setName(
const QString &name);
134 void setLink(
const QString &link);
135 void setDistributionType(
const QString &distributionType);
136 void setPriceReason(
const QString &priceReason);
137 void setPriceAmount(
const QString &priceAmount);
138 void setSize(uint size);
139 void setGpgFingerprint(
const QString &fingerprint);
140 void setGpgSignature(
const QString &signature);
141 void setPackageName(
const QString &packageName);
142 void setRepository(
const QString &repository);
151 QSharedDataPointer<Private> d;
Represents a download description.
Definition downloaddescription.h:26
int id() const
The id of the description - as one Content can have multiple download descriptions associated.
void setTags(const QStringList &tags)
Set the list of tags for this download description.
QStringList tags() const
Get the list of tags for this download description.
The Attica namespace,.
Definition activity.h:21