summaryrefslogtreecommitdiffstats
path: root/examples/dummyresource/resourcefactory.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-12-15 17:26:59 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-12-15 17:26:59 +0100
commit7bd037fae43c963d5f67e9447b3ee6875591a2c7 (patch)
treee2537369bb21d12e77668f0b2e878cffc1b9b423 /examples/dummyresource/resourcefactory.cpp
parent20b4d255509d5a490619afef50e49477ea09c71d (diff)
downloadsink-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.cpp3
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
178DummyResourceFactory::DummyResourceFactory(QObject *parent) 178DummyResourceFactory::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