diff options
Diffstat (limited to 'sinksh')
-rw-r--r-- | sinksh/sinksh_utils.cpp | 2 | ||||
-rw-r--r-- | sinksh/sinksh_utils.h | 39 |
2 files changed, 40 insertions, 1 deletions
diff --git a/sinksh/sinksh_utils.cpp b/sinksh/sinksh_utils.cpp index 1ee5997..82bd6c1 100644 --- a/sinksh/sinksh_utils.cpp +++ b/sinksh/sinksh_utils.cpp | |||
@@ -58,7 +58,7 @@ StoreBase &getStore(const QString &type) | |||
58 | 58 | ||
59 | SinkWarning_("", "") << "Trying to get a store that doesn't exist: " << type; | 59 | SinkWarning_("", "") << "Trying to get a store that doesn't exist: " << type; |
60 | Q_ASSERT(false); | 60 | Q_ASSERT(false); |
61 | static Store<Sink::ApplicationDomain::ApplicationDomainType> store; | 61 | static DummyStore store; |
62 | return store; | 62 | return store; |
63 | } | 63 | } |
64 | 64 | ||
diff --git a/sinksh/sinksh_utils.h b/sinksh/sinksh_utils.h index 0a47661..051c616 100644 --- a/sinksh/sinksh_utils.h +++ b/sinksh/sinksh_utils.h | |||
@@ -59,6 +59,45 @@ public: | |||
59 | virtual QList<Sink::ApplicationDomain::ApplicationDomainType> read(const Sink::Query &query) = 0; | 59 | virtual QList<Sink::ApplicationDomain::ApplicationDomainType> read(const Sink::Query &query) = 0; |
60 | }; | 60 | }; |
61 | 61 | ||
62 | class DummyStore : public StoreBase | ||
63 | { | ||
64 | public: | ||
65 | Sink::ApplicationDomain::ApplicationDomainType::Ptr getObject() Q_DECL_OVERRIDE | ||
66 | { | ||
67 | return {}; | ||
68 | } | ||
69 | |||
70 | Sink::ApplicationDomain::ApplicationDomainType::Ptr getObject(const QByteArray &resourceInstanceIdentifier, const QByteArray &identifier = QByteArray()) Q_DECL_OVERRIDE | ||
71 | { | ||
72 | return {}; | ||
73 | } | ||
74 | |||
75 | KAsync::Job<void> create(const Sink::ApplicationDomain::ApplicationDomainType &type) Q_DECL_OVERRIDE | ||
76 | { | ||
77 | return KAsync::null(); | ||
78 | } | ||
79 | |||
80 | KAsync::Job<void> modify(const Sink::ApplicationDomain::ApplicationDomainType &type) Q_DECL_OVERRIDE | ||
81 | { | ||
82 | return KAsync::null(); | ||
83 | } | ||
84 | |||
85 | KAsync::Job<void> remove(const Sink::ApplicationDomain::ApplicationDomainType &type) Q_DECL_OVERRIDE | ||
86 | { | ||
87 | return KAsync::null(); | ||
88 | } | ||
89 | |||
90 | QSharedPointer<QAbstractItemModel> loadModel(const Sink::Query &query) Q_DECL_OVERRIDE | ||
91 | { | ||
92 | return {}; | ||
93 | } | ||
94 | |||
95 | QList<Sink::ApplicationDomain::ApplicationDomainType> read(const Sink::Query &query) Q_DECL_OVERRIDE | ||
96 | { | ||
97 | return {}; | ||
98 | } | ||
99 | }; | ||
100 | |||
62 | template <typename T> | 101 | template <typename T> |
63 | class Store : public StoreBase | 102 | class Store : public StoreBase |
64 | { | 103 | { |