Sayonara Player
Toggle main menu visibility
Loading...
Searching...
No Matches
src
Components
Library
GenreFetcher.h
1
/* GenreFetcher.h */
2
3
/* Copyright (C) 2011-2024 Michael Lugmair (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
#ifndef SAYONARA_PLAYER_GENREFETCHER_H
22
#define SAYONARA_PLAYER_GENREFETCHER_H
23
24
#include <QObject>
25
#include "Utils/Pimpl.h"
26
#include "Utils/SetFwd.h"
27
28
class
LocalLibrary
;
29
class
Genre
;
30
31
namespace
Tagging
32
{
33
class
Editor
;
34
class
UserOperations
;
35
class
TagReader
;
36
class
TagWriter
;
37
}
38
39
class
GenreFetcher :
40
public
QObject
41
{
42
Q_OBJECT
43
PIMPL(GenreFetcher)
44
45
signals:
46
void
sigGenresFetched();
47
void
sigProgress(
int
progress);
48
void
sigFinished();
49
50
public
:
51
GenreFetcher(
const
std::shared_ptr<Tagging::TagReader>& tagReader,
52
const
std::shared_ptr<Tagging::TagWriter>& tagWriter,
53
QObject* parent =
nullptr
);
54
~GenreFetcher()
override
;
55
56
[[nodiscard]]
Util::Set<Genre>
genres()
const
;
57
58
void
applyGenreToMetadata(
const
MetaDataList
& tracks,
const
Genre
& genre);
59
void
createGenre(
const
Genre
& genre);
60
void
deleteGenres(
const
Util::Set<Genre>
& genres);
61
void
renameGenre(
const
Genre
& oldGenre,
const
Genre
& newGenre);
62
63
void
setLocalLibrary(
LocalLibrary
* localLibrary);
64
65
public
slots:
// NOLINT(*-redundant-access-specifiers)
66
void
reloadGenres();
67
68
private
slots:
69
void
taggingOperationsFinished();
70
71
private
:
// NOLINT(*-redundant-access-specifiers)
72
Tagging::UserOperations
* initTagging();
73
};
74
75
#endif
// SAYONARA_PLAYER_GENREFETCHER_H
Genre
Definition
Genre.h:31
LocalLibrary
Definition
LocalLibrary.h:38
MetaDataList
Definition
MetaDataList.h:34
Tagging::Editor
Definition
Editor.h:37
Tagging::TagReader
Definition
TagReader.h:34
Tagging::TagWriter
Definition
TagWriter.h:33
Tagging::UserOperations
Definition
UserTaggingOperations.h:36
Util::Set
A set structure. Inherited from std::set with some useful methods. For integer and String this set is...
Definition
Set.h:37
Tagging
The GUI_TagEdit class.
Definition
Engine.h:33
Generated on
for Sayonara Player by
1.17.0