diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-12-15 17:26:59 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-12-15 17:26:59 +0100 |
commit | 7bd037fae43c963d5f67e9447b3ee6875591a2c7 (patch) | |
tree | e2537369bb21d12e77668f0b2e878cffc1b9b423 /examples/dummyresource/resourcefactory.cpp | |
parent | 20b4d255509d5a490619afef50e49477ea09c71d (diff) | |
download | sink-7bd037fae43c963d5f67e9447b3ee6875591a2c7.tar.gz sink-7bd037fae43c963d5f67e9447b3ee6875591a2c7.zip |
Don't set capabilities as property on creation.
Instead we make it part of the plugin.
This ensure we also have access to the proper capabilities when creating
a resource via sinksh.
Diffstat (limited to 'examples/dummyresource/resourcefactory.cpp')
-rw-r--r-- | examples/dummyresource/resourcefactory.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/dummyresource/resourcefactory.cpp b/examples/dummyresource/resourcefactory.cpp index 03238ef..0663bdb 100644 --- a/examples/dummyresource/resourcefactory.cpp +++ b/examples/dummyresource/resourcefactory.cpp | |||
@@ -176,7 +176,7 @@ DummyResource::~DummyResource() | |||
176 | } | 176 | } |
177 | 177 | ||
178 | DummyResourceFactory::DummyResourceFactory(QObject *parent) | 178 | DummyResourceFactory::DummyResourceFactory(QObject *parent) |
179 | : Sink::ResourceFactory(parent) | 179 | : Sink::ResourceFactory(parent, QByteArrayList() << Sink::ApplicationDomain::ResourceCapabilities::Mail::storage << "-folder.rename" << Sink::ApplicationDomain::ResourceCapabilities::Mail::sent) |
180 | { | 180 | { |
181 | 181 | ||
182 | } | 182 | } |
@@ -204,3 +204,4 @@ void DummyResourceFactory::removeDataFromDisk(const QByteArray &instanceIdentifi | |||
204 | { | 204 | { |
205 | DummyResource::removeFromDisk(instanceIdentifier); | 205 | DummyResource::removeFromDisk(instanceIdentifier); |
206 | } | 206 | } |
207 | |||