#include <storagedummyimpl.h>
Public Member Functions | |
StorageDummyImpl (const StorageDummyImpl &) | |
StorageDummyImpl & | operator= (const StorageDummyImpl &) |
virtual void | initialize (const TQStringList ¶ms) |
virtual bool | open (bool autoCommit=false) |
virtual bool | commit () |
virtual bool | rollback () |
virtual bool | close () |
virtual FeedStorage * | archiveFor (const TQString &url) |
virtual bool | autoCommit () const |
virtual int | unreadFor (const TQString &url) |
virtual void | setUnreadFor (const TQString &url, int unread) |
virtual int | totalCountFor (const TQString &url) |
virtual void | setTotalCountFor (const TQString &url, int total) |
virtual int | lastFetchFor (const TQString &url) |
virtual void | setLastFetchFor (const TQString &url, int lastFetch) |
virtual TQStringList | feeds () const |
virtual void | storeFeedList (const TQString &opmlStr) |
virtual TQString | restoreFeedList () const |
virtual void | storeTagSet (const TQString &xmlStr) |
virtual TQString | restoreTagSet () const |
virtual void | add (Storage *source) |
virtual void | clear () |
Protected Slots | |
virtual void | slotCommit () |
Additional Inherited Members | |
Static Public Member Functions inherited from Akregator::Backend::Storage | |
static Storage * | getInstance () |
static void | setInstance (Storage *instance) |
Detailed Description
Metakit implementation of Storage interface.
Definition at line 37 of file storagedummyimpl.h.
Member Function Documentation
◆ add()
|
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.
◆ archiveFor()
|
virtual |
- Returns
- Article archive for feed at given url.
Implements Akregator::Backend::Storage.
Definition at line 144 of file storagedummyimpl.cpp.
◆ clear()
|
virtual |
deletes all feed storages in this archive
Implements Akregator::Backend::Storage.
Definition at line 167 of file storagedummyimpl.cpp.
◆ 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.
◆ 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.
◆ feeds()
|
virtual |
returns a list of all feeds (URLs) stored in this archive
Implements Akregator::Backend::Storage.
Definition at line 152 of file storagedummyimpl.cpp.
◆ initialize()
|
virtual |
initializes the storage object with given parameters
Implements Akregator::Backend::Storage.
Definition at line 69 of file storagedummyimpl.cpp.
◆ open()
|
virtual |
Open storage and prepare it for work.
- Returns
- true on success.
Implements Akregator::Backend::Storage.
Definition at line 71 of file storagedummyimpl.cpp.
◆ 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.
◆ storeFeedList()
|
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.
The documentation for this class was generated from the following files: