move StoreDataElement to private in TraitUpdatableDataSource
-- StoreDataElement in TraitUpdatableDataSource is only invoked by
SubscritpionEngine when processing update request, and
SubscritpionEngine is friend of TraitUpdatableDataSource, therefore
move StoreDataElement to private.
diff --git a/src/lib/profiles/data-management/Current/TraitData.h b/src/lib/profiles/data-management/Current/TraitData.h
index 2b1b0dd..85770e1 100644
--- a/src/lib/profiles/data-management/Current/TraitData.h
+++ b/src/lib/profiles/data-management/Current/TraitData.h
@@ -1058,18 +1058,6 @@
} mDictionaryItemDelete;
};
- /**
- * Given a reader that points to a data element conformant to a schema bound to this object, this method processes that data and
- * invokes the relevant SetLeafData call below for all leaf items in the buffer.
- *
- * A change rejection function can be passed in as well that will be invoked if the updatable source chooses to reject this data
- * for any reason.
- *
- * @retval #WEAVE_NO_ERROR On success.
- * @retval other Encountered errors writing out the data.
- */
- WEAVE_ERROR StoreDataElement(PropertyPathHandle aHandle, TLV::TLVReader & aReader, uint8_t aFlags, OnChangeRejection aFunc,
- void * aContext);
virtual bool IsUpdatableDataSource(void) __OVERRIDE { return true; }
protected: // ISetDataDelegate
@@ -1091,6 +1079,19 @@
private:
friend class SubscriptionEngine;
+ /**
+ * Given a reader that points to a data element conformant to a schema bound to this object, this method processes that data and
+ * invokes the relevant SetLeafData call below for all leaf items in the buffer.
+ *
+ * A change rejection function can be passed in as well that will be invoked if the updatable source chooses to reject this data
+ * for any reason.
+ *
+ * @retval #WEAVE_NO_ERROR On success.
+ * @retval other Encountered errors writing out the data.
+ */
+ WEAVE_ERROR StoreDataElement(PropertyPathHandle aHandle, TLV::TLVReader & aReader, uint8_t aFlags, OnChangeRejection aFunc,
+ void * aContext);
+
void OnSetDataEvent(SetDataEventType aType, PropertyPathHandle aHandle) __OVERRIDE;
private: