The TagEdit class Metadata has to be added using the set_metadata(const MetaDataList&) method. Use update_track(int idx, const MetaData& md) to stage the changes you made to the track. commit() starts the thread and writes changes to HDD and the database. When finished the finished() signal is emitted.
More...
#include <Editor.h>
|
enum | FailReason {
FileNotWriteable =1,
FileNotFound,
TagLibError
} |
|
|
void | commit () |
| Commits changes to db.
|
|
|
void | sig_finished () |
|
void | sig_progress (int) |
|
void | sig_metadata_received (const MetaDataList &v_md) |
|
The TagEdit class Metadata has to be added using the set_metadata(const MetaDataList&) method. Use update_track(int idx, const MetaData& md) to stage the changes you made to the track. commit() starts the thread and writes changes to HDD and the database. When finished the finished() signal is emitted.
◆ add_genre()
void Tagging::Editor::add_genre |
( |
int |
idx, |
|
|
const Genre & |
genre |
|
) |
| |
Add a genre to all (changed) metdata.
- Parameters
-
◆ count()
int Tagging::Editor::count |
( |
| ) |
const |
gets the number of tracks
- Returns
- number of tracks
◆ has_cover_replacement()
bool Tagging::Editor::has_cover_replacement |
( |
int |
idx | ) |
const |
remove_cover for a specific track
- Parameters
-
idx | track indexdoes the user want to replace/add a cover |
idx | track index |
- Returns
- false, if no new alternative cover is desired
◆ metadata() [1/2]
const MetaData& Tagging::Editor::metadata |
( |
int |
idx | ) |
const |
get the (changed) metadata for a specific index
- Parameters
-
- Returns
- MetaData object
◆ metadata() [2/2]
◆ set_metadata()
void Tagging::Editor::set_metadata |
( |
const MetaDataList & |
v_md | ) |
|
initializes the TagEdit object with a MetaDataList
- Parameters
-
◆ undo()
void Tagging::Editor::undo |
( |
int |
idx | ) |
|
undo changes for a specific track
- Parameters
-
◆ update_cover()
void Tagging::Editor::update_cover |
( |
int |
idx, |
|
|
const QPixmap & |
cover |
|
) |
| |
update the cover for a specific track.
- Parameters
-
idx | track index |
cover | new cover image |
◆ update_track()
void Tagging::Editor::update_track |
( |
int |
idx, |
|
|
const MetaData & |
md |
|
) |
| |
writes changes to (changed) metadata for a specific track
- Parameters
-
idx | track index |
md | new MetaData replacing the old track |