@@ -30,6 +30,12 @@ completed. This of course only applies to pointer classes, as gadgets are used a
3030@throws SetupDoesNotExistException Thrown if the given setup was not created yet
3131*/
3232
33+ /*!
34+ @fn QtDataSync::DataStore::setupName
35+ @returns The name of the setup
36+ @sa QtDataSync::Setup
37+ */
38+
3339/*!
3440@fn QtDataSync::DataStore::count(int) const
3541
@@ -96,6 +102,41 @@ return and cosume very much memory. For most situations however, this is not the
96102@sa DataStore::iterate, DataStore::search, DataStore::load, DataStore::keys
97103*/
98104
105+ /*!
106+ @fn QtDataSync::DataStore::contains(int, const QString &) const
107+
108+ @param metaTypeId The QMetaType type id of the type
109+ @param key The key of the dataset to be checked for existance
110+ @returns true if the dataset exists, false if not
111+ @throws LocalStoreException In case of an internal error
112+
113+ @sa DataStore::keys, DataStore::load
114+ */
115+
116+ /*!
117+ @fn QtDataSync::DataStore::contains(const QString &) const
118+
119+ @tparam T The type of the dataset to check for
120+ @param key The key of the dataset to be checked for existance
121+ @returns true if the dataset exists, false if not
122+ @throws LocalStoreException In case of an internal error
123+
124+ @sa DataStore::keys, DataStore::load
125+ */
126+
127+ /*!
128+ @fn QtDataSync::DataStore::contains(int, const QVariant &) const
129+ @copydetails DataStore::contains(int, const QString &) const
130+ @note The given QVariant must be convertible to a QString
131+ */
132+
133+ /*!
134+ @fn QtDataSync::DataStore::contains(const K &) const
135+ @tparam K The type of the key to be returned as list
136+ @copydetails DataStore::contains(const QString &) const
137+ @note The given type K must be convertible to a QString
138+ */
139+
99140/*!
100141@fn QtDataSync::DataStore::load(int, const QString &) const
101142
@@ -264,10 +305,17 @@ Semantics of the `iterator`:
264305*/
265306
266307/*!
267- @fn QtDataSync::DataStore::iterate(const std::function<bool(T)> &) const
308+ @fn QtDataSync::DataStore::iterate(int, const std::function<bool(QVariant)> &, bool) const
309+ @param skipBroken Skip datasets that fail to load instead of thrown the exception
310+ @copydetails QtDataSync::DataStore::iterate(int, const std::function<bool(QVariant)> &) const
311+ */
312+
313+ /*!
314+ @fn QtDataSync::DataStore::iterate(const std::function<bool(T)> &, bool) const
268315
269316@tparam T The type to be iterated over
270317@param iterator An iterator function that is called for every dataset of the given type
318+ @param skipBroken Skip datasets that fail to load instead of thrown the exception
271319@throws LocalStoreException In case of an internal error
272320
273321Semantics of the `iterator`:
0 commit comments