Changeset View
Changeset View
Standalone View
Standalone View
src/content.cpp
Show All 33 Lines | 32 | public: | |||
---|---|---|---|---|---|
34 | QString m_name; | 34 | QString m_name; | ||
35 | int m_downloads; | 35 | int m_downloads; | ||
36 | int m_numberOfComments; | 36 | int m_numberOfComments; | ||
37 | int m_rating; | 37 | int m_rating; | ||
38 | QDateTime m_created; | 38 | QDateTime m_created; | ||
39 | QDateTime m_updated; | 39 | QDateTime m_updated; | ||
40 | QList<Icon> m_icons; | 40 | QList<Icon> m_icons; | ||
41 | QList<QUrl> m_videos; | 41 | QList<QUrl> m_videos; | ||
42 | QStringList m_tags; | ||||
42 | 43 | | |||
43 | QMap<QString, QString> m_extendedAttributes; | 44 | QMap<QString, QString> m_extendedAttributes; | ||
44 | 45 | | |||
45 | Private() | 46 | Private() | ||
46 | : m_downloads(0), | 47 | : m_downloads(0), | ||
47 | m_numberOfComments(0), | 48 | m_numberOfComments(0), | ||
48 | m_rating(0) | 49 | m_rating(0) | ||
49 | { | 50 | { | ||
▲ Show 20 Lines • Show All 179 Lines • ▼ Show 20 Line(s) | 213 | { | |||
229 | desc.setLink(attribute(QLatin1String("downloadlink") + num)); | 230 | desc.setLink(attribute(QLatin1String("downloadlink") + num)); | ||
230 | desc.setPriceReason(attribute(QLatin1String("downloadreason") + num)); | 231 | desc.setPriceReason(attribute(QLatin1String("downloadreason") + num)); | ||
231 | desc.setPriceAmount(attribute(QLatin1String("downloadprice") + num)); | 232 | desc.setPriceAmount(attribute(QLatin1String("downloadprice") + num)); | ||
232 | desc.setSize(attribute(QLatin1String("downloadsize") + num).toUInt()); | 233 | desc.setSize(attribute(QLatin1String("downloadsize") + num).toUInt()); | ||
233 | desc.setGpgFingerprint(attribute(QLatin1String("downloadgpgfingerprint") + num)); | 234 | desc.setGpgFingerprint(attribute(QLatin1String("downloadgpgfingerprint") + num)); | ||
234 | desc.setGpgSignature(attribute(QLatin1String("downloadgpgsignature") + num)); | 235 | desc.setGpgSignature(attribute(QLatin1String("downloadgpgsignature") + num)); | ||
235 | desc.setPackageName(attribute(QLatin1String("downloadpackagename") + num)); | 236 | desc.setPackageName(attribute(QLatin1String("downloadpackagename") + num)); | ||
236 | desc.setRepository(attribute(QLatin1String("downloadrepository") + num)); | 237 | desc.setRepository(attribute(QLatin1String("downloadrepository") + num)); | ||
238 | desc.setTags(attribute(QLatin1String("downloadtags") + num).split(QLatin1Char(','))); | ||||
237 | return desc; | 239 | return desc; | ||
238 | } | 240 | } | ||
239 | 241 | | |||
240 | QList<HomePageEntry> Attica::Content::homePageEntries() | 242 | QList<HomePageEntry> Attica::Content::homePageEntries() | ||
241 | { | 243 | { | ||
242 | QList<Attica::HomePageEntry> homepages; | 244 | QList<Attica::HomePageEntry> homepages; | ||
243 | QMap<QString, QString>::const_iterator iter = d->m_extendedAttributes.constBegin(); | 245 | QMap<QString, QString>::const_iterator iter = d->m_extendedAttributes.constBegin(); | ||
244 | while (iter != d->m_extendedAttributes.constEnd()) { | 246 | while (iter != d->m_extendedAttributes.constEnd()) { | ||
▲ Show 20 Lines • Show All 77 Lines • ▼ Show 20 Line(s) | |||||
322 | { | 324 | { | ||
323 | return d->m_videos; | 325 | return d->m_videos; | ||
324 | } | 326 | } | ||
325 | 327 | | |||
326 | void Attica::Content::setVideos(QList<QUrl> videos) | 328 | void Attica::Content::setVideos(QList<QUrl> videos) | ||
327 | { | 329 | { | ||
328 | d->m_videos = videos; | 330 | d->m_videos = videos; | ||
329 | } | 331 | } | ||
332 | | ||||
333 | QStringList Attica::Content::tags() const | ||||
334 | { | ||||
335 | return d->m_tags; | ||||
336 | } | ||||
337 | | ||||
338 | void Attica::Content::setTags(const QStringList &tags) | ||||
cfeck: `& ` -> ` &` | |||||
339 | { | ||||
340 | d->m_tags = tags; | ||||
341 | } |
& -> &