~ubuntu-branches/ubuntu/raring/kdepim/raring-proposed

« back to all changes in this revision

Viewing changes to akregator/interfaces/storage.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2012-06-07 07:56:38 UTC
  • mfrom: (0.2.27)
  • Revision ID: package-import@ubuntu.com-20120607075638-0luhdq11z7sgvs4m
Tags: 4:4.8.80-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
class FeedStorage;
38
38
 
39
39
/** \brief Storage is the main interface to the article archive. It creates and manages FeedStorage objects handling the article list for a feed.
40
 
    
 
40
 
41
41
    An archive implementation must implement Storage, FeedStorage and StorageFactory. See mk4storage for an example.
42
42
*/
43
 
class Storage : public QObject
 
43
class Storage : public QObject //krazy:exclude=qobject
44
44
{
45
45
    public:
46
46
 
47
47
        virtual ~Storage() {}
48
48
 
49
49
        /** initializes the storage object with given parameters */
50
 
        
 
50
 
51
51
        virtual void initialize(const QStringList& params) = 0;
52
 
        
 
52
 
53
53
        /**
54
54
         * Open storage and prepare it for work.
55
55
         * @return true on success.
87
87
        virtual int lastFetchFor(const QString& url) const = 0;
88
88
        virtual void setLastFetchFor(const QString& url, int lastFetch) = 0;
89
89
 
90
 
        /** stores the feed list in the storage backend. This is a fallback for the case that the 
91
 
            feeds.opml file gets corrupted 
 
90
        /** stores the feed list in the storage backend. This is a fallback for the case that the
 
91
            feeds.opml file gets corrupted
92
92
            @param opmlStr the feed list in OPML format
93
93
         */
94
94
        virtual void storeFeedList(const QString& opmlStr) = 0;
98
98
        virtual QString restoreTagSet() const = 0;
99
99
 
100
100
        /** returns a list of all feeds (URLs) stored in this archive */
101
 
        
 
101
 
102
102
        virtual QStringList feeds() const = 0;
103
103
 
104
104
        /** adds all feed storages from a source to this storage
105
105
            existing articles are replaced
106
106
        */
107
107
        virtual void add(Storage* source) = 0;
108
 
        
 
108
 
109
109
        /** deletes all feed storages in this archive */
110
110
        virtual void clear() = 0;
111
111
};