~ubuntu-branches/ubuntu/natty/newsbeuter/natty

« back to all changes in this revision

Viewing changes to include/controller.h

  • Committer: Bazaar Package Importer
  • Author(s): Nico Golde
  • Date: 2010-03-23 19:09:18 UTC
  • mfrom: (4.1.10 sid)
  • Revision ID: james.westby@ubuntu.com-20100323190918-o3mwdwl3v4li449s
Tags: 2.2-2
Do not cleanup deleted items uppon quitting so they will be
reloaded and marked as new next time (Closes: #574665).

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
#include <filtercontainer.h>
9
9
#include <colormanager.h>
10
10
#include <regexmanager.h>
 
11
#include <remote_api.h>
11
12
#include <libxml/tree.h>
12
13
 
13
14
namespace newsbeuter {
43
44
                        void update_feedlist();
44
45
                        void update_visible_feeds();
45
46
                        void mark_all_read(unsigned int pos);
 
47
                        void mark_article_read(const std::string& guid, bool read);
46
48
                        void catchup_all();
47
49
                        inline void catchup_all(std::tr1::shared_ptr<rss_feed> feed) { rsscache->catchup_all(feed); }
48
50
                        inline bool get_refresh_on_start() { return refresh_on_start; }
54
56
                        void reload_urls_file();
55
57
                        void edit_urls_file();
56
58
 
57
 
                        inline std::vector<std::tr1::shared_ptr<rss_feed> >& get_all_feeds() { return feeds; }
 
59
                        std::vector<std::tr1::shared_ptr<rss_feed> > get_all_feeds();
58
60
 
59
61
                        inline filtercontainer& get_filters() { return filters; }
60
62
 
77
79
                        void dump_config(const std::string& filename);
78
80
 
79
81
                        void sort_feeds();
 
82
 
 
83
                        void update_flags(std::tr1::shared_ptr<rss_item> item);
80
84
                private:
81
85
                        void usage(char * argv0);
82
86
                        void version_information(const char * argv0, unsigned int level);
114
118
                        configparser cfgparser;
115
119
                        colormanager colorman;
116
120
                        regexmanager rxman;
 
121
                        remote_api * api;
 
122
                        mutex feeds_mutex;
117
123
        };
118
124
 
119
125
}