1
/****************************************************************************************
2
* Copyright (c) 2010 Leo Franchi <lfranchi@kde.org> *
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 *
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. *
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
****************************************************************************************/
17
#ifndef ECHONEST_CATALOG_P_H
18
#define ECHONEST_CATALOG_P_H
20
#include "CatalogArtist.h"
21
#include "CatalogSong.h"
24
#include <QSharedData>
26
class CatalogData : public QSharedData
29
CatalogData() : total( 0 ), resolved( 0 ) {}
30
CatalogData( const CatalogData& other ) : QSharedData( other ) {
36
resolved = other.resolved;
38
artists = other.artists;
42
// Fields we always get in a catalog object
45
Echonest::CatalogTypes::Type type;
48
// Fields we sometimes get depending on the query
51
Echonest::CatalogSongs songs; // either has songs, or artists
52
Echonest::CatalogArtists artists;