diff -r efda7c0771b9 -r 7b66bc3c6dc9 contentstorage/caclient/src/caentry.cpp --- a/contentstorage/caclient/src/caentry.cpp Wed Oct 13 12:59:22 2010 +0300 +++ b/contentstorage/caclient/src/caentry.cpp Mon Oct 18 10:44:15 2010 +0300 @@ -331,6 +331,24 @@ } /*! + Gets parent ids. + \retval parent ids of entry. + */ +QList CaEntry::parentIds() const +{ + return m_d->parentIds(); +} + +/*! + Sets parent ids. + \param parentIds parent ids of entry (const reference) + */ +void CaEntry::setParentIds(const QList &parentIds) +{ + m_d->setParentIds(parentIds); +} + +/*! Returns item attributes. \retval map of attributes indexed by their names. @@ -527,6 +545,7 @@ mEntryRole = entry.mEntryRole; mTextLocalized = entry.mTextLocalized; mDescriptionLocalized = entry.mDescriptionLocalized; + mParentIds = entry.mParentIds; return *this; } @@ -635,6 +654,28 @@ } /*! + Gets parent ids. + \retval parent ids of entry. + */ +QList CaEntryPrivate::parentIds() const +{ + return mParentIds; +} + +/*! + Sets parent ids. + \param parentIds parent ids of entry (const reference). + */ +void CaEntryPrivate::setParentIds(const QList &parentIds) +{ + mParentIds.clear(); + for (int i(0); i < parentIds.count(); ++i) { + mParentIds.append(parentIds[i]); + } + +} + +/*! \retval map of attributes indexed by their names */ QMap CaEntryPrivate::attributes() const