Commit de03d115 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

implement categories here

parent 76fe8720
...@@ -41,11 +41,7 @@ public: ...@@ -41,11 +41,7 @@ public:
{ {
public: public:
Entry() Entry()
: status(0) : pubDate()
, pubDate()
, hash(0)
, guidIsHash(false)
, guidIsPermaLink(false)
{ {
} }
...@@ -59,10 +55,11 @@ public: ...@@ -59,10 +55,11 @@ public:
QString authorName; QString authorName;
QString authorUri; QString authorUri;
QString authorEMail; QString authorEMail;
int status; QStringList categories;
int enclosureLength; int status = 0;
int enclosureLength = 0;
QDateTime pubDate; QDateTime pubDate;
uint hash; uint hash = 0;
bool guidIsHash = false; bool guidIsHash = false;
bool guidIsPermaLink = false; bool guidIsPermaLink = false;
bool hasEnclosure = false; bool hasEnclosure = false;
...@@ -352,17 +349,17 @@ void FeedStorageDummyImpl::enclosure(const QString &guid, bool &hasEnclosure, QS ...@@ -352,17 +349,17 @@ void FeedStorageDummyImpl::enclosure(const QString &guid, bool &hasEnclosure, QS
} }
} }
void FeedStorageDummyImpl::setCategories(const QString &, const QStringList &categories) void FeedStorageDummyImpl::setCategories(const QString &guid, const QStringList &categories)
{ {
//TODO if (contains(guid)) {
d->entries[guid].categories = categories;
}
} }
QStringList FeedStorageDummyImpl::categories(const QString &guid) const QStringList FeedStorageDummyImpl::categories(const QString &guid) const
{ {
return {}; return contains(guid) ? d->entries[guid].categories : QStringList();
} }
} // namespace Backend } // namespace Backend
} // namespace Akregator } // namespace Akregator
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment