~sebastien-amardeilh/yarock/trunk

« back to all changes in this revision

Viewing changes to src3party/libechonest/Catalog_p.h

  • Committer: sebastien-amardeilh
  • Date: 2014-03-02 08:23:30 UTC
  • Revision ID: sebastien-amardeilh@gmail.com-20140302082330-71utrfssybo3gx11
remove Echonest library

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/****************************************************************************************
2
 
 * Copyright (c) 2010 Leo Franchi <lfranchi@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 ECHONEST_CATALOG_P_H
18
 
#define ECHONEST_CATALOG_P_H
19
 
 
20
 
#include "CatalogArtist.h"
21
 
#include "CatalogSong.h"
22
 
#include "Util.h"
23
 
 
24
 
#include <QSharedData>
25
 
 
26
 
class CatalogData : public QSharedData
27
 
{
28
 
public:
29
 
    CatalogData() : total( 0 ), resolved( 0 ) {}
30
 
    CatalogData( const CatalogData& other ) : QSharedData( other ) {
31
 
        name = other.name;
32
 
        id = other.id;
33
 
        type = other.type;
34
 
        total = other.total;
35
 
        
36
 
        resolved = other.resolved;
37
 
        songs = other.songs;
38
 
        artists = other.artists;
39
 
    }
40
 
    ~CatalogData() {}
41
 
    
42
 
    // Fields we always get in a catalog object
43
 
    QString name;
44
 
    QByteArray id;
45
 
    Echonest::CatalogTypes::Type type;
46
 
    int total;
47
 
    
48
 
    // Fields we sometimes get depending on the query
49
 
    int resolved;
50
 
    // pending_tickets
51
 
    Echonest::CatalogSongs songs; // either has songs, or artists
52
 
    Echonest::CatalogArtists artists;
53
 
    
54
 
    
55
 
};
56
 
 
57
 
#endif