akregator/src
storagedummyimpl.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #ifndef AKREGATOR_STORAGEDUMMYIMPL_H
00027 #define AKREGATOR_STORAGEDUMMYIMPL_H
00028
00029 #include "storage.h"
00030
00031 namespace Akregator {
00032 namespace Backend {
00033
00037 class StorageDummyImpl : public Storage
00038 {
00039 Q_OBJECT
00040 public:
00041
00042 StorageDummyImpl();
00043 StorageDummyImpl(const StorageDummyImpl&);
00044 StorageDummyImpl &operator =(const StorageDummyImpl&);
00045 virtual ~StorageDummyImpl();
00046 virtual void initialize(const QStringList& params);
00051 virtual bool open(bool autoCommit = false);
00052
00057 virtual bool commit();
00058
00063 virtual bool rollback();
00064
00069 virtual bool close();
00070
00074 virtual FeedStorage* archiveFor(const QString &url);
00075 virtual bool autoCommit() const;
00076 virtual int unreadFor(const QString &url);
00077 virtual void setUnreadFor(const QString &url, int unread);
00078 virtual int totalCountFor(const QString &url);
00079 virtual void setTotalCountFor(const QString &url, int total);
00080 virtual int lastFetchFor(const QString& url);
00081 virtual void setLastFetchFor(const QString& url, int lastFetch);
00082 virtual QStringList feeds() const;
00083
00084 virtual void storeFeedList(const QString& opmlStr);
00085 virtual QString restoreFeedList() const;
00086
00087 virtual void storeTagSet(const QString& xmlStr);
00088 virtual QString restoreTagSet() const;
00089
00093 virtual void add(Storage* source);
00094
00096 virtual void clear();
00097
00098 protected slots:
00099 virtual void slotCommit();
00100
00101 private:
00102 class StorageDummyImplPrivate;
00103 StorageDummyImplPrivate *d;
00104 };
00105
00106 }
00107 }
00108
00109 #endif // STORAGEDummyIMPL_H
|