Kgapi

accountinfo.h
1 /*
2  * This file is part of LibKGAPI library
3  *
4  * SPDX-FileCopyrightText: 2013 Daniel Vrátil <[email protected]>
5  *
6  * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
7  */
8 
9 #ifndef LIBKGAPI2_ACCOUNTINFO_H
10 #define LIBKGAPI2_ACCOUNTINFO_H
11 
12 #include "object.h"
13 #include "kgapicore_export.h"
14 
15 namespace KGAPI2
16 {
17 
32 class KGAPICORE_EXPORT AccountInfo : public KGAPI2::Object
33 {
34  public:
38  AccountInfo();
39 
43  AccountInfo(const AccountInfo &other);
44 
48  virtual ~AccountInfo();
49 
50  bool operator==(const AccountInfo &other) const;
51  bool operator!=(const AccountInfo &other) const { return !operator==(other); }
52 
58  void setId(const QString &id);
59 
63  QString id() const;
64 
70  void setEmail(const QString &email);
71 
77  QString email() const;
78 
84  void setName(const QString &name);
85 
89  QString name() const;
90 
96  void setGivenName(const QString &givenName);
97 
101  QString givenName() const;
102 
108  void setFamilyName(const QString &familyName);
109 
113  QString familyName() const;
114 
120  void setBirthday(const QString &birthday);
121 
125  QString birthday() const;
126 
132  void setGender(const QString &gender);
133 
137  QString gender() const;
138 
144  void setLink(const QString &link);
145 
149  QString link() const;
150 
156  void setLocale(const QString &locale);
157 
161  QString locale() const;
162 
168  void setTimezone(const QString &timezone);
169 
173  QString timezone() const;
174 
180  void setVerifiedEmail(bool verified);
181 
185  bool verifiedEmail() const;
186 
192  void setPhotoUrl(const QString &url);
193 
197  QString photoUrl() const;
198 
204  static AccountInfoPtr fromJSON(const QByteArray &jsonData);
205  private:
206  class Private;
207  Private * const d;
208  friend class Private;
209 
210 };
211 
212 } // namespace KGAPI2
213 
214 #endif // LIBKGAPI2_ACCOUNTINFO_H
Base class for all objects.
Definition: object.h:31
A job to fetch a single map tile described by a StaticMapUrl.
Definition: blog.h:16
AccountInfo contains information about user&#39;s Google account.
Definition: accountinfo.h:32
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Fri Aug 14 2020 23:09:48 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.