diff options
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; |