KGAPI2::Drive::File::Labels

Search for usage in LXR

KGAPI2::Drive::File::Labels Class Reference

#include <file.h>

Public Member Functions

 Labels (const Labels &other)
 
KGAPIDRIVE_DEPRECATED bool hidden () const
 
bool operator!= (const Labels &other) const
 
bool operator== (const Labels &other) const
 
bool restricted () const
 
KGAPIDRIVE_DEPRECATED void setHidden (bool hidden)
 
void setRestricted (bool restricted)
 
void setStarred (bool starred)
 
void setTrashed (bool trashed)
 
void setViewed (bool viewed)
 
bool starred () const
 
bool trashed () const
 
bool viewed () const
 

Detailed Description

DriveFile::Labels holds the structure used for labels property.

Definition at line 45 of file file.h.

Constructor & Destructor Documentation

◆ Labels() [1/2]

File::Labels::Labels ( )
explicit

Definition at line 48 of file file.cpp.

◆ Labels() [2/2]

File::Labels::Labels ( const Labels & other)
explicit

Definition at line 53 of file file.cpp.

◆ ~Labels()

File::Labels::~Labels ( )
virtual

Definition at line 58 of file file.cpp.

Member Function Documentation

◆ hidden()

bool File::Labels::hidden ( ) const

Returns whether this file has the 'hidden' label set.

Deprecated
The 'hidden' label has been deprecated in the v2 api and removed in the v3 one. You can just ignore it.

Definition at line 83 of file file.cpp.

◆ operator!=()

bool KGAPI2::Drive::File::Labels::operator!= ( const Labels & other) const
inline

Definition at line 52 of file file.h.

◆ operator==()

bool File::Labels::operator== ( const Labels & other) const

Definition at line 63 of file file.cpp.

◆ restricted()

bool File::Labels::restricted ( ) const

Returns whether viewers are prevented from downloading this file.

Definition at line 103 of file file.cpp.

◆ setHidden()

void File::Labels::setHidden ( bool hidden)

Sets whether this file has the 'hidden' label set.

Deprecated
The 'hidden' label has been deprecated in the v2 api and removed in the v3 one.

Definition at line 88 of file file.cpp.

◆ setRestricted()

void File::Labels::setRestricted ( bool restricted)

Sets whether viewers are prevented from downloading this file.

Parameters
restricted

Definition at line 108 of file file.cpp.

◆ setStarred()

void File::Labels::setStarred ( bool starred)

Sets whether this file is starred by the user.

Parameters
starred

Definition at line 78 of file file.cpp.

◆ setTrashed()

void File::Labels::setTrashed ( bool trashed)

Sets whether this file has been trashed.

Parameters
trashed

Definition at line 98 of file file.cpp.

◆ setViewed()

void File::Labels::setViewed ( bool viewed)

Sets whether this file has been viewed by this user.

Parameters
viewed

Definition at line 118 of file file.cpp.

◆ starred()

bool File::Labels::starred ( ) const
nodiscard

Returns whether this file is starred by the user.

Definition at line 73 of file file.cpp.

◆ trashed()

bool File::Labels::trashed ( ) const

Returns whether this file has been trashed.

Definition at line 93 of file file.cpp.

◆ viewed()

bool File::Labels::viewed ( ) const
nodiscard

Returns whether this file has been viewed by this user.

Definition at line 113 of file file.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 Sat Dec 21 2024 17:00:12 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.