Mixxx

/home/maxime/Projets/Mixxx/1.10/mixxx/src/library/featuredartistswebview.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                           promotrackswebview.h
00003                              -------------------
00004     begin                : Jan 2010
00005     copyright            : (C) 2010 Albert Santoni
00006     email                : alberts@mixxx.org
00007 ***************************************************************************/
00008 
00009 /***************************************************************************
00010 *                                                                         *
00011 *   This program is free software; you can redistribute it and/or modify  *
00012 *   it under the terms of the GNU General Public License as published by  *
00013 *   the Free Software Foundation; either version 2 of the License, or     *
00014 *   (at your option) any later version.                                   *
00015 *                                                                         *
00016 ***************************************************************************/
00017 
00018 #ifndef __FEATUREDARTISTSWEBVIEW_H_
00019 #define __FEATUREDARTISTSWEBVIEW_H_
00020 
00021 #include <QWebView>
00022 #include <QUrl>
00023 #include "trackinfoobject.h"
00024 #include "library/libraryview.h"
00025 
00026 class SongDownloader;
00027 
00028 class FeaturedArtistsWebView : public QWebView, public LibraryView
00029 {
00030     Q_OBJECT
00031     public:
00032         FeaturedArtistsWebView(QWidget* parent, QString libraryPath,
00033                                QString remoteURL, SongDownloader* downloader);
00034         ~FeaturedArtistsWebView();
00035         virtual void setup(QDomNode node);
00036         virtual void onSearchStarting() {};
00037         virtual void onSearchCleared()  {};
00038         virtual void onSearch(const QString&) {};
00039         virtual void onShow() {};
00040         virtual QWidget* getWidgetForMIDIControl() { return this; };
00041         virtual void keyPressEvent(QKeyEvent* event);
00042 
00043     public slots:
00044         void handleClickedLink(const QUrl& url);
00045         void handleLoadFinished(bool ok);
00046         void checkWebpageLoadingProgress();
00047 
00048     signals:
00049         void loadTrack(TrackInfoObject* pTrack);
00050         void loadTrackToPlayer(TrackInfoObject* pTrack, QString group);
00051     protected:
00052         //virtual QString userAgentForUrl (const QUrl & url) const;
00053 
00054     private:
00055         QString m_sLibraryPath; 
00056         QString m_sRemoteURL; 
00057         QString m_sLocalErrorURL; 
00058         bool m_bOfflineMode; 
00059         SongDownloader* m_pSongDownloader;
00060 };
00061 
00062 
00063 #endif //__FEATUREDARTISTSWEBVIEW_H_
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines