diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-11-29 11:27:04 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-11-29 11:27:04 +0100 |
commit | 6a072b2dcf23cbcdb210f2bd5c273ea0f425b188 (patch) | |
tree | cc2789c59e04018743aa0d575ee51a6f10869ffc /common/notifier.cpp | |
parent | 81b459c0f013704e95fb5933525c82a6ca46f13f (diff) | |
download | sink-6a072b2dcf23cbcdb210f2bd5c273ea0f425b188.tar.gz sink-6a072b2dcf23cbcdb210f2bd5c273ea0f425b188.zip |
The synchronization call can be sync.
... because we really just enqueue the request and then wait for the
notification.
Diffstat (limited to 'common/notifier.cpp')
-rw-r--r-- | common/notifier.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/common/notifier.cpp b/common/notifier.cpp index 94ac84e..53db5be 100644 --- a/common/notifier.cpp +++ b/common/notifier.cpp | |||
@@ -23,6 +23,7 @@ | |||
23 | #include <functional> | 23 | #include <functional> |
24 | 24 | ||
25 | #include "resourceaccess.h" | 25 | #include "resourceaccess.h" |
26 | #include "resourceconfig.h" | ||
26 | #include "log.h" | 27 | #include "log.h" |
27 | 28 | ||
28 | using namespace Sink; | 29 | using namespace Sink; |
@@ -60,6 +61,10 @@ Notifier::Notifier(const QByteArray &instanceIdentifier, const QByteArray &resou | |||
60 | d->resourceAccess << resourceAccess; | 61 | d->resourceAccess << resourceAccess; |
61 | } | 62 | } |
62 | 63 | ||
64 | Notifier::Notifier(const QByteArray &instanceIdentifier) : Notifier(instanceIdentifier, ResourceConfig::getResourceType(instanceIdentifier)) | ||
65 | { | ||
66 | } | ||
67 | |||
63 | void Notifier::registerHandler(std::function<void(const Notification &)> handler) | 68 | void Notifier::registerHandler(std::function<void(const Notification &)> handler) |
64 | { | 69 | { |
65 | d->handler << handler; | 70 | d->handler << handler; |