akregator/src

Akregator::Backend::StorageDummyImpl Class Reference

#include <storagedummyimpl.h>

Inheritance diagram for Akregator::Backend::StorageDummyImpl:
Akregator::Backend::Storage

Public Member Functions

 StorageDummyImpl (const StorageDummyImpl &)
StorageDummyImploperator= (const StorageDummyImpl &)
virtual void initialize (const TQStringList &params)
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 StoragegetInstance ()
static void setInstance (Storage *instance)

Detailed Description

Metakit implementation of Storage interface.

Definition at line 37 of file storagedummyimpl.h.

Member Function Documentation

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.

FeedStorage * Akregator::Backend::StorageDummyImpl::archiveFor ( const TQString &  url)
virtual
Returns
Article archive for feed at given url.

Implements Akregator::Backend::Storage.

Definition at line 144 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.

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.

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.

TQStringList 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::initialize ( const TQStringList &  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::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.

void Akregator::Backend::StorageDummyImpl::storeFeedList ( const TQString &  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
opmlStrthe 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: