Skip to content

Commit

Permalink
MythMusic: allow the last playtime to be set to a specific time
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Harrison committed May 19, 2013
1 parent 814ea41 commit 44d807b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mythtv/libs/libmythmetadata/musicmetadata.cpp
Expand Up @@ -816,6 +816,12 @@ void MusicMetadata::incRating()
m_changed = true;
}

void MusicMetadata::setLastPlay(QDateTime lastPlay)
{
m_templastplay = MythDate::as_utc(lastPlay);
m_changed = true;
}

void MusicMetadata::setLastPlay()
{
m_templastplay = MythDate::current();
Expand Down
1 change: 1 addition & 0 deletions mythtv/libs/libmythmetadata/musicmetadata.h
Expand Up @@ -208,6 +208,7 @@ class META_PUBLIC MusicMetadata

QDateTime LastPlay() const { return m_lastplay; }
void setLastPlay();
void setLastPlay(QDateTime lastPlay);

int PlayCount() const { return m_playcount; }
void incPlayCount();
Expand Down

0 comments on commit 44d807b

Please sign in to comment.