Partition: add method DatabaseModified()
This commit is contained in:
parent
c7bbfef19a
commit
4de3b6dc80
@ -31,7 +31,7 @@ Instance::DeleteSong(const Song &song)
|
|||||||
void
|
void
|
||||||
Instance::DatabaseModified()
|
Instance::DatabaseModified()
|
||||||
{
|
{
|
||||||
partition->playlist.FullIncrementVersions();
|
partition->DatabaseModified();
|
||||||
idle_add(IDLE_DATABASE);
|
idle_add(IDLE_DATABASE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -21,6 +21,12 @@
|
|||||||
#include "Partition.hxx"
|
#include "Partition.hxx"
|
||||||
#include "Song.hxx"
|
#include "Song.hxx"
|
||||||
|
|
||||||
|
void
|
||||||
|
Partition::DatabaseModified()
|
||||||
|
{
|
||||||
|
playlist.FullIncrementVersions();
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
Partition::TagModified()
|
Partition::TagModified()
|
||||||
{
|
{
|
||||||
|
@ -166,6 +166,12 @@ struct Partition {
|
|||||||
playlist.SetConsume(new_value);
|
playlist.SetConsume(new_value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The database has been modified. Propagate the change to
|
||||||
|
* all subsystems.
|
||||||
|
*/
|
||||||
|
void DatabaseModified();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A tag in the play queue has been modified by the player
|
* A tag in the play queue has been modified by the player
|
||||||
* thread. Propagate the change to all subsystems.
|
* thread. Propagate the change to all subsystems.
|
||||||
|
Loading…
Reference in New Issue
Block a user