Sayonara Player
src
Components
Library
GenreFetcher.h
1
/* GenreFetcher.h */
2
3
/* Copyright (C) 2011-2017 Lucio Carreras
4
*
5
* This file is part of sayonara player
6
*
7
* This program 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
* This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
19
*/
20
21
22
23
#ifndef GENREFETCHER_H
24
#define GENREFETCHER_H
25
26
#include <QObject>
27
#include "Utils/Pimpl.h"
28
#include "Utils/SetFwd.h"
29
30
class
QStringList;
31
class
MetaDataList
;
32
class
LocalLibrary
;
33
class
Genre
;
34
35
class
GenreFetcher
:
36
public
QObject
37
{
38
Q_OBJECT
39
PIMPL(
GenreFetcher
)
40
41
signals:
42
void
sig_genres_fetched();
43
void
sig_progress(
int
progress);
44
void
sig_finished();
45
46
47
public
:
48
explicit
GenreFetcher
(QObject* parent=
nullptr
);
49
~
GenreFetcher
();
50
51
SP::Set<Genre>
genres()
const
;
52
53
void
add_genre_to_md(
const
MetaDataList
& v_md,
const
Genre
& genre);
54
55
void
create_genre(
const
Genre
& genre);
56
void
delete_genre(
const
Genre
& genre);
57
void
rename_genre(
const
Genre
& old_genre,
const
Genre
& new_genre);
58
59
void
set_local_library(
LocalLibrary
* local_library);
60
61
public
slots:
62
void
reload_genres();
63
64
private
slots:
65
void
metadata_changed(
const
MetaDataList
& v_md_old,
const
MetaDataList
& v_md_new);
66
void
metadata_deleted(
const
MetaDataList
& v_md_deleted);
67
68
void
tag_edit_finished();
69
};
70
71
72
#endif // GENREFETCHER_H
LocalLibrary
Definition:
LocalLibrary.h:35
MetaDataList
The MetaDataList class.
Definition:
MetaDataList.h:38
GenreFetcher
Definition:
GenreFetcher.h:35
Genre
Definition:
Genre.h:27
SP::Set
A set structure. Inherited from std::set with some useful methods. For integer and String this set is...
Definition:
AbstractPlaylist.h:36
Generated on Fri May 25 2018 00:45:30 for Sayonara Player by
1.8.12