KGAPI2::AccountInfo

#include <accountinfo.h>

Inheritance diagram for KGAPI2::AccountInfo:

Public Member Functions

 AccountInfo ()
 
 AccountInfo (const AccountInfo &other)
 
virtual ~AccountInfo ()
 
QString birthday () const
 
QString email () const
 
QString familyName () const
 
QString gender () const
 
QString givenName () const
 
QString id () const
 
QString link () const
 
QString locale () const
 
QString name () const
 
bool operator!= (const AccountInfo &other) const
 
bool operator== (const AccountInfo &other) const
 
QString photoUrl () const
 
void setBirthday (const QString &birthday)
 
void setEmail (const QString &email)
 
void setFamilyName (const QString &familyName)
 
void setGender (const QString &gender)
 
void setGivenName (const QString &givenName)
 
void setId (const QString &id)
 
void setLink (const QString &link)
 
void setLocale (const QString &locale)
 
void setName (const QString &name)
 
void setPhotoUrl (const QString &url)
 
void setTimezone (const QString &timezone)
 
void setVerifiedEmail (bool verified)
 
QString timezone () const
 
bool verifiedEmail () 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 AccountInfoPtr fromJSON (const QByteArray &jsonData)
 

Detailed Description

AccountInfo contains information about user's Google account.

It is possible to obtain only information about account to which we have access token.

Some information might be empty, but id and email are guaranteed to be always filled.

The accountInfo service provides read-only access.

Author
Daniel Vrátil dvrat[email protected][email protected][email protected]edhat[email protected].com
Since
0.2

Definition at line 32 of file accountinfo.h.

Constructor & Destructor Documentation

AccountInfo::AccountInfo ( )

Constructor.

Definition at line 69 of file accountinfo.cpp.

AccountInfo::AccountInfo ( const AccountInfo other)

Copy constructor.

Definition at line 75 of file accountinfo.cpp.

AccountInfo::~AccountInfo ( )
virtual

destructor

Definition at line 81 of file accountinfo.cpp.

Member Function Documentation

QString AccountInfo::birthday ( ) const

Returns user's birthday.

Definition at line 161 of file accountinfo.cpp.

QString AccountInfo::email ( ) const

Returns account email address.

Note that address does not have to be @gmail.com.

Definition at line 121 of file accountinfo.cpp.

QString AccountInfo::familyName ( ) const

Returns user's surname.

Definition at line 151 of file accountinfo.cpp.

AccountInfoPtr AccountInfo::fromJSON ( const QByteArray jsonData)
static

Parses raw JSON data into AccountInfo object.

Parameters
jsonDataJSON data to parse

Definition at line 226 of file accountinfo.cpp.

QString AccountInfo::gender ( ) const

Returns user's gender.

Definition at line 171 of file accountinfo.cpp.

QString AccountInfo::givenName ( ) const

Returns user's given name.

Definition at line 141 of file accountinfo.cpp.

QString AccountInfo::id ( ) const

Returns account ID.

Definition at line 111 of file accountinfo.cpp.

QString AccountInfo::link ( ) const

Returns link to user's profile.

Definition at line 181 of file accountinfo.cpp.

QString AccountInfo::locale ( ) const

Returns user's preferred locales.

Definition at line 191 of file accountinfo.cpp.

QString AccountInfo::name ( ) const

Returns user's real full name.

Definition at line 131 of file accountinfo.cpp.

QString AccountInfo::photoUrl ( ) const

Returns URL of user's photo.

Definition at line 221 of file accountinfo.cpp.

void AccountInfo::setBirthday ( const QString birthday)

Sets user's birthday.

Parameters
birthday

Definition at line 156 of file accountinfo.cpp.

void AccountInfo::setEmail ( const QString email)

Sets account email.

Parameters
email

Definition at line 116 of file accountinfo.cpp.

void AccountInfo::setFamilyName ( const QString familyName)

Sets user's family name (surname).

Parameters
familyName

Definition at line 146 of file accountinfo.cpp.

void AccountInfo::setGender ( const QString gender)

Sets user's gender.

Parameters
gender

Definition at line 166 of file accountinfo.cpp.

void AccountInfo::setGivenName ( const QString givenName)

Sets user's given name.

Parameters
givenName

Definition at line 136 of file accountinfo.cpp.

void AccountInfo::setId ( const QString id)

Sets an account ID.

Parameters
id

Definition at line 106 of file accountinfo.cpp.

void AccountInfo::setLink ( const QString link)

Sets link to user's profile.

Parameters
link

Definition at line 176 of file accountinfo.cpp.

void AccountInfo::setLocale ( const QString locale)

Sets users locale settings.

Parameters
locale

Definition at line 186 of file accountinfo.cpp.

void AccountInfo::setName ( const QString name)

Sets user's real full name.

Parameters
name

Definition at line 126 of file accountinfo.cpp.

void AccountInfo::setPhotoUrl ( const QString url)

Sets URL of user's photo.

Parameters
url

Definition at line 216 of file accountinfo.cpp.

void AccountInfo::setTimezone ( const QString timezone)

Sets user's timezone name.

Parameters
timezone

Definition at line 196 of file accountinfo.cpp.

void AccountInfo::setVerifiedEmail ( bool  verified)

Sets whether the email address is verified.

Parameters
verified

Definition at line 206 of file accountinfo.cpp.

QString AccountInfo::timezone ( ) const

Returns name of user's timezone.

Definition at line 201 of file accountinfo.cpp.

bool AccountInfo::verifiedEmail ( ) const

Returns whether the email is verified.

Definition at line 211 of file accountinfo.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 Aug 10 2020 23:14:23 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.