• 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
storagedummyimpl.h
Go to the documentation of this file.
1 /*
2  This file is part of Akregator.
3 
4  Copyright (C) 2005 Stanislav Karchebny <Stanislav.Karchebny@kdemail.net>
5  2005 Frank Osterfeld <osterfeld@kde.org>
6 
7  This program is free software; you can redistribute it and/or modify
8  it under the terms of the GNU General Public License as published by
9  the Free Software Foundation; either version 2 of the License, or
10  (at your option) any later version.
11 
12  This program is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with this program; if not, write to the Free Software
19  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 
21  As a special exception, permission is given to link this program
22  with any edition of Qt, and distribute the resulting executable,
23  without including the source code for Qt in the source distribution.
24 */
25 
26 #ifndef AKREGATOR_STORAGEDUMMYIMPL_H
27 #define AKREGATOR_STORAGEDUMMYIMPL_H
28 
29 #include "storage.h"
30 
31 namespace Akregator {
32 namespace Backend {
33 
37 class StorageDummyImpl : public Storage
38 {
39  Q_OBJECT
40  public:
41 
42  StorageDummyImpl();
43  StorageDummyImpl(const StorageDummyImpl&);
44  StorageDummyImpl &operator =(const StorageDummyImpl&);
45  ~StorageDummyImpl();
46  void initialize(const QStringList& params);
51  bool open(bool autoCommit = false);
52 
57  bool commit();
58 
63  bool rollback();
64 
69  bool close();
70 
74  FeedStorage* archiveFor(const QString &url);
75  const FeedStorage* archiveFor(const QString &url) const;
76  bool autoCommit() const;
77  int unreadFor(const QString &url) const;
78  void setUnreadFor(const QString &url, int unread);
79  int totalCountFor(const QString &url) const;
80  void setTotalCountFor(const QString &url, int total);
81  int lastFetchFor(const QString& url) const;
82  void setLastFetchFor(const QString& url, int lastFetch);
83  QStringList feeds() const;
84 
85  void storeFeedList(const QString& opmlStr);
86  QString restoreFeedList() const;
87 
88  void storeTagSet(const QString& xmlStr);
89  QString restoreTagSet() const;
90 
94  void add(Storage* source);
95 
97  void clear();
98 
99  protected slots:
100  void slotCommit();
101 
102  private:
103  class StorageDummyImplPrivate;
104  StorageDummyImplPrivate *d;
105 };
106 
107 } // namespace Backend
108 } // namespace Akregator
109 
110 #endif // AKREGATOR_STORAGEDUMMYIMPL_H
Akregator::Backend::StorageDummyImpl::archiveFor
FeedStorage * archiveFor(const QString &url)
Definition: storagedummyimpl.cpp:144
Akregator::Backend::StorageDummyImpl::setLastFetchFor
void setLastFetchFor(const QString &url, int lastFetch)
Definition: storagedummyimpl.cpp:132
Akregator::Backend::StorageDummyImpl::restoreTagSet
QString restoreTagSet() const
Definition: storagedummyimpl.cpp:200
Akregator::Backend::StorageDummyImpl::initialize
void initialize(const QStringList &params)
initializes the storage object with given parameters
Definition: storagedummyimpl.cpp:69
Akregator::Backend::StorageDummyImpl::setTotalCountFor
void setTotalCountFor(const QString &url, int total)
Definition: storagedummyimpl.cpp:119
Akregator::Backend::StorageDummyImpl::storeTagSet
void storeTagSet(const QString &xmlStr)
Definition: storagedummyimpl.cpp:195
Akregator::Backend::StorageDummyImpl::slotCommit
void slotCommit()
Definition: storagedummyimpl.cpp:140
Akregator::Backend::Storage
Storage is the main interface to the article archive.
Definition: storage.h:43
Akregator::Backend::StorageDummyImpl::rollback
bool rollback()
Rollback changes made in feeds and articles, reverting to last committed values.
Definition: storagedummyimpl.cpp:96
Akregator::Backend::StorageDummyImpl::close
bool close()
Closes storage, freeing all allocated resources.
Definition: storagedummyimpl.cpp:81
Akregator::Backend::StorageDummyImpl::storeFeedList
void storeFeedList(const QString &opmlStr)
stores the feed list in the storage backend.
Definition: storagedummyimpl.cpp:185
Akregator::Backend::StorageDummyImpl::clear
void clear()
deletes all feed storages in this archive
Definition: storagedummyimpl.cpp:175
Akregator::Backend::StorageDummyImpl::commit
bool commit()
Commit changes made in feeds and articles, making them persistent.
Definition: storagedummyimpl.cpp:91
Akregator::Backend::FeedStorage
Definition: feedstorage.h:66
QString
Akregator::Backend::StorageDummyImpl::operator=
StorageDummyImpl & operator=(const StorageDummyImpl &)
storage.h
Akregator::Backend::StorageDummyImpl::unreadFor
int unreadFor(const QString &url) const
Definition: storagedummyimpl.cpp:101
QStringList
Akregator::Backend::StorageDummyImpl
Metakit implementation of Storage interface.
Definition: storagedummyimpl.h:37
Akregator::Backend::StorageDummyImpl::setUnreadFor
void setUnreadFor(const QString &url, int unread)
Definition: storagedummyimpl.cpp:106
Akregator::Backend::StorageDummyImpl::feeds
QStringList feeds() const
returns a list of all feeds (URLs) stored in this archive
Definition: storagedummyimpl.cpp:160
Akregator::Backend::StorageDummyImpl::StorageDummyImpl
StorageDummyImpl()
Definition: storagedummyimpl.cpp:61
Akregator::Backend::StorageDummyImpl::~StorageDummyImpl
~StorageDummyImpl()
Definition: storagedummyimpl.cpp:65
Akregator::Backend::StorageDummyImpl::autoCommit
bool autoCommit() const
Definition: storagedummyimpl.cpp:76
Akregator::Backend::StorageDummyImpl::lastFetchFor
int lastFetchFor(const QString &url) const
Definition: storagedummyimpl.cpp:127
Akregator::Backend::StorageDummyImpl::restoreFeedList
QString restoreFeedList() const
Definition: storagedummyimpl.cpp:190
Akregator::Backend::StorageDummyImpl::add
void add(Storage *source)
adds all feed storages from a source to this storage existing articles are replaced ...
Definition: storagedummyimpl.cpp:165
Akregator::Backend::StorageDummyImpl::totalCountFor
int totalCountFor(const QString &url) const
Definition: storagedummyimpl.cpp:114
Akregator::Backend::StorageDummyImpl::open
bool open(bool autoCommit=false)
Open storage and prepare it for work.
Definition: storagedummyimpl.cpp:71
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