1 /****************************************************************************************
2  * Copyright (c) 2009 Téo Mrnjavac <teo@kde.org>                                        *
3  *                                                                                      *
4  * This program is free software; you can redistribute it and/or modify it under        *
5  * the terms of the GNU General Public License as published by the Free Software        *
6  * Foundation; either version 2 of the License, or (at your option) any later           *
7  * version.                                                                             *
8  *                                                                                      *
9  * This program is distributed in the hope that it will be useful, but WITHOUT ANY      *
10  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A      *
11  * PARTICULAR PURPOSE. See the GNU General Public License for more details.             *
12  *                                                                                      *
13  * You should have received a copy of the GNU General Public License along with         *
14  * this program.  If not, see <http://www.gnu.org/licenses/>.                           *
15  ****************************************************************************************/
16 
17 #ifndef PLAYLISTVIEWURLGENERATOR_H
18 #define PLAYLISTVIEWURLGENERATOR_H
19 
20 #include "amarok_export.h"
21 #include "amarokurls/AmarokUrl.h"
22 #include "amarokurls/AmarokUrlGenerator.h"
23 
24 namespace Playlist
25 {
26 
27 class AMAROK_EXPORT ViewUrlGenerator : public AmarokUrlGenerator
28 {
29 public:
30 
31     static ViewUrlGenerator * instance();
32 
33     QString description() override;
34     QIcon icon() override;
35     AmarokUrl createUrl() override;
36 
37 private:
38 
39     ViewUrlGenerator();
40     ~ViewUrlGenerator() override;
41 
42     static ViewUrlGenerator * s_instance;
43 };
44 
45 }
46 
47 #endif  //PLAYLISTVIEWURLGENERATOR_H
48