2012-05-30 01:32:34 +02:00
|
|
|
/* This file is part of Clementine.
|
|
|
|
Copyright 2012, David Sansome <me@davidsansome.com>
|
|
|
|
|
|
|
|
Clementine 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.
|
|
|
|
|
|
|
|
Clementine 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 Clementine. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2012-05-30 01:31:27 +02:00
|
|
|
#ifndef SONGKICKCONCERTS_H
|
|
|
|
#define SONGKICKCONCERTS_H
|
|
|
|
|
2012-05-30 22:30:02 +02:00
|
|
|
#include "core/network.h"
|
2012-06-20 16:49:41 +02:00
|
|
|
#include "core/override.h"
|
2014-12-18 23:35:21 +01:00
|
|
|
#include "internet/core/geolocator.h"
|
2020-09-18 16:15:19 +02:00
|
|
|
#include "songinfoprovider.h"
|
2012-05-30 22:30:02 +02:00
|
|
|
|
2012-05-30 01:31:27 +02:00
|
|
|
class QNetworkReply;
|
2012-06-04 14:40:08 +02:00
|
|
|
class SongInfoTextView;
|
2012-05-30 01:31:27 +02:00
|
|
|
|
|
|
|
class SongkickConcerts : public SongInfoProvider {
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
SongkickConcerts();
|
2012-06-20 16:49:41 +02:00
|
|
|
void FetchInfo(int id, const Song& metadata) OVERRIDE;
|
2012-05-30 01:31:27 +02:00
|
|
|
|
|
|
|
private slots:
|
|
|
|
void ArtistSearchFinished(QNetworkReply* reply, int id);
|
2012-05-30 22:30:02 +02:00
|
|
|
void CalendarRequestFinished(QNetworkReply* reply, int id);
|
2012-06-20 14:12:37 +02:00
|
|
|
void GeolocateFinished(Geolocator::LatLng latlng);
|
2012-05-30 01:31:27 +02:00
|
|
|
|
|
|
|
private:
|
|
|
|
void FetchSongkickCalendar(const QString& artist_id, int id);
|
|
|
|
|
2012-05-30 22:30:02 +02:00
|
|
|
NetworkAccessManager network_;
|
2012-06-20 14:12:37 +02:00
|
|
|
Geolocator::LatLng latlng_;
|
2012-05-30 01:31:27 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|