contentstorage/caclient/src/caentry.cpp
changeset 127 7b66bc3c6dc9
parent 125 26079c1bb561
equal deleted inserted replaced
126:efda7c0771b9 127:7b66bc3c6dc9
   329 {
   329 {
   330     m_d->setEntryTypeName(entryTypeName);
   330     m_d->setEntryTypeName(entryTypeName);
   331 }
   331 }
   332 
   332 
   333 /*!
   333 /*!
       
   334  Gets parent ids.
       
   335  \retval parent ids of entry.
       
   336  */
       
   337 QList<int> CaEntry::parentIds() const
       
   338 {
       
   339     return m_d->parentIds();
       
   340 }
       
   341 
       
   342 /*!
       
   343  Sets parent ids.
       
   344  \param parentIds parent ids of entry (const reference)
       
   345  */
       
   346 void CaEntry::setParentIds(const QList<int> &parentIds)
       
   347 {
       
   348     m_d->setParentIds(parentIds);
       
   349 }
       
   350 
       
   351 /*!
   334  Returns item attributes.
   352  Returns item attributes.
   335  \retval map of attributes indexed by their names.
   353  \retval map of attributes indexed by their names.
   336 
   354 
   337  \code
   355  \code
   338  ...
   356  ...
   525     mEntryTypeName = entry.mEntryTypeName;
   543     mEntryTypeName = entry.mEntryTypeName;
   526     mAttributes = entry.mAttributes;
   544     mAttributes = entry.mAttributes;
   527     mEntryRole = entry.mEntryRole;
   545     mEntryRole = entry.mEntryRole;
   528     mTextLocalized = entry.mTextLocalized;
   546     mTextLocalized = entry.mTextLocalized;
   529     mDescriptionLocalized = entry.mDescriptionLocalized;
   547     mDescriptionLocalized = entry.mDescriptionLocalized;
       
   548     mParentIds = entry.mParentIds;
   530     return *this;
   549     return *this;
   531 }
   550 }
   532 
   551 
   533 /*!
   552 /*!
   534  Destructor
   553  Destructor
   630  \param entryTypeName name of entry type (const reference)
   649  \param entryTypeName name of entry type (const reference)
   631  */
   650  */
   632 void CaEntryPrivate::setEntryTypeName(const QString &entryTypeName)
   651 void CaEntryPrivate::setEntryTypeName(const QString &entryTypeName)
   633 {
   652 {
   634     mEntryTypeName = entryTypeName;
   653     mEntryTypeName = entryTypeName;
       
   654 }
       
   655 
       
   656 /*!
       
   657  Gets parent ids.
       
   658  \retval parent ids of entry.
       
   659  */
       
   660 QList<int> CaEntryPrivate::parentIds() const
       
   661 {
       
   662     return mParentIds;
       
   663 }
       
   664 
       
   665 /*!
       
   666  Sets parent ids.
       
   667  \param parentIds parent ids of entry (const reference).
       
   668  */
       
   669 void CaEntryPrivate::setParentIds(const QList<int> &parentIds)
       
   670 {
       
   671     mParentIds.clear();
       
   672     for (int i(0); i < parentIds.count(); ++i) {
       
   673         mParentIds.append(parentIds[i]);
       
   674     }
       
   675     
   635 }
   676 }
   636 
   677 
   637 /*!
   678 /*!
   638  \retval map of attributes indexed by their names
   679  \retval map of attributes indexed by their names
   639  */
   680  */