• 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.h
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 #ifndef AKREGATOR_BACKEND_FEEDSTORAGEDUMMYIMPL_H
25 #define AKREGATOR_BACKEND_FEEDSTORAGEDUMMYIMPL_H
26 
27 #include "feedstorage.h"
28 #include <QList>
29 namespace Akregator {
30 namespace Backend {
31 
32 class StorageDummyImpl;
33 class FeedStorageDummyImpl : public FeedStorage
34 {
35  public:
36  FeedStorageDummyImpl(const QString& url, StorageDummyImpl* main);
37  virtual ~FeedStorageDummyImpl();
38 
39  virtual void add(FeedStorage* source);
40  virtual void copyArticle(const QString& guid, FeedStorage* source);
41 
42  virtual void clear();
43  virtual int unread() const;
44  virtual void setUnread(int unread);
45  virtual int totalCount() const;
46  virtual int lastFetch() const;
47  virtual void setLastFetch(int lastFetch);
48 
49  virtual QStringList articles(const QString& tag=QString()) const;
50 
51  virtual QStringList articles(const Category& cat) const;
52 
53 
54  virtual bool contains(const QString& guid) const;
55  virtual void addEntry(const QString& guid);
56  virtual void deleteArticle(const QString& guid);
57  virtual int comments(const QString& guid) const;
58  virtual QString commentsLink(const QString& guid) const;
59  virtual void setCommentsLink(const QString& guid, const QString& commentsLink);
60  virtual void setComments(const QString& guid, int comments);
61  virtual bool guidIsHash(const QString& guid) const;
62  virtual void setGuidIsHash(const QString& guid, bool isHash);
63  virtual bool guidIsPermaLink(const QString& guid) const;
64  virtual void setGuidIsPermaLink(const QString& guid, bool isPermaLink);
65  virtual uint hash(const QString& guid) const;
66  virtual void setHash(const QString& guid, uint hash);
67  virtual void setDeleted(const QString& guid);
68  virtual QString link(const QString& guid) const;
69  virtual void setLink(const QString& guid, const QString& link);
70  virtual uint pubDate(const QString& guid) const;
71  virtual void setPubDate(const QString& guid, uint pubdate);
72  virtual int status(const QString& guid) const;
73  virtual void setStatus(const QString& guid, int status);
74  virtual QString title(const QString& guid) const;
75  virtual void setTitle(const QString& guid, const QString& title);
76  virtual QString description(const QString& guid) const;
77  virtual void setDescription(const QString& guid, const QString& description);
78  virtual QString content(const QString& guid) const;
79  virtual void setContent(const QString& guid, const QString& content);
80  virtual void addTag(const QString& guid, const QString& tag);
81  virtual void removeTag(const QString& guid, const QString& tag);
82  virtual QStringList tags(const QString& guid=QString()) const;
83 
84  virtual void setEnclosure(const QString& guid, const QString& url, const QString& type, int length);
85  virtual void removeEnclosure(const QString& guid);
86  virtual void enclosure(const QString& guid, bool& hasEnclosure, QString& url, QString& type, int& length) const;
87 
88  virtual void addCategory(const QString& guid, const Category& category);
89  virtual QList<Category> categories(const QString& guid=QString()) const;
90 
91  void setAuthorName(const QString& guid, const QString& authorName);
92  void setAuthorUri(const QString& guid, const QString& authorUri);
93  void setAuthorEMail(const QString& guid, const QString& authorEMail);
94 
95  virtual QString authorName(const QString& guid) const;
96  virtual QString authorUri(const QString& guid) const;
97  virtual QString authorEMail(const QString& guid) const;
98 
99  virtual void close();
100  virtual void commit();
101  virtual void rollback();
102 
103  virtual void convertOldArchive();
104  private:
106  int findArticle(const QString& guid) const;
107  void setTotalCount(int total);
108  class FeedStorageDummyImplPrivate;
109  FeedStorageDummyImplPrivate* d;
110 };
111 
112 } // namespace Backend
113 } // namespace Akregator
114 
115 #endif // AKREGATOR_FEEDSTORAGEDUMMYIMPL_H
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::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
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
Akregator::Backend::FeedStorageDummyImpl::removeTag
virtual void removeTag(const QString &guid, const QString &tag)
Definition: feedstoragedummyimpl.cpp:406
Akregator::Backend::FeedStorageDummyImpl::addTag
virtual void addTag(const QString &guid, const QString &tag)
Definition: feedstoragedummyimpl.cpp:372
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::FeedStorageDummyImpl::setContent
virtual void setContent(const QString &guid, const QString &content)
Definition: feedstoragedummyimpl.cpp:335
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
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::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::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::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::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::FeedStorageDummyImpl::removeEnclosure
virtual void removeEnclosure(const QString &guid)
Definition: feedstoragedummyimpl.cpp:478
Akregator::Backend::FeedStorageDummyImpl::totalCount
virtual int totalCount() const
Definition: feedstoragedummyimpl.cpp:123
Akregator::Backend::FeedStorageDummyImpl::setStatus
virtual void setStatus(const QString &guid, int status)
Definition: feedstoragedummyimpl.cpp:255
feedstorage.h
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
Definition: feedstoragedummyimpl.h:33
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::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