2011-03-03 14:25:02 +01:00
|
|
|
#ifndef RSSWIDGET_H
|
|
|
|
#define RSSWIDGET_H
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
#include <QMenu>
|
2011-03-03 15:24:23 +01:00
|
|
|
#include <QPushButton>
|
|
|
|
#include <QDebug>
|
2011-03-03 14:25:02 +01:00
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class RSSWidget;
|
|
|
|
}
|
|
|
|
|
2011-03-03 15:24:23 +01:00
|
|
|
class WebView;
|
2011-03-03 14:25:02 +01:00
|
|
|
class RSSWidget : public QMenu
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2011-03-03 15:24:23 +01:00
|
|
|
explicit RSSWidget(WebView* view, QList<QPair<QString,QString> > availableRss, QWidget *parent = 0);
|
2011-03-03 14:25:02 +01:00
|
|
|
~RSSWidget();
|
|
|
|
|
|
|
|
void showAt(QWidget* _parent);
|
|
|
|
|
2011-03-03 15:24:23 +01:00
|
|
|
private slots:
|
|
|
|
void addRss();
|
|
|
|
|
2011-03-03 14:25:02 +01:00
|
|
|
private:
|
|
|
|
Ui::RSSWidget *ui;
|
|
|
|
QList<QPair<QString,QString> > m_avRss;
|
2011-03-03 15:24:23 +01:00
|
|
|
WebView* m_view;
|
2011-03-03 14:25:02 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // RSSWIDGET_H
|