Changeset View
Changeset View
Standalone View
Standalone View
autotests/server/dbinitializer.cpp
Show First 20 Lines • Show All 159 Lines • ▼ Show 20 Line(s) | 145 | while (parent.isValid()) { | |||
---|---|---|---|---|---|
160 | } | 160 | } | ||
161 | parent = parent.parent(); | 161 | parent = parent.parent(); | ||
162 | ancs.push_back(anc); | 162 | ancs.push_back(anc); | ||
163 | } | 163 | } | ||
164 | // Root | 164 | // Root | ||
165 | ancs.push_back(Akonadi::Protocol::Ancestor(0)); | 165 | ancs.push_back(Akonadi::Protocol::Ancestor(0)); | ||
166 | resp->setAncestors(ancs); | 166 | resp->setAncestors(ancs); | ||
167 | } | 167 | } | ||
168 | resp->setReferenced(col.referenced()); | | |||
169 | resp->setEnabled(col.enabled()); | 168 | resp->setEnabled(col.enabled()); | ||
170 | resp->setDisplayPref(static_cast<Tristate>(col.displayPref())); | 169 | resp->setDisplayPref(static_cast<Tristate>(col.displayPref())); | ||
171 | resp->setSyncPref(static_cast<Tristate>(col.syncPref())); | 170 | resp->setSyncPref(static_cast<Tristate>(col.syncPref())); | ||
172 | resp->setIndexPref(static_cast<Tristate>(col.indexPref())); | 171 | resp->setIndexPref(static_cast<Tristate>(col.indexPref())); | ||
173 | 172 | | |||
174 | Akonadi::Protocol::Attributes attrs; | 173 | Akonadi::Protocol::Attributes attrs; | ||
175 | Q_FOREACH(const CollectionAttribute &attr, col.attributes()) { | 174 | Q_FOREACH(const CollectionAttribute &attr, col.attributes()) { | ||
176 | attrs.insert(attr.type(), attr.value()); | 175 | attrs.insert(attr.type(), attr.value()); | ||
▲ Show 20 Lines • Show All 63 Lines • Show Last 20 Lines |