PageRenderTime 242ms CodeModel.GetById 140ms app.highlight 4ms RepoModel.GetById 97ms app.codeStats 0ms

/src/libtomahawk/infosystem/infoplugins/generic/musixmatchplugin.h

http://github.com/tomahawk-player/tomahawk
C++ Header | 71 lines | 38 code | 16 blank | 17 comment | 0 complexity | 0acdf8ba7ce2f08311402ae132a41333 MD5 | raw file
 1/* === This file is part of Tomahawk Player - <http://tomahawk-player.org> ===
 2 *
 3 *   Copyright 2010-2011, Christian Muehlhaeuser <muesli@tomahawk-player.org>
 4 *
 5 *   Tomahawk is free software: you can redistribute it and/or modify
 6 *   it under the terms of the GNU General Public License as published by
 7 *   the Free Software Foundation, either version 3 of the License, or
 8 *   (at your option) any later version.
 9 *
10 *   Tomahawk is distributed in the hope that it will be useful,
11 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
12 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 *   GNU General Public License for more details.
14 *
15 *   You should have received a copy of the GNU General Public License
16 *   along with Tomahawk. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19#ifndef MUSIXMATCHPLUGIN_H
20#define MUSIXMATCHPLUGIN_H
21
22#include "infosystem/infosystem.h"
23#include "infosystem/infosystemworker.h"
24
25class QNetworkReply;
26
27namespace Tomahawk
28{
29
30namespace InfoSystem
31{
32
33class MusixMatchPlugin : public InfoPlugin
34{
35    Q_OBJECT
36
37public:
38    MusixMatchPlugin();
39    virtual ~MusixMatchPlugin();
40
41public slots:
42    void trackSearchSlot();
43    void trackLyricsSlot();
44
45protected slots:
46    virtual void getInfo( Tomahawk::InfoSystem::InfoRequestData requestData );
47
48    virtual void pushInfo( QString caller, Tomahawk::InfoSystem::InfoType type, QVariant data )
49    {
50        Q_UNUSED( caller );
51        Q_UNUSED( type );
52        Q_UNUSED( data );
53    }
54
55virtual void notInCacheSlot( Tomahawk::InfoSystem::InfoStringHash criteria, Tomahawk::InfoSystem::InfoRequestData requestData )
56    {
57        Q_UNUSED( criteria );
58        Q_UNUSED( requestData );
59    }
60    
61private:
62    bool isValidTrackData( Tomahawk::InfoSystem::InfoRequestData requestData );
63    
64    QString m_apiKey;
65};
66
67}
68
69}
70
71#endif // MUSIXMATCHPLUGIN_H