KGAPI2::Drive::File::Labels

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

Member Function Documentation

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

bool File::Labels::restricted ( ) const

Returns whether viewers are prevented from downloading this file.

Definition at line 102 of file file.cpp.

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

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

Sets whether viewers are prevented from downloading this file.

Parameters
restricted

Definition at line 107 of file file.cpp.

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

Sets whether this file is starred by the user.

Parameters
starred

Definition at line 77 of file file.cpp.

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

Sets whether this file has been trashed.

Parameters
trashed

Definition at line 97 of file file.cpp.

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

Sets whether this file has been viewed by this user.

Parameters
viewed

Definition at line 117 of file file.cpp.

bool File::Labels::starred ( ) const

Returns whether this file is starred by the user.

Definition at line 72 of file file.cpp.

bool File::Labels::trashed ( ) const

Returns whether this file has been trashed.

Definition at line 92 of file file.cpp.

bool File::Labels::viewed ( ) const

Returns whether this file has been viewed by this user.

Definition at line 112 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-2020 The KDE developers.
Generated on Mon Sep 21 2020 23:10:56 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.