9#ifndef ATTICA_CONTENT_H
10#define ATTICA_CONTENT_H
14#include <QSharedDataPointer>
18#include "attica_export.h"
19#include "downloaddescription.h"
20#include "homepageentry.h"
35 typedef QList<Content> List;
162 QString changelog()
const;
163 QString version()
const;
164 QString depend()
const;
190 QString previewPicture(
const QString &number = QStringLiteral(
"1"))
const;
191 QString smallPreviewPicture(
const QString &number = QStringLiteral(
"1"))
const;
192 QString license()
const;
193 QString licenseName()
const;
194 QString author()
const;
263 QSharedDataPointer<Private> d;
Represents a single content.
Definition content.h:33
QStringList tags() const
Get all the tags for this content.
QString id() const
Gets the id of the Content.
void setIcons(QList< Icon > icons)
Set list of icons.
QMap< QString, QString > attributes() const
Get all attributes that are not included in the basis set of attributes exposed by the Content class.
QList< Icon > icons() const
Get all icons for this content.
void setVideos(QList< QUrl > videos)
Set list of videos.
QDateTime created() const
Gets the date and time the Content has been created.
QString description() const
A description of this content.
int numberOfComments() const
Gets the number of comments for the Content.
QList< Icon > icons()
Get all icons for this content.
HomePageEntry homePageEntry(int number) const
Get the details about a home page (a content can have multiple home pages, blog, bugs,...
QList< QUrl > videos()
Get all videos for this content.
QDateTime updated() const
Gets the date and time the Content has been last updated.
bool isValid() const
Checks whether this Content has an id.
void setDownloads(int downloads)
Sets the number of downloads for the Content.
QList< HomePageEntry > homePageEntries()
Get all home pages for this content.
QUrl detailpage() const
A webpage with the detailed description of this content.
Content()
Creates an empty Content.
DownloadDescription downloadUrlDescription(int number) const
Get the details about a download (a content can have multiple links, eg for different distros).
void setCreated(const QDateTime &created)
Sets the date and time the Content has been created.
void setId(const QString &id)
Sets the id of the Content.
Content(const Content &other)
Copy constructor.
int downloads() const
Gets the number of downloads for the Content (how often this has been downloaded from the server).
void setTags(const QStringList &tags)
Set the list of tags.
QString attribute(const QString &key) const
Get an attribute that is not included in the basis set of attributes exposed by the Content class.
QString summary() const
A summary description of this content.
void setUpdated(const QDateTime &updated)
Sets the time the Content has been last updated.
void addAttribute(const QString &key, const QString &value)
Add an attribute that is not included in the basis set of attributes exposed by the Content class.
void setRating(int rating)
Sets the rating of the Content.
Content & operator=(const Content &other)
Assignment operator.
QList< DownloadDescription > downloadUrlDescriptions() const
Get all possible downloads.
void setName(const QString &name)
Sets the name of the Content.
void setNumberOfComments(int numComments)
Sets the number of comments for the Content.
int rating() const
Gets the rating of the Content.
QString name() const
Gets the name of the Content.
Represents a download description.
Definition downloaddescription.h:26
The HomePageEntry class contains information about one home page entry.
Definition homepageentry.h:27
The Attica namespace,.
Definition activity.h:21