Revert previous commit, was incorrect
[amarok.git] / src / servicebrowser / shoutcast / ShoutcastService.h
blob184a2ba459ab7e7b382a8c2a6d29f5dc3ef57a27
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 SHOUTCASTSERVICE_H
21 #define SHOUTCASTSERVICE_H
23 #include "servicebase.h"
25 #include "ShoutcastServiceCollection.h"
26 #include "servicemetabase.h"
29 class ShoutcastServiceFactory: public ServiceFactory
31 Q_OBJECT
33 public:
34 ShoutcastServiceFactory() {}
35 virtual ~ShoutcastServiceFactory() {}
37 virtual void init();
38 virtual QString name();
39 virtual KPluginInfo info();
40 virtual KConfigGroup config();
43 /**
44 A service for showing the shoutcast directory of online radio stations. Based on the shoutcast directory in the 1.4 series by
46 @author Nikolaj Hald Nielsen <nhnFreespirit@gmail.com>
48 class ShoutcastService : public ServiceBase
51 Q_OBJECT
53 public:
54 ShoutcastService( const char *name );
56 ~ShoutcastService();
58 void polish();
61 private:
63 ShoutcastServiceCollection * m_collection;
64 QString m_tempFileName;
65 KIO::StoredTransferJob * m_storedTransferJob;
69 #endif