/src/libtomahawk/context/pages/RelatedArtistsContext.h
http://github.com/tomahawk-player/tomahawk · C Header · 69 lines · 34 code · 17 blank · 18 comment · 0 complexity · 7a640dc549da35702b8b379424c56fdb MD5 · raw file
- /* === This file is part of Tomahawk Player - <http://tomahawk-player.org> ===
- *
- * Copyright 2010-2011, Christian Muehlhaeuser <muesli@tomahawk-player.org>
- * Copyright 2010-2011, Jeff Mitchell <jeff@tomahawk-player.org>
- *
- * Tomahawk is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * Tomahawk is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with Tomahawk. If not, see <http://www.gnu.org/licenses/>.
- */
- #ifndef RELATEDARTISTSCONTEXT_H
- #define RELATEDARTISTSCONTEXT_H
- #include <QGraphicsProxyWidget>
- #include "DllMacro.h"
- #include "Artist.h"
- #include "Album.h"
- #include "Query.h"
- #include "context/ContextPage.h"
- class TreeModel;
- class TreeView;
- class DLLEXPORT RelatedArtistsContext : public Tomahawk::ContextPage
- {
- Q_OBJECT
- public:
- RelatedArtistsContext();
- ~RelatedArtistsContext();
- virtual QGraphicsWidget* widget() { return m_proxy; }
- virtual Tomahawk::playlistinterface_ptr playlistInterface() const { return Tomahawk::playlistinterface_ptr(); }
- virtual QString title() const { return tr( "Related Artists" ); }
- virtual QString description() const { return QString(); }
- virtual bool jumpToCurrentTrack() { return false; }
- public slots:
- virtual void setArtist( const Tomahawk::artist_ptr& artist );
- virtual void setAlbum( const Tomahawk::album_ptr& album );
- virtual void setQuery( const Tomahawk::query_ptr& query );
- private slots:
- void onSimilarArtistsLoaded();
- private:
- TreeView* m_relatedView;
- TreeModel* m_relatedModel;
- QGraphicsProxyWidget* m_proxy;
- Tomahawk::artist_ptr m_artist;
- };
- #endif // RELATEDARTISTSCONTEXT_H