Changeset View
Changeset View
Standalone View
Standalone View
src/core/entryinternal.h
Show First 20 Lines • Show All 83 Lines • ▼ Show 20 Line(s) | 61 | public: | |||
---|---|---|---|---|---|
84 | struct DownloadLinkInformation { | 84 | struct DownloadLinkInformation { | ||
85 | QString name; | 85 | QString name; | ||
86 | QString priceAmount; | 86 | QString priceAmount; | ||
87 | QString distributionType; | 87 | QString distributionType; | ||
88 | QString descriptionLink; | 88 | QString descriptionLink; | ||
89 | int id; | 89 | int id; | ||
90 | bool isDownloadtypeLink; | 90 | bool isDownloadtypeLink; | ||
91 | quint64 size = 0; | 91 | quint64 size = 0; | ||
92 | QStringList tags; | ||||
92 | }; | 93 | }; | ||
93 | 94 | | |||
94 | /** | 95 | /** | ||
95 | * Constructor. | 96 | * Constructor. | ||
96 | */ | 97 | */ | ||
97 | EntryInternal(); | 98 | EntryInternal(); | ||
98 | 99 | | |||
99 | EntryInternal(const EntryInternal &other); | 100 | EntryInternal(const EntryInternal &other); | ||
▲ Show 20 Lines • Show All 336 Lines • ▼ Show 20 Line(s) | |||||
436 | /** | 437 | /** | ||
437 | * Set a string representation of the URL for the donation website for this entry. | 438 | * Set a string representation of the URL for the donation website for this entry. | ||
438 | * Note: This is not checked for validity, the caller must do this. | 439 | * Note: This is not checked for validity, the caller must do this. | ||
439 | * @param link String version of the URL for the entry's donation website | 440 | * @param link String version of the URL for the entry's donation website | ||
440 | */ | 441 | */ | ||
441 | void setDonationLink(const QString &link); | 442 | void setDonationLink(const QString &link); | ||
442 | 443 | | |||
443 | /** | 444 | /** | ||
445 | * The set of tags assigned specifically to this content item. This does not include | ||||
446 | * tags for the download links. To get those, you must concatenate the lists yourself. | ||||
447 | * @see downloadLinkInformationList() | ||||
448 | * @see DownloadLinkInformation | ||||
449 | * @see Engine::setTagFilter(QStringList) | ||||
450 | * @since 5.51 | ||||
451 | */ | ||||
452 | QStringList tags() const; | ||||
453 | /** | ||||
454 | * Set the tags for the content item. | ||||
455 | * @param tags A string list containing the tags for this entry | ||||
456 | * @since 5.51 | ||||
457 | */ | ||||
458 | void setTags(const QStringList &tags); | ||||
459 | | ||||
460 | /** | ||||
444 | The id of the provider this entry belongs to | 461 | The id of the provider this entry belongs to | ||
445 | */ | 462 | */ | ||
446 | QString providerId() const; | 463 | QString providerId() const; | ||
447 | void setProviderId(const QString &id); | 464 | void setProviderId(const QString &id); | ||
448 | 465 | | |||
449 | /** | 466 | /** | ||
450 | The source of this entry can be Cache, Registry or Online - @see source | 467 | The source of this entry can be Cache, Registry or Online - @see source | ||
451 | */ | 468 | */ | ||
▲ Show 20 Lines • Show All 104 Lines • Show Last 20 Lines |