aboutsummaryrefslogtreecommitdiffstats
path: root/src/db/update/Service.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-02-04 18:51:01 +0100
committerMax Kellermann <max@duempel.org>2014-02-04 18:54:54 +0100
commiteec6d0995982a59960dfb38cddad8bf4567e6b3c (patch)
tree7a0901cc355792948d52b9626512fe4463500546 /src/db/update/Service.hxx
parentc5fa8ed3217a9223f5e36fdda23021a47e0f81ac (diff)
downloadmpd-eec6d0995982a59960dfb38cddad8bf4567e6b3c.tar.gz
mpd-eec6d0995982a59960dfb38cddad8bf4567e6b3c.tar.xz
mpd-eec6d0995982a59960dfb38cddad8bf4567e6b3c.zip
db/update/Service: use DatabaseListener instead of Instance
Don't use the global variable "instance".
Diffstat (limited to 'src/db/update/Service.hxx')
-rw-r--r--src/db/update/Service.hxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/db/update/Service.hxx b/src/db/update/Service.hxx
index 815be6dbc..a41c311b6 100644
--- a/src/db/update/Service.hxx
+++ b/src/db/update/Service.hxx
@@ -27,6 +27,7 @@
#include "thread/Thread.hxx"
class SimpleDatabase;
+class DatabaseListener;
/**
* This class manages the update queue and runs the update thread.
@@ -40,6 +41,8 @@ class UpdateService final : DeferredMonitor {
SimpleDatabase &db;
+ DatabaseListener &listener;
+
Progress progress;
bool modified;
@@ -57,7 +60,8 @@ class UpdateService final : DeferredMonitor {
UpdateWalk walk;
public:
- UpdateService(EventLoop &_loop, SimpleDatabase &_db);
+ UpdateService(EventLoop &_loop, SimpleDatabase &_db,
+ DatabaseListener &_listener);
/**
* Returns a non-zero job id when we are currently updating