Kgapi
10#include "kgapidrive_export.h"
43 FileOrganizerRole = 5,
46 enum Type { UndefinedType = -1, TypeUser = 0, TypeGroup = 1, TypeDomain = 2, TypeAnyone = 3 };
53 class PermissionDetails
63 PermissionDetails(
const PermissionDetails &other);
65 bool operator==(
const PermissionDetails &other)
const;
66 bool operator!=(
const PermissionDetails &other)
const
68 return !operator==(other);
79 [[nodiscard]] Permission::Role
role()
const;
102 friend class Private;
103 friend class Permission;
109 explicit Permission();
110 explicit Permission(
const Permission &other);
111 ~Permission()
override;
112 bool operator==(
const Permission &other)
const;
113 bool operator!=(
const Permission &other)
const
115 return !operator==(other);
133 QUrl selfLink()
const;
143 Permission::Role role()
const;
148 void setRole(Permission::Role role);
160 void setAdditionalRoles(
const QList<Role> &additionalRoles);
165 Permission::Type type()
const;
172 void setType(Permission::Type type);
182 bool withLink()
const;
189 void setWithLink(
bool withLink);
194 QUrl photoLink()
const;
214 void setValue(
const QString &value);
239 bool deleted()
const;
245 Permission::PermissionDetailsList permissionDetails()
const;
247 static PermissionPtr fromJSON(
const QByteArray &jsonData);
248 static PermissionsList fromJSONFeed(
const QByteArray &jsonData);
249 static QByteArray toJSON(
const PermissionPtr &permission);
254 friend class Private;
255 friend class File::Private;
PermissionDetails::PermissionType permissionType() const
The permission type for this user.
QList< Permission::Role > additionalRoles() const
Additional roles for this user.
bool inherited() const
Whether this permission is inherited.
QString inheritedFrom() const
The ID of the item from which this permission is inherited.
Permission::Role role() const
The primary role for this user.
Base class for all objects.
A job to fetch a single map tile described by a StaticMapUrl.
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:57:30 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.