start implementing model for koto artist
This commit is contained in:
parent
e3a00ab8ac
commit
ddfd17c67c
12 changed files with 267 additions and 34 deletions
|
@ -102,6 +102,19 @@ void KotoTrack::commit() {
|
|||
query.exec();
|
||||
}
|
||||
|
||||
QString KotoTrack::getAlbumUuid() {
|
||||
if (!this->album_uuid.has_value()) return this->album_uuid.value().toString();
|
||||
return {};
|
||||
}
|
||||
|
||||
QUuid KotoTrack::getArtistUuid() {
|
||||
return this->artist_uuid;
|
||||
}
|
||||
|
||||
int KotoTrack::getDiscNumber() {
|
||||
return this->disc_number;
|
||||
}
|
||||
|
||||
int KotoTrack::getDuration() {
|
||||
return this->duration;
|
||||
}
|
||||
|
@ -130,6 +143,10 @@ int KotoTrack::getTrackNumber() {
|
|||
return this->track_number;
|
||||
}
|
||||
|
||||
QUuid KotoTrack::getUuid() {
|
||||
return this->uuid;
|
||||
}
|
||||
|
||||
int KotoTrack::getYear() {
|
||||
return this->year;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue