Turn the Magnatune store into a plugin, and in the process, export a bunch of stuff...
[amarok.git] / src / servicebrowser / infoparserbase.h
blobc4b2bf3a930abd11b97f95bc5dfe3ec8dfe82dbe
1 /***************************************************************************
2 * Copyright (c) 2007 Nikolaj Hald Nielsen <nhnFreespirit@gmail.com> *
3 * *
4 * This program is free software; you can redistribute it and/or modify *
5 * it under the terms of the GNU General Public License as published by *
6 * the Free Software Foundation; either version 2 of the License, or *
7 * (at your option) any later version. *
8 * *
9 * This program is distributed in the hope that it will be useful, *
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
12 * GNU General Public License for more details. *
13 * *
14 * You should have received a copy of the GNU General Public License *
15 * along with this program; if not, write to the *
16 * Free Software Foundation, Inc., *
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
18 ***************************************************************************/
20 #ifndef INFOPARSERBASE_H
21 #define INFOPARSERBASE_H
23 #include "amarok_export.h"
24 #include "Meta.h"
26 #include <QObject>
28 /**
29 Abstract base class for info parsers
31 @author Nikolaj Hald Nielsen <nhnFreespirit@gmail.com>
33 class AMAROK_EXPORT InfoParserBase : public QObject{
34 Q_OBJECT
36 public:
38 InfoParserBase();
40 /**
41 * Fetches info about artist and emits infoReady( Qstring )
42 * with a ready to show html page when the info is ready
43 * @param artist The artist to get info about
45 virtual void getInfo( Meta::ArtistPtr artist ) = 0;
47 /**
48 * Overloaded function
49 * Fetches info about album and emits infoReady( Qstring )
50 * with a ready to show html page when the info is ready
51 * @param url The album to get info about
53 virtual void getInfo( Meta::AlbumPtr album ) = 0;
56 /**
57 * Overloaded function
58 * Fetches info about track and emits infoReady( Qstring )
59 * with a ready to show html page when the info is ready
60 * @param url The track to get info about
62 virtual void getInfo( Meta::TrackPtr track ) = 0;
64 signals:
66 void info( QString );
72 #endif