1
/* === This file is part of Tomahawk Player - <http://tomahawk-player.org> ===
3
* Copyright 2010-2011, Hugo Lindström <hugolm84@gmail.com>
4
* Copyright 2010-2011, Jeff Mitchell <jeff@tomahawk-player.org>
6
* Tomahawk is free software: you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation, either version 3 of the License, or
9
* (at your option) any later version.
11
* Tomahawk is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public License
17
* along with Tomahawk. If not, see <http://www.gnu.org/licenses/>.
23
#include "infoplugins/InfoPluginDllMacro.h"
24
#include "infosystem/InfoSystem.h"
25
#include "infosystem/InfoSystemWorker.h"
26
#include <QNetworkReply>
37
class INFOPLUGINDLLEXPORT HypemPlugin : public InfoPlugin
40
Q_INTERFACES( Tomahawk::InfoSystem::InfoPlugin )
44
virtual ~HypemPlugin();
53
void setChartType( ChartType type ) { m_chartType = type; }
54
ChartType chartType() const { return m_chartType; }
62
virtual void getInfo( Tomahawk::InfoSystem::InfoRequestData requestData );
63
virtual void notInCacheSlot( Tomahawk::InfoSystem::InfoStringHash criteria, Tomahawk::InfoSystem::InfoRequestData requestData );
64
virtual void pushInfo( Tomahawk::InfoSystem::InfoPushData pushData )
71
void fetchChart( Tomahawk::InfoSystem::InfoRequestData requestData );
72
void fetchChartCapabilities( Tomahawk::InfoSystem::InfoRequestData requestData );
73
void dataError( Tomahawk::InfoSystem::InfoRequestData requestData );
75
QVariantList m_chartResources;
76
QList<InfoStringHash> m_charts;
79
ChartType m_chartType;
80
QVariantMap m_allChartsMap;
82
QVariantList m_popularTypes;
83
QVariantList m_trackTypes;
84
QVariantList m_byTagTypes;
87
uint m_chartsFetchJobs;
88
QList< InfoRequestData > m_cachedRequests;
90
QHash< QString, QString > m_cachedCountries;
97
#endif // HYPEMPLUGIN_H