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 /common/resource.h | |
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 'common/resource.h')
-rw-r--r-- | common/resource.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/resource.h b/common/resource.h index 7789c53..d756521 100644 --- a/common/resource.h +++ b/common/resource.h | |||
@@ -64,13 +64,14 @@ class SINK_EXPORT ResourceFactory : public QObject | |||
64 | public: | 64 | public: |
65 | static ResourceFactory *load(const QByteArray &resourceName); | 65 | static ResourceFactory *load(const QByteArray &resourceName); |
66 | 66 | ||
67 | ResourceFactory(QObject *parent); | 67 | ResourceFactory(QObject *parent, const QByteArrayList &capabilities); |
68 | virtual ~ResourceFactory(); | 68 | virtual ~ResourceFactory(); |
69 | 69 | ||
70 | virtual Resource *createResource(const ResourceContext &context) = 0; | 70 | virtual Resource *createResource(const ResourceContext &context) = 0; |
71 | virtual void registerFacades(const QByteArray &resourceName, FacadeFactory &factory) = 0; | 71 | virtual void registerFacades(const QByteArray &resourceName, FacadeFactory &factory) = 0; |
72 | virtual void registerAdaptorFactories(const QByteArray &resourceName, AdaptorFactoryRegistry ®istry) {}; | 72 | virtual void registerAdaptorFactories(const QByteArray &resourceName, AdaptorFactoryRegistry ®istry) {}; |
73 | virtual void removeDataFromDisk(const QByteArray &instanceIdentifier) = 0; | 73 | virtual void removeDataFromDisk(const QByteArray &instanceIdentifier) = 0; |
74 | QByteArrayList capabilities() const; | ||
74 | 75 | ||
75 | private: | 76 | private: |
76 | class Private; | 77 | class Private; |