aboutsummaryrefslogtreecommitdiffstats
path: root/src/InotifyQueue.hxx
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/InotifyQueue.hxx11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/InotifyQueue.hxx b/src/InotifyQueue.hxx
index a30cdf094..761df574a 100644
--- a/src/InotifyQueue.hxx
+++ b/src/InotifyQueue.hxx
@@ -20,23 +20,22 @@
#ifndef MPD_INOTIFY_QUEUE_HXX
#define MPD_INOTIFY_QUEUE_HXX
-#include <glib.h>
+#include "event/TimeoutMonitor.hxx"
+#include "gcc.h"
#include <list>
#include <string>
-class InotifyQueue {
+class InotifyQueue final : private TimeoutMonitor {
std::list<std::string> queue;
- guint source_id;
public:
- ~InotifyQueue();
+ InotifyQueue(EventLoop &_loop):TimeoutMonitor(_loop) {}
void Enqueue(const char *uri_utf8);
private:
- bool Run();
- static gboolean Run(gpointer ctx);
+ virtual bool OnTimeout() override;
};
#endif