Sayonara Player
ChangeInformation.h
1#ifndef TAGGING_CHANGEINFORMATION_H
2#define TAGGING_CHANGEINFORMATION_H
3
4#include "Utils/Pimpl.h"
5
6class MetaData;
7
8namespace Tagging
9{
11 {
13
14 public:
15 ChangeInformation(const MetaData& track);
17
19 ChangeInformation& operator=(const ChangeInformation& other);
20
21 void update(const MetaData& track);
22 void updateCover(const QPixmap& pm);
23
28 void apply();
29
33 void undo();
34
35 bool hasChanges() const;
36 void setChanged(bool b);
37
38 bool hasNewCover() const;
39 QPixmap cover() const;
40
41 const MetaData& currentMetadata() const;
42 const MetaData& originalMetadata() const;
43
44 MetaData& currentMetadata();
45 MetaData& originalMetadata();
46 };
47}
48
49#endif // TAGGING_CHANGEINFORMATION_H
The MetaData class.
Definition: MetaData.h:47
Definition: ChangeInformation.h:11
void undo()
Overwrite modified track with the original one.
void apply()
Overwrite original track with the modified one. This cannot be undone.
The GUI_TagEdit class.
Definition: GenreFetcher.h:34