aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/General/scrobbler/scrobblerfactory.cpp
Commit message (Collapse)AuthorAgeFilesLines
* fixed FSF headerstrialuser022012-07-311-1/+1
| | | | git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@2845 90c681e8-e032-0410-971d-27865f9a5e38
* fixed FSF address (trunk)trialuser022012-07-311-1/+1
| | | | git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@2844 90c681e8-e032-0410-971d-27865f9a5e38
* updated yeartrialuser022012-01-191-1/+1
| | | | git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@2551 90c681e8-e032-0410-971d-27865f9a5e38
* fixed general plugin apitrialuser022011-09-131-2/+2
| | | | git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@2351 90c681e8-e032-0410-971d-27865f9a5e38
* fixed typostrialuser022011-03-031-1/+1
| | | | git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@2091 90c681e8-e032-0410-971d-27865f9a5e38
* reapplied previous patchtrialuser022010-03-111-1/+1
| | | | git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1620 90c681e8-e032-0410-971d-27865f9a5e38
* removed obsolete memberstrialuser022010-03-111-2/+2
| | | | git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1619 90c681e8-e032-0410-971d-27865f9a5e38
* removed obsolete qt macros, updated Russian translationtrialuser022009-09-191-1/+1
| | | | git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1235 90c681e8-e032-0410-971d-27865f9a5e38
* ported jack plugintrialuser022009-06-261-2/+2
| | | | git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@980 90c681e8-e032-0410-971d-27865f9a5e38
* fixed config dialog layouttrialuser022009-05-291-1/+1
| | | | git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@956 90c681e8-e032-0410-971d-27865f9a5e38
* improved scrobbler plugin, fixed libre.fm supporttrialuser022009-05-291-3/+3
| | | | git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@955 90c681e8-e032-0410-971d-27865f9a5e38
* fixed language detectiontrialuser022009-05-291-1/+1
| | | | git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@953 90c681e8-e032-0410-971d-27865f9a5e38
* some general api changestrialuser022009-01-231-0/+1
| | | | git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@755 90c681e8-e032-0410-971d-27865f9a5e38
* scrobbler plugin: now-playing notification support, new api supporttrialuser022008-12-251-1/+1
| | | | git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@707 90c681e8-e032-0410-971d-27865f9a5e38
* fixed localization supporttrialuser022008-05-151-2/+5
| | | | git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@372 90c681e8-e032-0410-971d-27865f9a5e38
* general plugin api changestrialuser022008-03-171-2/+2
| | | | git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@274 90c681e8-e032-0410-971d-27865f9a5e38
* some visibility optionstrialuser022008-03-151-0/+1
| | | | git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@267 90c681e8-e032-0410-971d-27865f9a5e38
* improved general plugin configurationtrialuser022008-02-201-3/+2
| | | | git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@252 90c681e8-e032-0410-971d-27865f9a5e38
* new directory structurevovanec2008-02-071-0/+59
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@232 90c681e8-e032-0410-971d-27865f9a5e38
ould have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ #ifndef STREAMWINDOW_H #define STREAMWINDOW_H #include <QWidget> #include <QSortFilterProxyModel> #include "ui_streamwindow.h" class QNetworkAccessManager; class QNetworkReply; class QStandardItemModel; class QSortFilterProxyModel; class QMenu; class StreamsProxyModel; /** @author Ilya Kotov <forkotov02@hotmail.ru> */ class StreamWindow : public QWidget { Q_OBJECT public: StreamWindow(QWidget *parent = 0); ~StreamWindow(); private slots: void showText(QNetworkReply *reply); 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 readXml(QIODevice *input, QStandardItemModel *model); Ui::StreamWindow ui; QNetworkAccessManager *m_http; QNetworkReply *m_requestReply; QString m_artist, m_title; QStandardItemModel *m_iceCastModel, *m_favoritesModel; QSortFilterProxyModel *m_iceCastFilterModel, *m_favoritesFilterModel; QMenu *m_iceCastMenu; QMenu *m_favoritesMenu; }; /** @author Ilya Kotov <forkotov02@hotmail.ru> */ class StreamsProxyModel: public QSortFilterProxyModel { Q_OBJECT public: StreamsProxyModel(QObject *parent) : QSortFilterProxyModel(parent){} protected: bool lessThan (const QModelIndex &left, const QModelIndex &right) const { if(left.column() == 2 && right.column() == 2) { return sourceModel()->data(left).toInt() < sourceModel()->data(right).toInt(); } return QSortFilterProxyModel::lessThan(left, right); } }; #endif