--- a/contentstorage/caclient/src/caquery.cpp Wed Jun 23 18:33:40 2010 +0300
+++ b/contentstorage/caclient/src/caquery.cpp Tue Jul 06 14:37:10 2010 +0300
@@ -135,6 +135,24 @@
}
/*!
+ Sets child id.
+ \param id id of the child.
+ */
+void CaQuery::setChildId(int id)
+{
+ m_d->setChildId(id);
+}
+
+/*!
+ Returns child id.
+ \retval child id.
+ */
+int CaQuery::childId() const
+{
+ return m_d->childId();
+}
+
+/*!
Sets names of entry types.
\param entryTypeNames list of entry type names (strings).
*/
@@ -288,7 +306,7 @@
*/
CaQueryPrivate::CaQueryPrivate(CaQuery *queryPublic) :
m_q(queryPublic), mEntryRoles(ItemEntryRole | GroupEntryRole),
- mParentId(0), mEntryTypeNames(), mFlagsOn(), mFlagsOff(),
+ mParentId(0), mChildId(0), mEntryTypeNames(), mFlagsOn(), mFlagsOff(),
mSortAttribute(DefaultSortAttribute),
mSortOrder(Qt::AscendingOrder), mCount(0), mAttributes()
{
@@ -306,6 +324,7 @@
/*m_q is not changed*/
mEntryRoles = queryPrivate.mEntryRoles;
mParentId = queryPrivate.mParentId;
+ mChildId = queryPrivate.mChildId;
mEntryTypeNames = queryPrivate.mEntryTypeNames;
mFlagsOn = queryPrivate.mFlagsOn;
mFlagsOff = queryPrivate.mFlagsOff;
@@ -361,6 +380,24 @@
}
/*!
+ Returns child id.
+ \retval child id.
+ */
+int CaQueryPrivate::childId() const
+{
+ return mChildId;
+}
+
+/*!
+ Sets child id.
+ \param id id of the child.
+ */
+void CaQueryPrivate::setChildId(int id)
+{
+ mChildId = id;
+}
+
+/*!
Returns a list of entry type names.
\retval list of names of entry types.
*/
@@ -508,6 +545,7 @@
{
mEntryRoles = ItemEntryRole | GroupEntryRole;
mParentId = 0;
+ mChildId = 0;
mEntryTypeNames = QStringList();
mFlagsOn = EntryFlags();
mFlagsOff = EntryFlags();