KGAPI2::Drive::Drives::Restrictions

Search for usage in LXR

KGAPI2::Drive::Drives::Restrictions Class Reference

#include <drives.h>

Public Member Functions

 Restrictions (const Restrictions &other)
 
bool adminManagedRestrictions () const
 
bool copyRequiresWriterPermission () const
 
bool domainUsersOnly () const
 
bool driveMembersOnly () const
 
bool operator!= (const Restrictions &other) const
 
bool operator== (const Restrictions &other) const
 
void setAdminManagedRestrictions (bool adminManagedRestrictions) const
 
void setCopyRequiresWriterPermission (bool copyRequiresWriterPermission) const
 
void setDomainUsersOnly (bool domainUsersOnly) const
 
void setDriveMembersOnly (bool driveMembersOnly) const
 

Detailed Description

Drives::Restrictions holds the structure used for a set of restrictions that apply to this shared drive or items inside this shared drive.

Definition at line 40 of file drives.h.

Constructor & Destructor Documentation

◆ Restrictions() [1/2]

Drives::Restrictions::Restrictions ( )

Definition at line 38 of file drives.cpp.

◆ Restrictions() [2/2]

Drives::Restrictions::Restrictions ( const Restrictions & other)

Definition at line 43 of file drives.cpp.

Member Function Documentation

◆ adminManagedRestrictions()

bool Drives::Restrictions::adminManagedRestrictions ( ) const

Returns whether administrative privileges on this shared drive are required to modify restrictions.

Definition at line 59 of file drives.cpp.

◆ copyRequiresWriterPermission()

bool Drives::Restrictions::copyRequiresWriterPermission ( ) const
nodiscard

Returns whether the options to copy, print, or download files inside this shared drive, should be disabled for readers and commenters.

When this restriction is set to true, it will override the similarly named field to true for any file inside this shared drive.

Definition at line 69 of file drives.cpp.

◆ domainUsersOnly()

bool Drives::Restrictions::domainUsersOnly ( ) const
nodiscard

Returns whether access to this shared drive and items inside this shared drive is restricted to users of the domain to which this shared drive belongs.

This restriction may be overridden by other sharing policies controlled outside of this shared drive.

Definition at line 79 of file drives.cpp.

◆ driveMembersOnly()

bool Drives::Restrictions::driveMembersOnly ( ) const
nodiscard

Returns whether access to items inside this shared drive is restricted to its members.

Definition at line 89 of file drives.cpp.

◆ operator!=()

bool KGAPI2::Drive::Drives::Restrictions::operator!= ( const Restrictions & other) const
inline

Definition at line 54 of file drives.h.

◆ operator==()

bool Drives::Restrictions::operator== ( const Restrictions & other) const

Definition at line 50 of file drives.cpp.

◆ setAdminManagedRestrictions()

void Drives::Restrictions::setAdminManagedRestrictions ( bool adminManagedRestrictions) const

Sets whether administrative privileges on this shared drive are required to modify restrictions.

Parameters
adminManagedRestrictions

Definition at line 64 of file drives.cpp.

◆ setCopyRequiresWriterPermission()

void Drives::Restrictions::setCopyRequiresWriterPermission ( bool copyRequiresWriterPermission) const

Sets whether the options to copy, print, or download files inside this shared drive, should be disabled for readers and commenters.

When this restriction is set to true, it will override the similarly named field to true for any file inside this shared drive.

Parameters
copyRequiresWriterPermission

Definition at line 74 of file drives.cpp.

◆ setDomainUsersOnly()

void Drives::Restrictions::setDomainUsersOnly ( bool domainUsersOnly) const

Sets whether access to this shared drive and items inside this shared drive is restricted to users of the domain to which this shared drive belongs.

This restriction may be overridden by other sharing policies controlled outside of this shared drive.

Parameters
domainUsersOnly

Definition at line 84 of file drives.cpp.

◆ setDriveMembersOnly()

void Drives::Restrictions::setDriveMembersOnly ( bool driveMembersOnly) const

Sets whether access to items inside this shared drive is restricted to its members.

Parameters
driveMembersOnly

Definition at line 94 of file drives.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:08:14 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.