• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

akregator

  • sources
  • kde-4.14
  • kdepim
  • akregator
  • src
  • dummystorage
feedstoragedummyimpl.cpp
Go to the documentation of this file.
1 /*
2  This file is part of Akregator.
3 
4  Copyright (C) 2005 Frank Osterfeld <osterfeld@kde.org>
5 
6  This program is free software; you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation; either version 2 of the License, or
9  (at your option) any later version.
10 
11  This program is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with this program; if not, write to the Free Software
18  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 
20  As a special exception, permission is given to link this program
21  with any edition of Qt, and distribute the resulting executable,
22  without including the source code for Qt in the source distribution.
23 */
24 
25 #include "feedstoragedummyimpl.h"
26 #include "storagedummyimpl.h"
27 
28 #include <feed.h>
29 
30 #include <QHash>
31 #include <QList>
32 #include <QMap>
33 #include <QString>
34 #include <QStringList>
35 
36 //typedef unsigned int uint;
37 namespace Akregator {
38 namespace Backend {
39 
40 class FeedStorageDummyImpl::FeedStorageDummyImplPrivate
41 {
42  public:
43  class Entry
44  {
45  public:
46  Entry() : guidIsHash(false), guidIsPermaLink(false), status(0), pubDate(0), hash(0) {}
47  StorageDummyImpl* mainStorage;
48  QList<Category> categories;
49  QString title;
50  QString description;
51  QString content;
52  QString link;
53  QString authorName;
54  QString authorUri;
55  QString authorEMail;
56  QString commentsLink;
57  bool guidIsHash;
58  bool guidIsPermaLink;
59  int comments;
60  int status;
61  uint pubDate;
62  uint hash;
63  QStringList tags;
64  bool hasEnclosure;
65  QString enclosureUrl;
66  QString enclosureType;
67  int enclosureLength;
68  };
69 
70  QHash<QString, Entry> entries;
71 
72  // all tags occurring in the feed
73  QStringList tags;
74 
75  // tag -> articles index
76  QHash<QString, QStringList> taggedArticles;
77 
78  QList<Category> categories;
79  QMap<Akregator::Backend::Category, QStringList> categorizedArticles;
80 
81  Storage* mainStorage;
82  QString url;
83 };
84 
85 
86 void FeedStorageDummyImpl::convertOldArchive()
87 {
88 }
89 
90 FeedStorageDummyImpl::FeedStorageDummyImpl(const QString& url, StorageDummyImpl* main) : d(new FeedStorageDummyImplPrivate)
91 {
92  d->url = url;
93  d->mainStorage = main;
94 }
95 
96 FeedStorageDummyImpl::~FeedStorageDummyImpl()
97 {
98  delete d; d = 0;
99 }
100 
101 void FeedStorageDummyImpl::commit()
102 {
103 }
104 
105 void FeedStorageDummyImpl::rollback()
106 {
107 }
108 
109 void FeedStorageDummyImpl::close()
110 {
111 }
112 
113 int FeedStorageDummyImpl::unread() const
114 {
115  return d->mainStorage->unreadFor(d->url);
116 }
117 
118 void FeedStorageDummyImpl::setUnread(int unread)
119 {
120  d->mainStorage->setUnreadFor(d->url, unread);
121 }
122 
123 int FeedStorageDummyImpl::totalCount() const
124 {
125  return d->mainStorage->totalCountFor(d->url);
126 }
127 
128 void FeedStorageDummyImpl::setTotalCount(int total)
129 {
130  d->mainStorage->setTotalCountFor(d->url, total);
131 }
132 
133 int FeedStorageDummyImpl::lastFetch() const
134 {
135  return d->mainStorage->lastFetchFor(d->url);
136 }
137 
138 void FeedStorageDummyImpl::setLastFetch(int lastFetch)
139 {
140  d->mainStorage->setLastFetchFor(d->url, lastFetch);
141 }
142 
143 QStringList FeedStorageDummyImpl::articles(const QString& tag) const
144 {
145  return tag.isNull() ? QStringList(d->entries.keys()) : d->taggedArticles.value(tag);
146 }
147 
148 QStringList FeedStorageDummyImpl::articles(const Category& cat) const
149 {
150  return d->categorizedArticles.value(cat);
151 }
152 
153 void FeedStorageDummyImpl::addEntry(const QString& guid)
154 {
155  if (!d->entries.contains(guid))
156  {
157  d->entries[guid] = FeedStorageDummyImplPrivate::Entry();
158  setTotalCount(totalCount()+1);
159  }
160 }
161 
162 bool FeedStorageDummyImpl::contains(const QString& guid) const
163 {
164  return d->entries.contains(guid);
165 }
166 
167 void FeedStorageDummyImpl::deleteArticle(const QString& guid)
168 {
169  if (!d->entries.contains(guid))
170  return;
171 
172  setDeleted(guid);
173 
174  d->entries.remove(guid);
175 }
176 
177 int FeedStorageDummyImpl::comments(const QString& guid) const
178 {
179 
180  return contains(guid) ? d->entries[guid].comments : 0;
181 }
182 
183 QString FeedStorageDummyImpl::commentsLink(const QString& guid) const
184 {
185  return contains(guid) ? d->entries[guid].commentsLink : "";
186 }
187 
188 bool FeedStorageDummyImpl::guidIsHash(const QString& guid) const
189 {
190  return contains(guid) ? d->entries[guid].guidIsHash : false;
191 }
192 
193 bool FeedStorageDummyImpl::guidIsPermaLink(const QString& guid) const
194 {
195  return contains(guid) ? d->entries[guid].guidIsPermaLink : false;
196 }
197 
198 uint FeedStorageDummyImpl::hash(const QString& guid) const
199 {
200  return contains(guid) ? d->entries[guid].hash : 0;
201 }
202 
203 
204 void FeedStorageDummyImpl::setDeleted(const QString& guid)
205 {
206  if (!contains(guid))
207  return;
208 
209  FeedStorageDummyImplPrivate::Entry entry = d->entries[guid];
210 
211  // remove article from tag->article index
212  QStringList::ConstIterator it = entry.tags.constBegin();
213  QStringList::ConstIterator end = entry.tags.constEnd();
214 
215  for ( ; it != end; ++it)
216  {
217  d->taggedArticles[*it].removeAll(guid);
218  if (d->taggedArticles[*it].isEmpty())
219  d->tags.removeAll(*it);
220  }
221 
222  // remove article from tag->category index
223  QList<Category>::ConstIterator it2 = entry.categories.constBegin();
224  QList<Category>::ConstIterator end2 = entry.categories.constEnd();
225 
226  for ( ; it2 != end2; ++it2)
227  {
228  d->categorizedArticles[*it2].removeAll(guid);
229  if (d->categorizedArticles[*it2].isEmpty())
230  d->categories.removeAll(*it2);
231  }
232 
233  entry.description = "";
234  entry.content = "";
235  entry.title = "";
236  entry.link = "";
237  entry.commentsLink = "";
238 }
239 
240 QString FeedStorageDummyImpl::link(const QString& guid) const
241 {
242  return contains(guid) ? d->entries[guid].link : "";
243 }
244 
245 uint FeedStorageDummyImpl::pubDate(const QString& guid) const
246 {
247  return contains(guid) ? d->entries[guid].pubDate : 0;
248 }
249 
250 int FeedStorageDummyImpl::status(const QString& guid) const
251 {
252  return contains(guid) ? d->entries[guid].status : 0;
253 }
254 
255 void FeedStorageDummyImpl::setStatus(const QString& guid, int status)
256 {
257  if (contains(guid))
258  d->entries[guid].status = status;
259 }
260 
261 QString FeedStorageDummyImpl::title(const QString& guid) const
262 {
263  return contains(guid) ? d->entries[guid].title : "";
264 }
265 
266 QString FeedStorageDummyImpl::description(const QString& guid) const
267 {
268  return contains(guid) ? d->entries[guid].description : "";
269 }
270 
271 QString FeedStorageDummyImpl::content(const QString& guid) const
272 {
273  return contains(guid) ? d->entries[guid].content : "";
274 }
275 
276 QString FeedStorageDummyImpl::authorName(const QString& guid) const
277 {
278  return contains(guid) ? d->entries[guid].authorName : QString();
279 }
280 
281 QString FeedStorageDummyImpl::authorUri(const QString& guid) const
282 {
283  return contains(guid) ? d->entries[guid].authorUri : QString();
284 }
285 
286 QString FeedStorageDummyImpl::authorEMail(const QString& guid) const
287 {
288  return contains(guid) ? d->entries[guid].authorEMail : QString();
289 }
290 
291 
292 void FeedStorageDummyImpl::setPubDate(const QString& guid, uint pubdate)
293 {
294  if (contains(guid))
295  d->entries[guid].pubDate = pubdate;
296 }
297 
298 void FeedStorageDummyImpl::setGuidIsHash(const QString& guid, bool isHash)
299 {
300  if (contains(guid))
301  d->entries[guid].guidIsHash = isHash;
302 }
303 
304 void FeedStorageDummyImpl::setLink(const QString& guid, const QString& link)
305 {
306  if (contains(guid))
307  d->entries[guid].link = link;
308 }
309 
310 void FeedStorageDummyImpl::setHash(const QString& guid, uint hash)
311 {
312  if (contains(guid))
313  d->entries[guid].hash = hash;
314 }
315 
316 void FeedStorageDummyImpl::setTitle(const QString& guid, const QString& title)
317 {
318  if (contains(guid))
319  d->entries[guid].title = title;
320 }
321 
322 void FeedStorageDummyImpl::setDescription(const QString& guid, const QString& description)
323 {
324  if (contains(guid))
325  d->entries[guid].description = description;
326 }
327 
328 void FeedStorageDummyImpl::setCommentsLink(const QString& guid, const QString& commentsLink)
329 {
330  if (contains(guid))
331  d->entries[guid].commentsLink = commentsLink;
332 }
333 
334 
335 void FeedStorageDummyImpl::setContent(const QString& guid, const QString& content)
336 {
337  if (contains(guid))
338  d->entries[guid].content = content;
339 }
340 
341 void FeedStorageDummyImpl::setAuthorName(const QString& guid, const QString& author)
342 {
343  if (contains(guid))
344  d->entries[guid].authorName = author;
345 }
346 
347 void FeedStorageDummyImpl::setAuthorUri(const QString& guid, const QString& author)
348 {
349  if (contains(guid))
350  d->entries[guid].authorUri = author;
351 }
352 
353 void FeedStorageDummyImpl::setAuthorEMail(const QString& guid, const QString& author)
354 {
355  if (contains(guid))
356  d->entries[guid].authorEMail = author;
357 }
358 
359 void FeedStorageDummyImpl::setComments(const QString& guid, int comments)
360 {
361  if (contains(guid))
362  d->entries[guid].comments = comments;
363 }
364 
365 
366 void FeedStorageDummyImpl::setGuidIsPermaLink(const QString& guid, bool isPermaLink)
367 {
368  if (contains(guid))
369  d->entries[guid].guidIsPermaLink = isPermaLink;
370 }
371 
372 void FeedStorageDummyImpl::addTag(const QString& guid, const QString& tag)
373 {
374  if (contains(guid))
375  {
376  d->entries[guid].tags.append(tag);
377  if (!d->taggedArticles[tag].contains(guid))
378  d->taggedArticles[tag].append(guid);
379  if (!d->tags.contains(tag))
380  d->tags.append(tag);
381  }
382 
383 }
384 
385 void FeedStorageDummyImpl::addCategory(const QString& guid, const Category& cat)
386 {
387  if (!contains(guid))
388  return;
389 
390  d->entries[guid].categories.append(cat);
391 
392  if (d->categorizedArticles[cat].isEmpty())
393  d->categories.append(cat);
394  d->categorizedArticles[cat].append(guid);
395 }
396 
397 QList<Category> FeedStorageDummyImpl::categories(const QString& guid) const
398 {
399  if (!guid.isNull())
400  return contains(guid) ? d->entries[guid].categories : QList<Category>();
401  else
402  return d->categories;
403 }
404 
405 
406 void FeedStorageDummyImpl::removeTag(const QString& guid, const QString& tag)
407 {
408  if (contains(guid))
409  {
410  d->entries[guid].tags.removeAll(tag);
411  d->taggedArticles[tag].removeAll(guid);
412  if (d->taggedArticles[tag].isEmpty())
413  d->tags.removeAll(tag);
414  }
415 }
416 
417 QStringList FeedStorageDummyImpl::tags(const QString& guid) const
418 {
419  if (!guid.isNull())
420  return contains(guid) ? d->entries[guid].tags : QStringList();
421  else
422  {
423  return d->tags;
424  }
425 }
426 
427 void FeedStorageDummyImpl::add(FeedStorage* source)
428 {
429  QStringList articles = source->articles();
430  for (QStringList::ConstIterator it = articles.constBegin(); it != articles.constEnd(); ++it)
431  copyArticle(*it, source);
432  setUnread(source->unread());
433  setLastFetch(source->lastFetch());
434  setTotalCount(source->totalCount());
435 }
436 
437 void FeedStorageDummyImpl::copyArticle(const QString& guid, FeedStorage* source)
438 {
439  if (!contains(guid))
440  addEntry(guid);
441 
442  setComments(guid, source->comments(guid));
443  setCommentsLink(guid, source->commentsLink(guid));
444  setDescription(guid, source->description(guid));
445  setContent(guid, source->content(guid));
446  setGuidIsHash(guid, source->guidIsHash(guid));
447  setGuidIsPermaLink(guid, source->guidIsPermaLink(guid));
448  setHash(guid, source->hash(guid));
449  setLink(guid, source->link(guid));
450  setPubDate(guid, source->pubDate(guid));
451  setStatus(guid, source->status(guid));
452  setTitle(guid, source->title(guid));
453  QStringList tags = source->tags(guid);
454 
455  for (QStringList::ConstIterator it = tags.constBegin(); it != tags.constEnd(); ++it)
456  addTag(guid, *it);
457 }
458 
459 void FeedStorageDummyImpl::clear()
460 {
461  d->entries.clear();
462  setUnread(0);
463  setTotalCount(0);
464 }
465 
466 void FeedStorageDummyImpl::setEnclosure(const QString& guid, const QString& url, const QString& type, int length)
467 {
468  if (contains(guid))
469  {
470  FeedStorageDummyImplPrivate::Entry entry = d->entries[guid];
471  entry.hasEnclosure = true;
472  entry.enclosureUrl = url;
473  entry.enclosureType = type;
474  entry.enclosureLength = length;
475  }
476 }
477 
478 void FeedStorageDummyImpl::removeEnclosure(const QString& guid)
479 {
480  if (contains(guid))
481  {
482  FeedStorageDummyImplPrivate::Entry entry = d->entries[guid];
483  entry.hasEnclosure = false;
484  entry.enclosureUrl.clear();
485  entry.enclosureType.clear();
486  entry.enclosureLength = -1;
487  }
488 }
489 
490 void FeedStorageDummyImpl::enclosure(const QString& guid, bool& hasEnclosure, QString& url, QString& type, int& length) const
491 {
492  if (contains(guid))
493  {
494  FeedStorageDummyImplPrivate::Entry entry = d->entries[guid];
495  hasEnclosure = entry.hasEnclosure;
496  url = entry.enclosureUrl;
497  type = entry.enclosureType;
498  length = entry.enclosureLength;
499  }
500  else
501  {
502  hasEnclosure = false;
503  url.clear();
504  type.clear();
505  length = -1;
506  }
507 }
508 
509 } // namespace Backend
510 } // namespace Akregator
Akregator::Backend::FeedStorage::hash
virtual uint hash(const QString &guid) const =0
Akregator::Backend::FeedStorageDummyImpl::setCommentsLink
virtual void setCommentsLink(const QString &guid, const QString &commentsLink)
Definition: feedstoragedummyimpl.cpp:328
Akregator::Backend::FeedStorageDummyImpl::setEnclosure
virtual void setEnclosure(const QString &guid, const QString &url, const QString &type, int length)
Definition: feedstoragedummyimpl.cpp:466
Akregator::Backend::FeedStorage::tags
virtual QStringList tags(const QString &guid=QString()) const =0
returns the tags of a given article.
Akregator::Backend::FeedStorage::articles
virtual QStringList articles(const QString &tagID=QString()) const =0
returns the guids of all articles in this storage.
Akregator::Backend::FeedStorage::status
virtual int status(const QString &guid) const =0
Akregator::Backend::FeedStorageDummyImpl::setTitle
virtual void setTitle(const QString &guid, const QString &title)
Definition: feedstoragedummyimpl.cpp:316
Akregator::Backend::FeedStorageDummyImpl::guidIsHash
virtual bool guidIsHash(const QString &guid) const
Definition: feedstoragedummyimpl.cpp:188
Akregator::Backend::FeedStorageDummyImpl::rollback
virtual void rollback()
Definition: feedstoragedummyimpl.cpp:105
Akregator::Backend::FeedStorage::guidIsHash
virtual bool guidIsHash(const QString &guid) const =0
QMap
Akregator::Backend::FeedStorage::unread
virtual int unread() const =0
uint
unsigned int uint
Definition: article.h:41
Akregator::Backend::FeedStorageDummyImpl::link
virtual QString link(const QString &guid) const
Definition: feedstoragedummyimpl.cpp:240
Akregator::Backend::FeedStorageDummyImpl::setDescription
virtual void setDescription(const QString &guid, const QString &description)
Definition: feedstoragedummyimpl.cpp:322
Akregator::Backend::FeedStorageDummyImpl::deleteArticle
virtual void deleteArticle(const QString &guid)
Definition: feedstoragedummyimpl.cpp:167
Akregator::Backend::FeedStorageDummyImpl::setGuidIsHash
virtual void setGuidIsHash(const QString &guid, bool isHash)
Definition: feedstoragedummyimpl.cpp:298
Akregator::Backend::FeedStorageDummyImpl::tags
virtual QStringList tags(const QString &guid=QString()) const
returns the tags of a given article.
Definition: feedstoragedummyimpl.cpp:417
feed.h
Akregator::Backend::FeedStorageDummyImpl::removeTag
virtual void removeTag(const QString &guid, const QString &tag)
Definition: feedstoragedummyimpl.cpp:406
QString::isNull
bool isNull() const
Akregator::Backend::FeedStorageDummyImpl::addTag
virtual void addTag(const QString &guid, const QString &tag)
Definition: feedstoragedummyimpl.cpp:372
QString::clear
void clear()
Akregator::Backend::FeedStorage::content
virtual QString content(const QString &guid) const =0
Akregator::Backend::FeedStorageDummyImpl::setAuthorUri
void setAuthorUri(const QString &guid, const QString &authorUri)
Definition: feedstoragedummyimpl.cpp:347
Akregator::Backend::FeedStorageDummyImpl::setHash
virtual void setHash(const QString &guid, uint hash)
Definition: feedstoragedummyimpl.cpp:310
Akregator::Backend::FeedStorageDummyImpl::enclosure
virtual void enclosure(const QString &guid, bool &hasEnclosure, QString &url, QString &type, int &length) const
Definition: feedstoragedummyimpl.cpp:490
Akregator::Backend::FeedStorage::title
virtual QString title(const QString &guid) const =0
Akregator::Backend::FeedStorageDummyImpl::setContent
virtual void setContent(const QString &guid, const QString &content)
Definition: feedstoragedummyimpl.cpp:335
Akregator::Backend::FeedStorage::comments
virtual int comments(const QString &guid) const =0
QHash< QString, Entry >
feedstoragedummyimpl.h
Akregator::Backend::FeedStorageDummyImpl::setPubDate
virtual void setPubDate(const QString &guid, uint pubdate)
Definition: feedstoragedummyimpl.cpp:292
Akregator::Backend::FeedStorageDummyImpl::~FeedStorageDummyImpl
virtual ~FeedStorageDummyImpl()
Definition: feedstoragedummyimpl.cpp:96
storagedummyimpl.h
Akregator::Backend::FeedStorage
Definition: feedstorage.h:66
Akregator::Backend::FeedStorageDummyImpl::description
virtual QString description(const QString &guid) const
Definition: feedstoragedummyimpl.cpp:266
Akregator::Backend::FeedStorageDummyImpl::status
virtual int status(const QString &guid) const
Definition: feedstoragedummyimpl.cpp:250
Akregator::Backend::FeedStorageDummyImpl::commit
virtual void commit()
Definition: feedstoragedummyimpl.cpp:101
Akregator::Backend::FeedStorageDummyImpl::categories
virtual QList< Category > categories(const QString &guid=QString()) const
Definition: feedstoragedummyimpl.cpp:397
Akregator::Backend::FeedStorageDummyImpl::authorUri
virtual QString authorUri(const QString &guid) const
Definition: feedstoragedummyimpl.cpp:281
Akregator::Backend::FeedStorageDummyImpl::lastFetch
virtual int lastFetch() const
Definition: feedstoragedummyimpl.cpp:133
QString
QList
Definition: article.h:41
Akregator::Backend::FeedStorageDummyImpl::title
virtual QString title(const QString &guid) const
Definition: feedstoragedummyimpl.cpp:261
main
int main(int argc, char **argv)
Definition: akregatorstorageexporter.cpp:334
Akregator::Backend::FeedStorageDummyImpl::guidIsPermaLink
virtual bool guidIsPermaLink(const QString &guid) const
Definition: feedstoragedummyimpl.cpp:193
Akregator::Backend::FeedStorageDummyImpl::content
virtual QString content(const QString &guid) const
Definition: feedstoragedummyimpl.cpp:271
Akregator::Backend::FeedStorageDummyImpl::pubDate
virtual uint pubDate(const QString &guid) const
Definition: feedstoragedummyimpl.cpp:245
QStringList
Akregator::Backend::FeedStorage::pubDate
virtual uint pubDate(const QString &guid) const =0
Akregator::Backend::FeedStorage::guidIsPermaLink
virtual bool guidIsPermaLink(const QString &guid) const =0
Akregator::Backend::FeedStorageDummyImpl::FeedStorageDummyImpl
FeedStorageDummyImpl(const QString &url, StorageDummyImpl *main)
Definition: feedstoragedummyimpl.cpp:90
Akregator::Backend::FeedStorageDummyImpl::authorName
virtual QString authorName(const QString &guid) const
Definition: feedstoragedummyimpl.cpp:276
Akregator::Backend::FeedStorageDummyImpl::setLink
virtual void setLink(const QString &guid, const QString &link)
Definition: feedstoragedummyimpl.cpp:304
Akregator::Backend::FeedStorageDummyImpl::setGuidIsPermaLink
virtual void setGuidIsPermaLink(const QString &guid, bool isPermaLink)
Definition: feedstoragedummyimpl.cpp:366
Akregator::Backend::StorageDummyImpl
Metakit implementation of Storage interface.
Definition: storagedummyimpl.h:37
Akregator::Backend::FeedStorage::totalCount
virtual int totalCount() const =0
Akregator::Backend::FeedStorageDummyImpl::copyArticle
virtual void copyArticle(const QString &guid, FeedStorage *source)
reads an article from another storage and adds it to this storage
Definition: feedstoragedummyimpl.cpp:437
Akregator::Backend::FeedStorageDummyImpl::commentsLink
virtual QString commentsLink(const QString &guid) const
Definition: feedstoragedummyimpl.cpp:183
Akregator::Backend::FeedStorageDummyImpl::setComments
virtual void setComments(const QString &guid, int comments)
Definition: feedstoragedummyimpl.cpp:359
Akregator::Backend::FeedStorageDummyImpl::close
virtual void close()
Definition: feedstoragedummyimpl.cpp:109
Akregator::Backend::FeedStorageDummyImpl::addCategory
virtual void addCategory(const QString &guid, const Category &category)
Definition: feedstoragedummyimpl.cpp:385
Akregator::Backend::FeedStorageDummyImpl::setAuthorName
void setAuthorName(const QString &guid, const QString &authorName)
Definition: feedstoragedummyimpl.cpp:341
Akregator::Backend::FeedStorageDummyImpl::hash
virtual uint hash(const QString &guid) const
Definition: feedstoragedummyimpl.cpp:198
Akregator::Backend::FeedStorageDummyImpl::setAuthorEMail
void setAuthorEMail(const QString &guid, const QString &authorEMail)
Definition: feedstoragedummyimpl.cpp:353
Akregator::Backend::FeedStorage::lastFetch
virtual int lastFetch() const =0
QList::ConstIterator
typedef ConstIterator
Akregator::Backend::FeedStorageDummyImpl::unread
virtual int unread() const
Definition: feedstoragedummyimpl.cpp:113
Akregator::Backend::FeedStorageDummyImpl::comments
virtual int comments(const QString &guid) const
Definition: feedstoragedummyimpl.cpp:177
Akregator::Backend::FeedStorage::commentsLink
virtual QString commentsLink(const QString &guid) const =0
Akregator::Backend::FeedStorageDummyImpl::clear
virtual void clear()
deletes all articles from the archive
Definition: feedstoragedummyimpl.cpp:459
Akregator::Backend::FeedStorageDummyImpl::setUnread
virtual void setUnread(int unread)
Definition: feedstoragedummyimpl.cpp:118
Akregator::Backend::FeedStorageDummyImpl::convertOldArchive
virtual void convertOldArchive()
Definition: feedstoragedummyimpl.cpp:86
Akregator::Backend::FeedStorageDummyImpl::add
virtual void add(FeedStorage *source)
Appends all articles from another storage.
Definition: feedstoragedummyimpl.cpp:427
Akregator::Backend::FeedStorage::link
virtual QString link(const QString &guid) const =0
Akregator::Backend::FeedStorageDummyImpl::removeEnclosure
virtual void removeEnclosure(const QString &guid)
Definition: feedstoragedummyimpl.cpp:478
Akregator::Backend::FeedStorageDummyImpl::totalCount
virtual int totalCount() const
Definition: feedstoragedummyimpl.cpp:123
QList::constEnd
const_iterator constEnd() const
QList::constBegin
const_iterator constBegin() const
Akregator::Backend::FeedStorageDummyImpl::setStatus
virtual void setStatus(const QString &guid, int status)
Definition: feedstoragedummyimpl.cpp:255
Akregator::Backend::FeedStorageDummyImpl::authorEMail
virtual QString authorEMail(const QString &guid) const
Definition: feedstoragedummyimpl.cpp:286
Akregator::Backend::Category
a convenience class to handle categories in the backend
Definition: feedstorage.h:38
Akregator::Backend::FeedStorageDummyImpl::setDeleted
virtual void setDeleted(const QString &guid)
Definition: feedstoragedummyimpl.cpp:204
Akregator::Backend::FeedStorageDummyImpl::setLastFetch
virtual void setLastFetch(int lastFetch)
Definition: feedstoragedummyimpl.cpp:138
Akregator::Backend::FeedStorageDummyImpl::addEntry
virtual void addEntry(const QString &guid)
Definition: feedstoragedummyimpl.cpp:153
Akregator::Backend::FeedStorage::description
virtual QString description(const QString &guid) const =0
Akregator::Backend::FeedStorageDummyImpl::contains
virtual bool contains(const QString &guid) const
Definition: feedstoragedummyimpl.cpp:162
Akregator::Backend::FeedStorageDummyImpl::articles
virtual QStringList articles(const QString &tag=QString()) const
returns the guids of all articles in this storage.
Definition: feedstoragedummyimpl.cpp:143
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

akregator

Skip menu "akregator"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer
  • pimprint

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal