Kgapi

user.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 #ifndef KGAPI2_DRIVEUSER_H
9 #define KGAPI2_DRIVEUSER_H
10 
11 #include "types.h"
12 #include "kgapidrive_export.h"
13 
14 #include <QString>
15 #include <QUrl>
16 #include <QVariantMap>
17 
18 namespace KGAPI2
19 {
20 
21 namespace Drive
22 {
23 
27 class KGAPIDRIVE_EXPORT User
28 {
29  public:
30  explicit User(const User &other);
31  virtual ~User();
32  bool operator==(const User &other) const;
33  bool operator!=(const User &other) const { return !operator==(other); }
34 
38  QString displayName() const;
39 
43  QUrl pictureUrl() const;
44 
49  bool isAuthenticatedUser() const;
50 
54  QString permissionId() const;
55 
56  static UserPtr fromJSON(const QVariantMap &jsonMap);
57 
58  private:
59  explicit User();
60 
61  class Private;
62  Private *const d;
63  friend class Private;
64 };
65 
66 } // namespace Drive
67 
68 } // namespace KGAPI2
69 
70 #endif // KGAPI2_DRIVEUSER_H
The authenticated user.
Definition: user.h:27
A job to fetch a single map tile described by a StaticMapUrl.
Definition: blog.h:16
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Aug 13 2020 23:09:58 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.