Clementine-audio-player-Mac.../src/lastfmservice.h

44 lines
863 B
C
Raw Normal View History

#ifndef LASTFMSERVICE_H
#define LASTFMSERVICE_H
#include "radioservice.h"
2009-12-26 18:19:14 +01:00
class LastFMConfig;
class LastFMService : public RadioService {
2009-12-26 18:19:14 +01:00
Q_OBJECT
public:
LastFMService(QObject* parent = 0);
2009-12-26 18:19:14 +01:00
~LastFMService();
static const char* kSettingsGroup;
enum ItemType {
Type_MyRecommendations = 1000,
Type_MyRadio,
Type_MyLoved,
Type_MyNeighbourhood,
};
RadioItem* CreateRootItem(RadioItem* parent);
void LazyPopulate(RadioItem *item);
2009-12-26 18:19:14 +01:00
void Authenticate(const QString& username, const QString& password);
signals:
void AuthenticationComplete(bool success);
private slots:
void AuthenticateReplyFinished();
private:
RadioItem* CreateStationItem(ItemType type, const QString& name,
const QString& icon, RadioItem* parent);
2009-12-26 18:19:14 +01:00
private:
LastFMConfig* config_;
};
#endif // LASTFMSERVICE_H