KGAPI2::AccountInfo
#include <accountinfo.h>

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 |
![]() | |
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.
- Since
- 0.2
Definition at line 32 of file accountinfo.h.
Constructor & Destructor Documentation
AccountInfo::AccountInfo | ( | ) |
Constructor.
Definition at line 68 of file accountinfo.cpp.
AccountInfo::AccountInfo | ( | const AccountInfo & | other | ) |
Copy constructor.
Definition at line 74 of file accountinfo.cpp.
|
virtual |
destructor
Definition at line 80 of file accountinfo.cpp.
Member Function Documentation
QString AccountInfo::birthday | ( | ) | const |
Returns user's birthday.
Definition at line 160 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 120 of file accountinfo.cpp.
QString AccountInfo::familyName | ( | ) | const |
Returns user's surname.
Definition at line 150 of file accountinfo.cpp.
|
static |
Parses raw JSON data into AccountInfo object.
- Parameters
-
jsonData JSON data to parse
Definition at line 225 of file accountinfo.cpp.
QString AccountInfo::gender | ( | ) | const |
Returns user's gender.
Definition at line 170 of file accountinfo.cpp.
QString AccountInfo::givenName | ( | ) | const |
Returns user's given name.
Definition at line 140 of file accountinfo.cpp.
QString AccountInfo::id | ( | ) | const |
Returns account ID.
Definition at line 110 of file accountinfo.cpp.
QString AccountInfo::link | ( | ) | const |
Returns link to user's profile.
Definition at line 180 of file accountinfo.cpp.
QString AccountInfo::locale | ( | ) | const |
Returns user's preferred locales.
Definition at line 190 of file accountinfo.cpp.
QString AccountInfo::name | ( | ) | const |
Returns user's real full name.
Definition at line 130 of file accountinfo.cpp.
QString AccountInfo::photoUrl | ( | ) | const |
Returns URL of user's photo.
Definition at line 220 of file accountinfo.cpp.
void AccountInfo::setBirthday | ( | const QString & | birthday | ) |
void AccountInfo::setEmail | ( | const QString & | ) |
void AccountInfo::setFamilyName | ( | const QString & | familyName | ) |
Sets user's family name (surname).
- Parameters
-
familyName
Definition at line 145 of file accountinfo.cpp.
void AccountInfo::setGender | ( | const QString & | gender | ) |
void AccountInfo::setGivenName | ( | const QString & | givenName | ) |
void AccountInfo::setId | ( | const QString & | id | ) |
void AccountInfo::setLink | ( | const QString & | link | ) |
void AccountInfo::setLocale | ( | const QString & | locale | ) |
void AccountInfo::setName | ( | const QString & | name | ) |
void AccountInfo::setPhotoUrl | ( | const QString & | url | ) |
void AccountInfo::setTimezone | ( | const QString & | timezone | ) |
void AccountInfo::setVerifiedEmail | ( | bool | verified | ) |
Sets whether the email address is verified.
- Parameters
-
verified
Definition at line 205 of file accountinfo.cpp.
QString AccountInfo::timezone | ( | ) | const |
Returns name of user's timezone.
Definition at line 200 of file accountinfo.cpp.
bool AccountInfo::verifiedEmail | ( | ) | const |
Returns whether the email is verified.
Definition at line 210 of file accountinfo.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Mar 8 2021 23:10:42 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.