KGAPI2::Drive::User

Search for usage in LXR

#include <user.h>

Public Member Functions

 User (const User &other)
 
QString displayName () const
 
bool isAuthenticatedUser () const
 
bool operator!= (const User &other) const
 
bool operator== (const User &other) const
 
QString permissionId () const
 
QUrl pictureUrl () const
 

Static Public Member Functions

static UserPtr fromJSON (const QVariantMap &jsonMap)
 

Detailed Description

The authenticated user.

Definition at line 26 of file user.h.

Constructor & Destructor Documentation

◆ User()

User::User ( const User & other)
explicit

Definition at line 45 of file user.cpp.

◆ ~User()

User::~User ( )
virtual

Definition at line 50 of file user.cpp.

Member Function Documentation

◆ displayName()

QString User::displayName ( ) const
nodiscard

Returns a plain text displayable name for this user.

Definition at line 64 of file user.cpp.

◆ fromJSON()

UserPtr User::fromJSON ( const QVariantMap & jsonMap)
static

Definition at line 84 of file user.cpp.

◆ isAuthenticatedUser()

bool User::isAuthenticatedUser ( ) const
nodiscard

Returns whether this user is the same as the authenticated user for whom the request was made.

Definition at line 74 of file user.cpp.

◆ operator!=()

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

Definition at line 32 of file user.h.

◆ operator==()

bool User::operator== ( const User & other) const

Definition at line 55 of file user.cpp.

◆ permissionId()

QString User::permissionId ( ) const
nodiscard

Returns the user's ID as visible in the permissions collection.

Definition at line 79 of file user.cpp.

◆ pictureUrl()

QUrl User::pictureUrl ( ) const
nodiscard

Returns a URL that points to a profile picture of this user.

Definition at line 69 of file user.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 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.