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 42 of file drives.h.

Member Function Documentation

bool Drives::Restrictions::adminManagedRestrictions ( ) const

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

Definition at line 58 of file drives.cpp.

bool Drives::Restrictions::copyRequiresWriterPermission ( ) const

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 68 of file drives.cpp.

bool Drives::Restrictions::domainUsersOnly ( ) const

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 78 of file drives.cpp.

bool Drives::Restrictions::driveMembersOnly ( ) const

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

Definition at line 88 of file drives.cpp.

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 63 of file drives.cpp.

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 73 of file drives.cpp.

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 83 of file drives.cpp.

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 93 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-2021 The KDE developers.
Generated on Fri Jun 18 2021 23:10:48 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.