-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRssWidget.h
More file actions
executable file
·65 lines (42 loc) · 1.06 KB
/
RssWidget.h
File metadata and controls
executable file
·65 lines (42 loc) · 1.06 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#ifndef __RSS_WIDGET__
#define __RSS_WIDGET__
#include <QWebView>
#include <QComboBox>
#include <QProgressBar>
#include <QSplitter>
#include <QTextStream>
#include <QMap>
class RssWidget : public QSplitter
{
Q_OBJECT
public:
typedef QMap<QString,QUrl> UrlMap;
typedef QMapIterator<QString,QUrl> UrlMapIter;
RssWidget();
QUrl url(){return _rss_view->url();}
QWebPage * page(){return _rss_view->page();}
private slots:
void add_feed(){;}
void delete_feed(){;}
void update_web_view();
void update_list_box();
void set_current_rss(const QString & feed);
void back(){_rss_view->back();}
void forward(){_rss_view->forward();}
void emit_url_changed(const QUrl & url);
signals:
void urlChanged(const QUrl & url);
private:
QAction * addFeed;
QAction * deleteFeed;
protected:
//Need a list of all the rss feeds that we have
QTextStream _stdout;
QUrl _current_rss;
UrlMap _feeds;
QWebView * _rss_view;
QComboBox * _rss_list;
QProgressBar * _load_progress;
QSplitter * _top_splitter;
};
#endif //__RSS_WIDGET__