diff options
Diffstat (limited to 'common/domain')
-rw-r--r-- | common/domain/applicationdomaintype.cpp | 5 | ||||
-rw-r--r-- | common/domain/applicationdomaintype.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/common/domain/applicationdomaintype.cpp b/common/domain/applicationdomaintype.cpp index b30eb36..105ae56 100644 --- a/common/domain/applicationdomaintype.cpp +++ b/common/domain/applicationdomaintype.cpp | |||
@@ -98,6 +98,11 @@ void ApplicationDomainType::setProperty(const QByteArray &key, const QVariant &v | |||
98 | mAdaptor->setProperty(key, value); | 98 | mAdaptor->setProperty(key, value); |
99 | } | 99 | } |
100 | 100 | ||
101 | void ApplicationDomainType::setResource(const QByteArray &identifier) | ||
102 | { | ||
103 | mResourceInstanceIdentifier = identifier; | ||
104 | } | ||
105 | |||
101 | void ApplicationDomainType::setProperty(const QByteArray &key, const ApplicationDomainType &value) | 106 | void ApplicationDomainType::setProperty(const QByteArray &key, const ApplicationDomainType &value) |
102 | { | 107 | { |
103 | Q_ASSERT(!value.identifier().isEmpty()); | 108 | Q_ASSERT(!value.identifier().isEmpty()); |
diff --git a/common/domain/applicationdomaintype.h b/common/domain/applicationdomaintype.h index 4621316..d6bbdd4 100644 --- a/common/domain/applicationdomaintype.h +++ b/common/domain/applicationdomaintype.h | |||
@@ -168,6 +168,7 @@ public: | |||
168 | QByteArrayList availableProperties() const; | 168 | QByteArrayList availableProperties() const; |
169 | qint64 revision() const; | 169 | qint64 revision() const; |
170 | QByteArray resourceInstanceIdentifier() const; | 170 | QByteArray resourceInstanceIdentifier() const; |
171 | void setResource(const QByteArray &identifier); | ||
171 | QByteArray identifier() const; | 172 | QByteArray identifier() const; |
172 | 173 | ||
173 | private: | 174 | private: |