Sayonara Player
UserTaggingOperations.h
1 /* UserTaggingOperations.h */
2 
3 /* Copyright (C) 2011-2019 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 USERTAGGINGOPERATIONS_H
24 #define USERTAGGINGOPERATIONS_H
25 
26 #include <QObject>
27 #include "Utils/Pimpl.h"
28 
29 class Genre;
30 
31 namespace Tagging
32 {
34  public QObject
35  {
36  Q_OBJECT
37  PIMPL(UserOperations)
38 
39  signals:
40  void sig_finished();
41  void sig_progress(int);
42 
43  public:
44  UserOperations(LibraryId library_id, QObject* parent=nullptr);
45  ~UserOperations();
46 
47  void set_track_rating(const MetaData& md, Rating rating);
48  void set_track_rating(const MetaDataList& v_md, Rating rating);
49 
50  void set_album_rating(const Album& album, Rating rating);
51 
52  void merge_artists(const Util::Set<Id>& artist_ids, ArtistId target_artist_id);
53  void merge_albums(const Util::Set<Id>& albums_ids, AlbumId target_album_id);
54 
55  void add_genre(const IdSet ids, const Genre& genre);
56  void delete_genre(const Genre& genre);
57  void rename_genre(const Genre& genre, const Genre& new_genre);
58  void add_genre_to_md(const MetaDataList& v_md, const Genre& genre);
59  };
60 }
61 
62 #endif // USERTAGGINGOPERATIONS_H
Definition: UserTaggingOperations.h:33
The MetaData class.
Definition: MetaData.h:44
The MetaDataList class.
Definition: MetaDataList.h:37
The GUI_TagEdit class.
Definition: GenreFetcher.h:33
A set structure. Inherited from std::set with some useful methods. For integer and String this set is...
Definition: Set.h:35
Definition: Genre.h:30
The Album class.
Definition: Album.h:39