PageRenderTime 101ms CodeModel.GetById 40ms app.highlight 2ms RepoModel.GetById 58ms app.codeStats 0ms

/thirdparty/liblastfm2/src/types/AbstractType.h

http://github.com/tomahawk-player/tomahawk
C++ Header | 43 lines | 19 code | 5 blank | 19 comment | 0 complexity | ea63da98b2c9fa366438355183d06c71 MD5 | raw file
 1/*
 2   Copyright 2010 Last.fm Ltd.
 3      - Primarily authored by Micahel Coffey and Jono Cole
 4
 5   This file is part of liblastfm.
 6
 7   liblastfm is free software: you can redistribute it and/or modify
 8   it under the terms of the GNU General Public License as published by
 9   the Free Software Foundation, either version 3 of the License, or
10   (at your option) any later version.
11
12   liblastfm is distributed in the hope that it will be useful,
13   but WITHOUT ANY WARRANTY; without even the implied warranty of
14   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15   GNU General Public License for more details.
16
17   You should have received a copy of the GNU General Public License
18   along with liblastfm.  If not, see <http://www.gnu.org/licenses/>.
19*/
20
21#ifndef ABSTRACTTYPE_H

22#define ABSTRACTTYPE_H

23
24#include <QDomElement>

25#include <QString>

26#include <QUrl>

27
28#include <lastfm/global.h>

29
30namespace lastfm
31{
32    class LASTFM_DLLEXPORT AbstractType
33    {
34    public:
35        virtual QString toString() const = 0;
36        virtual QDomElement toDomElement( QDomDocument& ) const = 0;
37        virtual QUrl www() const = 0;
38        virtual QUrl imageUrl( ImageSize size, bool square ) const = 0;
39        virtual ~AbstractType() {;}
40    };
41};
42
43#endif // ABSTRACTTYPE_H