Sayonara Player
Toggle main menu visibility
Loading...
Searching...
No Matches
src
Components
Tagging
UserTaggingOperations.h
1
/* UserTaggingOperations.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_USERTAGGINGOPERATIONS_H
22
#define SAYONARA_PLAYER_USERTAGGINGOPERATIONS_H
23
24
#include <QObject>
25
#include "Utils/Pimpl.h"
26
27
class
Genre
;
28
29
namespace
Tagging
30
{
31
class
Editor
;
32
class
TagReader
;
33
class
TagWriter
;
34
class
UserOperations :
35
public
QObject
36
{
37
Q_OBJECT
38
PIMPL(UserOperations)
39
40
signals:
41
void
sigFinished();
42
void
sigProgress(
int
);
43
44
public
:
45
UserOperations(
const
std::shared_ptr<TagReader>& tagReader,
const
std::shared_ptr<TagWriter>& tagWriter,
46
LibraryId libraryId, QObject* parent =
nullptr
);
47
~UserOperations()
override
;
48
49
void
setTrackRating(
const
MetaData
& md, Rating rating);
50
void
setTrackRating(
const
MetaDataList
& tracks, Rating rating);
51
Rating newRating(TrackID trackId)
const
;
52
53
void
setAlbumRating(
const
Album
& album, Rating rating);
54
55
void
mergeArtists(
const
Util::Set<Id>
& artisIids, ArtistId targetArtistId);
56
void
mergeAlbums(
const
Util::Set<Id>
& albumsIds, AlbumId targetAlbumId);
57
58
void
addGenre(
const
IdSet ids,
const
Genre
& genre);
59
void
deleteGenres(
const
Util::Set<Genre>
& genres);
60
void
renameGenre(
const
Genre
& genre,
const
Genre
& newGenre);
61
void
applyGenreToMetadata(
const
MetaDataList
& tracks,
const
Genre
& genre);
62
63
private
:
64
Editor
* createEditor();
65
void
runEditor(
Editor
* editor);
66
};
67
}
68
69
#endif
// SAYONARA_PLAYER_USERTAGGINGOPERATIONS_H
Album
Definition
Album.h:37
Genre
Definition
Genre.h:31
MetaDataList
Definition
MetaDataList.h:34
MetaData
Definition
MetaData.h:43
Tagging::Editor
Definition
Editor.h:37
Tagging::TagReader
Definition
TagReader.h:34
Tagging::TagWriter
Definition
TagWriter.h:33
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