KGAPI2::Drive::Drives
#include <drives.h>
Classes | |
class | BackgroundImageFile |
class | Capabilities |
class | Restrictions |
Public Types | |
using | BackgroundImageFilePtr = QSharedPointer<BackgroundImageFile> |
using | CapabilitiesPtr = QSharedPointer<Capabilities> |
using | RestrictionsPtr = QSharedPointer<Restrictions> |
Public Member Functions | |
Drives (const Drives &other) | |
BackgroundImageFilePtr | backgroundImageFile () const |
QString | backgroundImageLink () const |
CapabilitiesPtr | capabilities () const |
QString | colorRgb () const |
QDateTime | createdDate () const |
bool | hidden () const |
QString | id () const |
QString | name () const |
bool | operator!= (const Drives &other) const |
bool | operator== (const Drives &other) const |
RestrictionsPtr | restrictions () const |
void | setBackgroundImageFile (const BackgroundImageFilePtr &backgroundImageFile) const |
void | setColorRgb (const QString &colorRgb) const |
void | setId (const QString &id) const |
void | setName (const QString &name) const |
void | setRestrictions (const RestrictionsPtr &restrictions) const |
void | setThemeId (const QString &themeId) const |
QString | themeId () const |
Public Member Functions inherited from KGAPI2::Object | |
Object () | |
Object (const Object &other) | |
virtual | ~Object () |
QString | etag () const |
bool | operator== (const Object &other) const |
void | setEtag (const QString &etag) |
Static Public Member Functions | |
static DrivesPtr | fromJSON (const QByteArray &jsonData) |
static DrivesList | fromJSONFeed (const QByteArray &jsonData, FeedData &feedData) |
static QByteArray | toJSON (const DrivesPtr &drives) |
Detailed Description
Drives contains a representation of a Drive.
Getters and setters' documentation is based on Google Drive's API v2 reference
- See also
- Drives
- Since
- 5.11.41
Member Typedef Documentation
◆ BackgroundImageFilePtr
◆ CapabilitiesPtr
◆ RestrictionsPtr
Constructor & Destructor Documentation
◆ Drives() [1/2]
Drives::Drives | ( | ) |
Definition at line 472 of file drives.cpp.
◆ Drives() [2/2]
Drives::Drives | ( | const Drives & | other | ) |
Definition at line 478 of file drives.cpp.
Member Function Documentation
◆ backgroundImageFile()
Drives::BackgroundImageFilePtr Drives::backgroundImageFile | ( | ) | const |
Returns the image file and cropping parameters from which a background image for this shared drive is set.
Definition at line 544 of file drives.cpp.
◆ backgroundImageLink()
QString Drives::backgroundImageLink | ( | ) | const |
Returns the backgroundImageLink of the shared drive.
Definition at line 554 of file drives.cpp.
◆ capabilities()
Drives::CapabilitiesPtr Drives::capabilities | ( | ) | const |
Returns the capabilities the current user has on this shared drive.
Definition at line 559 of file drives.cpp.
◆ colorRgb()
QString Drives::colorRgb | ( | ) | const |
Returns the colorRgb of the shared drive.
Definition at line 534 of file drives.cpp.
◆ createdDate()
QDateTime Drives::createdDate | ( | ) | const |
Returns the time at which the shared drive was created.
Definition at line 564 of file drives.cpp.
◆ fromJSON()
|
static |
Definition at line 584 of file drives.cpp.
◆ fromJSONFeed()
|
static |
Definition at line 595 of file drives.cpp.
◆ hidden()
bool Drives::hidden | ( | ) | const |
Returns whether the shared drive is hidden from default view.
Definition at line 569 of file drives.cpp.
◆ id()
QString Drives::id | ( | ) | const |
Returns the ID of this shared drive which is also the ID of the top level folder of this shared drive.
Definition at line 504 of file drives.cpp.
◆ name()
QString Drives::name | ( | ) | const |
Returns the name of the drive.
Definition at line 514 of file drives.cpp.
◆ operator!=()
|
inline |
◆ operator==()
bool Drives::operator== | ( | const Drives & | other | ) | const |
Definition at line 486 of file drives.cpp.
◆ restrictions()
Drives::RestrictionsPtr Drives::restrictions | ( | ) | const |
Returns the set of restrictions that apply to this shared drive or items inside this shared drive.
Definition at line 579 of file drives.cpp.
◆ setBackgroundImageFile()
void Drives::setBackgroundImageFile | ( | const BackgroundImageFilePtr & | backgroundImageFile | ) | const |
Sets the backgroundImageFile of the shared drive.
- Parameters
-
backgroundImageFile
Definition at line 549 of file drives.cpp.
◆ setColorRgb()
void Drives::setColorRgb | ( | const QString & | colorRgb | ) | const |
Sets the colorRgb of the shared drive.
- Parameters
-
colorRgb
Definition at line 539 of file drives.cpp.
◆ setId()
void Drives::setId | ( | const QString & | id | ) | const |
Sets the ID of this shared drive which is also the ID of the top level folder of this shared drive.
- Parameters
-
id
Definition at line 509 of file drives.cpp.
◆ setName()
void Drives::setName | ( | const QString & | name | ) | const |
◆ setRestrictions()
void Drives::setRestrictions | ( | const RestrictionsPtr & | restrictions | ) | const |
Sets the restrictions of the shared drive.
- Parameters
-
restrictions
Definition at line 574 of file drives.cpp.
◆ setThemeId()
void Drives::setThemeId | ( | const QString & | themeId | ) | const |
◆ themeId()
QString Drives::themeId | ( | ) | const |
Returns the themeId of the drive.
Definition at line 524 of file drives.cpp.
◆ toJSON()
|
static |
Definition at line 628 of file drives.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:17:41 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.