7#include "collectionrightsattribute_p.h"
19 if (data.
at(0) ==
'a') {
23 for (
int i = 0; i < data.
size(); ++i) {
93class Akonadi::CollectionRightsAttributePrivate
99CollectionRightsAttribute::CollectionRightsAttribute()
100 : d(new CollectionRightsAttributePrivate())
104CollectionRightsAttribute::~CollectionRightsAttribute() =
default;
108 d->mData = rightsToData(rights);
113 return dataToRights(d->mData);
116CollectionRightsAttribute *CollectionRightsAttribute::clone()
const
118 auto attr =
new CollectionRightsAttribute();
119 attr->d->mData = d->mData;
124QByteArray CollectionRightsAttribute::type()
const
126 static const QByteArray s_accessRightsIdentifier(
"AccessRights");
127 return s_accessRightsIdentifier;
130QByteArray CollectionRightsAttribute::serialized()
const
135void CollectionRightsAttribute::deserialize(
const QByteArray &data)
@ CanDeleteItem
Can delete items in this collection.
@ ReadOnly
Can only read items or subcollection of this collection.
@ CanDeleteCollection
Can delete this collection.
@ CanChangeCollection
Can change this collection.
@ CanCreateItem
Can create new items in this collection.
@ CanLinkItem
Can create links to existing items in this virtual collection.
@ CanCreateCollection
Can create new subcollections in this collection.
@ CanUnlinkItem
Can remove links to items in this virtual collection.
@ AllRights
Has all rights on this storage collection.
@ CanChangeItem
Can change items in this collection.
Helper integration between Akonadi and Qt.
QByteArray & append(QByteArrayView data)
char at(qsizetype i) const const
bool isEmpty() const const
qsizetype size() const const