Sayonara Player
ChangeInformation.h
1 #ifndef TAGGING_CHANGEINFORMATION_H
2 #define TAGGING_CHANGEINFORMATION_H
3 
4 #include "Utils/Pimpl.h"
5 
6 class MetaData;
7 
8 namespace Tagging
9 {
11  {
12  PIMPL(ChangeInformation)
13 
14  public:
15  ChangeInformation(const MetaData& md);
17 
19  ChangeInformation& operator=(const ChangeInformation& other);
20 
21  void update(const MetaData& md);
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
Tagging::ChangeInformation::undo
void undo()
Overwrite modified track with the original one.
Tagging::ChangeInformation
Definition: ChangeInformation.h:11
Tagging
The GUI_TagEdit class.
Definition: GenreFetcher.h:34
Tagging::ChangeInformation::apply
void apply()
Overwrite original track with the modified one. This cannot be undone.
MetaData
The MetaData class.
Definition: MetaData.h:47