summaryrefslogtreecommitdiffstats
path: root/common/notifier.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/notifier.cpp')
-rw-r--r--common/notifier.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/notifier.cpp b/common/notifier.cpp
index 25d0b85..94ac84e 100644
--- a/common/notifier.cpp
+++ b/common/notifier.cpp
@@ -48,9 +48,9 @@ Notifier::Notifier(const QSharedPointer<ResourceAccess> &resourceAccess) : d(new
48 d->resourceAccess << resourceAccess; 48 d->resourceAccess << resourceAccess;
49} 49}
50 50
51Notifier::Notifier(const QByteArray &instanceIdentifier) : d(new Sink::Notifier::Private) 51Notifier::Notifier(const QByteArray &instanceIdentifier, const QByteArray &resourceType) : d(new Sink::Notifier::Private)
52{ 52{
53 auto resourceAccess = Sink::ResourceAccess::Ptr::create(instanceIdentifier); 53 auto resourceAccess = Sink::ResourceAccess::Ptr::create(instanceIdentifier, resourceType);
54 resourceAccess->open(); 54 resourceAccess->open();
55 QObject::connect(resourceAccess.data(), &ResourceAccess::notification, d->context.data(), [this](const Notification &notification) { 55 QObject::connect(resourceAccess.data(), &ResourceAccess::notification, d->context.data(), [this](const Notification &notification) {
56 for (const auto &handler : d->handler) { 56 for (const auto &handler : d->handler) {