From 87b310fbe25eb5088cbecb9a4e8fe2bb71d4f0b0 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Mon, 27 Feb 2012 16:27:34 +0000 Subject: stream browser: added favorites list support git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@2644 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/General/streambrowser/streamwindow.h | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'src/plugins/General/streambrowser/streamwindow.h') diff --git a/src/plugins/General/streambrowser/streamwindow.h b/src/plugins/General/streambrowser/streamwindow.h index 12c734e7b..35844702d 100644 --- a/src/plugins/General/streambrowser/streamwindow.h +++ b/src/plugins/General/streambrowser/streamwindow.h @@ -27,6 +27,7 @@ class QNetworkAccessManager; class QNetworkReply; class QStandardItemModel; class QSortFilterProxyModel; +class QMenu; /** @author Ilya Kotov @@ -44,16 +45,23 @@ private slots: void on_updatePushButton_clicked(); void on_addPushButton_clicked(); void on_filterLineEdit_textChanged(const QString &text); + void execIceCastMenu(const QPoint &pos); + void execFavoritesMenu(const QPoint &pos); + void addToFavorites(); + void removeFromFavorites(); private: void closeEvent(QCloseEvent *); - void readIceCast(QIODevice *input); + void readXml(QIODevice *input, QStandardItemModel *model); + Ui::StreamWindow ui; QNetworkAccessManager *m_http; QNetworkReply *m_requestReply; QString m_artist, m_title; - QStandardItemModel *m_iceCastModel; - QSortFilterProxyModel *m_iceCastFilterModel; + QStandardItemModel *m_iceCastModel, *m_favoritesModel; + QSortFilterProxyModel *m_iceCastFilterModel, *m_favoritesFilterModel; + QMenu *m_iceCastMenu; + QMenu *m_favoritesMenu; }; #endif -- cgit v1.2.3-13-gbd6f