#include <TagEdit.h>
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.
|
void | sig_progress (int) |
|
void | sig_metadata_received (const MetaDataList &) |
|
|
void | commit () |
| Commits changes to db.
|
|
void TagEdit::add_genre_to_metadata |
( |
const QString & |
genre | ) |
|
Add a genre to all (changed) metdata.
- Parameters
-
const MetaData& TagEdit::get_metadata |
( |
int |
idx | ) |
const |
get the (changed) metadata for a specific index
- Parameters
-
- Returns
- MetaData object
int TagEdit::get_n_tracks |
( |
| ) |
const |
gets the number of tracks
- Returns
- number of tracks
bool TagEdit::has_cover_replacement |
( |
int |
idx | ) |
const |
does the user want to replace/add a cover
- Parameters
-
- Returns
- false, if no new alternative cover is desired
bool TagEdit::is_id3v2_tag |
( |
int |
idx | ) |
const |
checks, if the tracks' tag is an id3v2 tag
- Parameters
-
- Returns
void TagEdit::remove_cover |
( |
int |
idx | ) |
|
remove_cover for a specific track
- Parameters
-
void TagEdit::remove_genre_from_metadata |
( |
const QString & |
genre | ) |
|
Removes genre from all (changed) metadata.
- Parameters
-
void TagEdit::set_auto_notify |
( |
bool |
b | ) |
|
Send notification when finished committing.
- Parameters
-
void TagEdit::undo |
( |
int |
idx | ) |
|
undo changes for a specific track
- Parameters
-
void TagEdit::update_cover |
( |
int |
idx, |
|
|
const QImage & |
cover |
|
) |
| |
update the cover for a specific track.
- Parameters
-
idx | track index |
cover | new cover image |
void TagEdit::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 |