KGAPI2::Drive::Teamdrive::Restrictions

Search for usage in LXR

KGAPI2::Drive::Teamdrive::Restrictions Class Reference

#include <teamdrive.h>

Public Member Functions

 Restrictions (const Restrictions &other)
 
bool adminManagedRestrictions () const
 
bool copyRequiresWriterPermission () const
 
bool domainUsersOnly () 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 setTeamMembersOnly (bool teamMembersOnly) const
 
bool teamMembersOnly () const
 

Detailed Description

DriveTeamdrive::Restrictions holds the structure used for restrictions property.

Definition at line 39 of file teamdrive.h.

Constructor & Destructor Documentation

◆ Restrictions() [1/2]

Teamdrive::Restrictions::Restrictions ( )

Definition at line 38 of file teamdrive.cpp.

◆ Restrictions() [2/2]

Teamdrive::Restrictions::Restrictions ( const Restrictions & other)

Definition at line 43 of file teamdrive.cpp.

Member Function Documentation

◆ adminManagedRestrictions()

bool Teamdrive::Restrictions::adminManagedRestrictions ( ) const

Returns whether administrative privileges on this Team Drive are required to modify restrictions.

Definition at line 59 of file teamdrive.cpp.

◆ copyRequiresWriterPermission()

bool Teamdrive::Restrictions::copyRequiresWriterPermission ( ) const

Returns whether the options to copy, print, or download files inside this Team 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 Team Drive.

Definition at line 69 of file teamdrive.cpp.

◆ domainUsersOnly()

bool Teamdrive::Restrictions::domainUsersOnly ( ) const

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

This restriction may be overridden by other sharing policies controlled outside of this Team Drive.

Definition at line 79 of file teamdrive.cpp.

◆ operator!=()

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

Definition at line 53 of file teamdrive.h.

◆ operator==()

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

Definition at line 50 of file teamdrive.cpp.

◆ setAdminManagedRestrictions()

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

Sets whether administrative privileges on this Team Drive are required to modify restrictions.

Parameters
adminManagedRestrictions

Definition at line 64 of file teamdrive.cpp.

◆ setCopyRequiresWriterPermission()

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

Sets whether the options to copy, print, or download files inside this Team 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 Team Drive.

Parameters
copyRequiresWriterPermission

Definition at line 74 of file teamdrive.cpp.

◆ setDomainUsersOnly()

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

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

This restriction may be overridden by other sharing policies controlled outside of this Team Drive.

Parameters
domainUsersOnly

Definition at line 84 of file teamdrive.cpp.

◆ setTeamMembersOnly()

void Teamdrive::Restrictions::setTeamMembersOnly ( bool teamMembersOnly) const

Sets whether access to items inside this Team Drive is restricted to members of this Team Drive.

Parameters
teamMembersOnly

Definition at line 94 of file teamdrive.cpp.

◆ teamMembersOnly()

bool Teamdrive::Restrictions::teamMembersOnly ( ) const

Returns whether access to items inside this Team Drive is restricted to members of this Team Drive.

Definition at line 89 of file teamdrive.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 Tue Mar 26 2024 11:19:52 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.