blob: f8f056255033d77b6f1956a6e986729c7d529338 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#ifndef NEWSBEUTER_URLVIEW_FORMACTION__H
#define NEWSBEUTER_URLVIEW_FORMACTION__H
#include <formaction.h>
#include <htmlrenderer.h>
namespace newsbeuter {
class urlview_formaction : public formaction {
public:
urlview_formaction(view *, std::shared_ptr<rss_feed>& feed, std::string formstr);
virtual ~urlview_formaction();
virtual void prepare();
virtual void init();
virtual keymap_hint_entry * get_keymap_hint();
inline void set_links(const std::vector<linkpair>& l) {
links = l;
}
virtual std::string id() const {
return "urlview";
}
virtual std::string title();
virtual void handle_cmdline(const std::string& cmd);
private:
virtual void process_operation(operation op, bool automatic = false, std::vector<std::string> * args = nullptr);
std::vector<linkpair> links;
bool quit;
std::shared_ptr<rss_feed> feed;
};
}
#endif
|