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

Constructor & Destructor Documentation

AccountInfo::AccountInfo ( )

Constructor.

Definition at line 83 of file accountinfo.cpp.

AccountInfo::AccountInfo ( const AccountInfo other)

Copy constructor.

Definition at line 89 of file accountinfo.cpp.

AccountInfo::~AccountInfo ( )
virtual

destructor

Definition at line 95 of file accountinfo.cpp.

Member Function Documentation

QString AccountInfo::birthday ( ) const

Returns user's birthday.

Definition at line 175 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 135 of file accountinfo.cpp.

QString AccountInfo::familyName ( ) const

Returns user's surname.

Definition at line 165 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 240 of file accountinfo.cpp.

QString AccountInfo::gender ( ) const

Returns user's gender.

Definition at line 185 of file accountinfo.cpp.

QString AccountInfo::givenName ( ) const

Returns user's given name.

Definition at line 155 of file accountinfo.cpp.

QString AccountInfo::id ( ) const

Returns account ID.

Definition at line 125 of file accountinfo.cpp.

QString AccountInfo::link ( ) const

Returns link to user's profile.

Definition at line 195 of file accountinfo.cpp.

QString AccountInfo::locale ( ) const

Returns user's preferred locales.

Definition at line 205 of file accountinfo.cpp.

QString AccountInfo::name ( ) const

Returns user's real full name.

Definition at line 145 of file accountinfo.cpp.

QString AccountInfo::photoUrl ( ) const

Returns URL of user's photo.

Definition at line 235 of file accountinfo.cpp.

void AccountInfo::setBirthday ( const QString birthday)

Sets user's birthday.

Parameters
birthday

Definition at line 170 of file accountinfo.cpp.

void AccountInfo::setEmail ( const QString email)

Sets account email.

Parameters
email

Definition at line 130 of file accountinfo.cpp.

void AccountInfo::setFamilyName ( const QString familyName)

Sets user's family name (surname).

Parameters
familyName

Definition at line 160 of file accountinfo.cpp.

void AccountInfo::setGender ( const QString gender)

Sets user's gender.

Parameters
gender

Definition at line 180 of file accountinfo.cpp.

void AccountInfo::setGivenName ( const QString givenName)

Sets user's given name.

Parameters
givenName

Definition at line 150 of file accountinfo.cpp.

void AccountInfo::setId ( const QString id)

Sets an account ID.

Parameters
id

Definition at line 120 of file accountinfo.cpp.

void AccountInfo::setLink ( const QString link)

Sets link to user's profile.

Parameters
link

Definition at line 190 of file accountinfo.cpp.

void AccountInfo::setLocale ( const QString locale)

Sets users locale settings.

Parameters
locale

Definition at line 200 of file accountinfo.cpp.

void AccountInfo::setName ( const QString name)

Sets user's real full name.

Parameters
name

Definition at line 140 of file accountinfo.cpp.

void AccountInfo::setPhotoUrl ( const QString url)

Sets URL of user's photo.

Parameters
url

Definition at line 230 of file accountinfo.cpp.

void AccountInfo::setTimezone ( const QString timezone)

Sets user's timezone name.

Parameters
timezone

Definition at line 210 of file accountinfo.cpp.

void AccountInfo::setVerifiedEmail ( bool  verified)

Sets whether the email address is verified.

Parameters
verified

Definition at line 220 of file accountinfo.cpp.

QString AccountInfo::timezone ( ) const

Returns name of user's timezone.

Definition at line 215 of file accountinfo.cpp.

bool AccountInfo::verifiedEmail ( ) const

Returns whether the email is verified.

Definition at line 225 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 Wed May 27 2020 22:36:28 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.