From ff665b37cb92e2a1664bbab207030a1eedfbb036 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 4 Feb 2014 19:16:30 +0100 Subject: db/DatabaseListener: add method OnDatabaseSongRemoved() Decouples db/update/Remove.cpp from global variables. --- src/db/DatabaseListener.hxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/db/DatabaseListener.hxx') diff --git a/src/db/DatabaseListener.hxx b/src/db/DatabaseListener.hxx index 4da458866..8b410c2f5 100644 --- a/src/db/DatabaseListener.hxx +++ b/src/db/DatabaseListener.hxx @@ -20,6 +20,8 @@ #ifndef MPD_DATABASE_CLIENT_HXX #define MPD_DATABASE_CLIENT_HXX +struct LightSong; + /** * An object that listens to events from the #Database. * @@ -33,6 +35,12 @@ public: * runs the #EventLoop. */ virtual void OnDatabaseModified() = 0; + + /** + * During database update, a song is about to be removed from + * the database because the file has disappeared. + */ + virtual void OnDatabaseSongRemoved(const LightSong &song) = 0; }; #endif -- cgit v1.2.3