IGenre.h 1.75 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
/*****************************************************************************
 * Media Library
 *****************************************************************************
 * Copyright (C) 2015 Hugo Beauzée-Luyssen, Videolabs
 *
 * Authors: Hugo Beauzée-Luyssen<hugo@beauzee.fr>
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation; either version 2.1 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program; if not, write to the Free Software Foundation,
 * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
 *****************************************************************************/

#pragma once

25
#include "IMediaLibrary.h"
26

27 28 29
namespace medialibrary
{

30 31 32 33
class IGenre
{
public:
    virtual ~IGenre() = default;
34
    virtual int64_t id() const = 0;
35
    virtual const std::string& name() const = 0;
36
    virtual uint32_t nbTracks() const = 0;
37
    virtual Query<IArtist> artists( const QueryParameters* params = nullptr ) const = 0;
38 39
    virtual Query<IArtist> searchArtist( const std::string& pattern,
                                         const QueryParameters* params = nullptr ) const = 0;
40 41
    virtual Query<IMedia> tracks( const QueryParameters* params = nullptr ) const = 0;
    virtual Query<IAlbum> albums( const QueryParameters* params = nullptr ) const = 0;
42
};
43 44

}