MauiKit Calendar

collection.h
1// SPDX-FileCopyrightText: 2007-2009 Tobias Koenig <tokoe@kde.org>
2// SPDX-FileCopyrightText: 2022 Carl Schwan <carl@carlschwan.eu>
3// SPDX-License-Identifier: LGPL-2.0-or-later
4
5#include <QObject>
6#include <QQmlEngine>
7#include <Akonadi/EntityTreeModel>
8
9namespace Akonadi
10{
11namespace Quick
12{
13class Collection : public QObject
14{
16 QML_ELEMENT
17 QML_UNCREATABLE("")
18public:
19 enum Right {
20 ReadOnly = 0x0, ///< Can only read items or subcollection of this collection
21 CanChangeItem = 0x1, ///< Can change items in this collection
22 CanCreateItem = 0x2, ///< Can create new items in this collection
23 CanDeleteItem = 0x4, ///< Can delete items in this collection
24 CanChangeCollection = 0x8, ///< Can change this collection
25 CanCreateCollection = 0x10, ///< Can create new subcollections in this collection
26 CanDeleteCollection = 0x20, ///< Can delete this collection
27 CanLinkItem = 0x40, ///< Can create links to existing items in this virtual collection @since 4.4
28 CanUnlinkItem = 0x80, ///< Can remove links to items in this virtual collection @since 4.4
29 AllRights = (CanChangeItem | CanCreateItem | CanDeleteItem | CanChangeCollection | CanCreateCollection
30 | CanDeleteCollection) ///< Has all rights on this storage collection
31 };
32 Q_ENUM(Right)
33
34 enum Role {
36 CollectionColorRole = Qt::BackgroundRole,
37 };
38 Q_ENUM(Role)
39};
40}
41}
Q_ENUM(...)
Q_OBJECTQ_OBJECT
BackgroundRole
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:15:37 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.