diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-04-17 15:01:51 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-04-17 15:01:51 +0200 |
commit | bf75a2b6b184a3504cdee4b88a6db4a82c6da150 (patch) | |
tree | 841434e105e89e6a5ef1b6bbe3c1b43a5dd2e499 /common/notifier.cpp | |
parent | c3040251dd4d9e8d00cbccdeb693b11a72077c73 (diff) | |
download | sink-bf75a2b6b184a3504cdee4b88a6db4a82c6da150.tar.gz sink-bf75a2b6b184a3504cdee4b88a6db4a82c6da150.zip |
Don't encode the resource type into the identifier
Diffstat (limited to 'common/notifier.cpp')
-rw-r--r-- | common/notifier.cpp | 4 |
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 | ||
51 | Notifier::Notifier(const QByteArray &instanceIdentifier) : d(new Sink::Notifier::Private) | 51 | Notifier::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 ¬ification) { | 55 | QObject::connect(resourceAccess.data(), &ResourceAccess::notification, d->context.data(), [this](const Notification ¬ification) { |
56 | for (const auto &handler : d->handler) { | 56 | for (const auto &handler : d->handler) { |