akregator/src
Akregator::Backend::StorageDummyImpl Class Reference
#include <storagedummyimpl.h>
Inheritance diagram for Akregator::Backend::StorageDummyImpl:

Detailed Description
Metakit implementation of Storage interface.
Definition at line 37 of file storagedummyimpl.h.
Public Member Functions | |
StorageDummyImpl () | |
StorageDummyImpl (const StorageDummyImpl &) | |
StorageDummyImpl & | operator= (const StorageDummyImpl &) |
virtual | ~StorageDummyImpl () |
virtual void | initialize (const QStringList ¶ms) |
virtual bool | open (bool autoCommit=false) |
virtual bool | commit () |
virtual bool | rollback () |
virtual bool | close () |
virtual FeedStorage * | archiveFor (const QString &url) |
virtual bool | autoCommit () const |
virtual int | unreadFor (const QString &url) |
virtual void | setUnreadFor (const QString &url, int unread) |
virtual int | totalCountFor (const QString &url) |
virtual void | setTotalCountFor (const QString &url, int total) |
virtual int | lastFetchFor (const QString &url) |
virtual void | setLastFetchFor (const QString &url, int lastFetch) |
virtual QStringList | feeds () const |
virtual void | storeFeedList (const QString &opmlStr) |
virtual QString | restoreFeedList () const |
virtual void | storeTagSet (const QString &xmlStr) |
virtual QString | restoreTagSet () const |
virtual void | add (Storage *source) |
virtual void | clear () |
Protected Slots | |
virtual void | slotCommit () |
Member Function Documentation
void Akregator::Backend::StorageDummyImpl::initialize | ( | const QStringList & | params | ) | [virtual] |
initializes the storage object with given parameters
Implements Akregator::Backend::Storage.
Definition at line 69 of file storagedummyimpl.cpp.
bool Akregator::Backend::StorageDummyImpl::open | ( | bool | autoCommit = false |
) | [virtual] |
Open storage and prepare it for work.
- Returns:
- true on success.
Implements Akregator::Backend::Storage.
Definition at line 71 of file storagedummyimpl.cpp.
bool Akregator::Backend::StorageDummyImpl::commit | ( | ) | [virtual] |
Commit changes made in feeds and articles, making them persistent.
- Returns:
- true on success.
Implements Akregator::Backend::Storage.
Definition at line 91 of file storagedummyimpl.cpp.
bool Akregator::Backend::StorageDummyImpl::rollback | ( | ) | [virtual] |
Rollback changes made in feeds and articles, reverting to last committed values.
- Returns:
- true on success.
Implements Akregator::Backend::Storage.
Definition at line 96 of file storagedummyimpl.cpp.
bool Akregator::Backend::StorageDummyImpl::close | ( | ) | [virtual] |
Closes storage, freeing all allocated resources.
Called from destructor, so you don't need to call it directly.
- Returns:
- true on success.
Implements Akregator::Backend::Storage.
Definition at line 81 of file storagedummyimpl.cpp.
FeedStorage * Akregator::Backend::StorageDummyImpl::archiveFor | ( | const QString & | url | ) | [virtual] |
- Returns:
- Article archive for feed at given url.
Implements Akregator::Backend::Storage.
Definition at line 144 of file storagedummyimpl.cpp.
QStringList Akregator::Backend::StorageDummyImpl::feeds | ( | ) | const [virtual] |
returns a list of all feeds (URLs) stored in this archive
Implements Akregator::Backend::Storage.
Definition at line 152 of file storagedummyimpl.cpp.
void Akregator::Backend::StorageDummyImpl::storeFeedList | ( | const QString & | opmlStr | ) | [virtual] |
stores the feed list in the storage backend.
This is a fallback for the case that the feeds.opml file gets corrupted
- Parameters:
-
opmlStr the feed list in OPML format
Implements Akregator::Backend::Storage.
Definition at line 177 of file storagedummyimpl.cpp.
void Akregator::Backend::StorageDummyImpl::add | ( | Storage * | source | ) | [virtual] |
adds all feed storages from a source to this storage existing articles are replaced
Implements Akregator::Backend::Storage.
Definition at line 157 of file storagedummyimpl.cpp.
void Akregator::Backend::StorageDummyImpl::clear | ( | ) | [virtual] |
deletes all feed storages in this archive
Implements Akregator::Backend::Storage.
Definition at line 167 of file storagedummyimpl.cpp.
The documentation for this class was generated from the following files: