From 30a82076ba50a21c4df5fe4c46c8fc2ed25a7486 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 21 Feb 2014 08:55:52 +0100 Subject: PlayerListener: new interface to replace GlobalEvents access --- src/Partition.cxx | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/Partition.cxx') diff --git a/src/Partition.cxx b/src/Partition.cxx index 512912f96..de1170557 100644 --- a/src/Partition.cxx +++ b/src/Partition.cxx @@ -23,6 +23,7 @@ #include "output/MultipleOutputs.hxx" #include "mixer/Volume.hxx" #include "Idle.hxx" +#include "GlobalEvents.hxx" #ifdef ENABLE_DATABASE @@ -50,6 +51,18 @@ Partition::SyncWithPlayer() playlist.SyncWithPlayer(pc); } +void +Partition::OnPlayerSync() +{ + GlobalEvents::Emit(GlobalEvents::PLAYLIST); +} + +void +Partition::OnPlayerTagModified() +{ + GlobalEvents::Emit(GlobalEvents::TAG); +} + void Partition::OnMixerVolumeChanged(gcc_unused Mixer &mixer, gcc_unused int volume) { -- cgit v1.2.3