File indexing completed on 2024-05-12 05:22:26
0001 /* 0002 * SPDX-FileCopyrightText: 2021 Daniel Vrátil <dvratil@kde.org> 0003 * SPDX-FileCopyrightText: 2022 Claudio Cambra <claudio.cambra@kde.org> 0004 * 0005 * SPDX-License-Identifier: LGPL-2.1-only 0006 * SPDX-License-Identifier: LGPL-3.0-only 0007 * SPDX-License-Identifier: LicenseRef-KDE-Accepted-LGPL 0008 */ 0009 0010 #pragma once 0011 0012 #include <QSharedDataPointer> 0013 #include "kgapipeople_export.h" 0014 0015 class QJsonObject; 0016 class QJsonValue; 0017 class QDateTime; 0018 0019 namespace KGAPI2::People 0020 { 0021 /** 0022 * The metadata about a contact group. 0023 * 0024 * @see https://developers.google.com/people/api/rest/v1/people#contactgroupmetadata 0025 * @since 5.23.0 0026 **/ 0027 class KGAPIPEOPLE_EXPORT ContactGroupMetadata 0028 { 0029 public: 0030 /** Constructs a new ContactGroupMetadata **/ 0031 explicit ContactGroupMetadata(); 0032 ContactGroupMetadata(const ContactGroupMetadata &); 0033 ContactGroupMetadata(ContactGroupMetadata &&) noexcept; 0034 ContactGroupMetadata &operator=(const ContactGroupMetadata &); 0035 ContactGroupMetadata &operator=(ContactGroupMetadata &&) noexcept; 0036 /** Destructor. **/ 0037 ~ContactGroupMetadata(); 0038 0039 bool operator==(const ContactGroupMetadata &) const; 0040 bool operator!=(const ContactGroupMetadata &) const; 0041 0042 static ContactGroupMetadata fromJSON(const QJsonObject &); 0043 QJsonValue toJSON() const; 0044 0045 /** Output only. The time the group was last updated. **/ 0046 QDateTime updateTime() const; 0047 0048 /** Output only. True if the contact group resource has been deleted. Populated only for [`ListContactGroups`](/people/api/rest/v1/contactgroups/list) 0049 * requests that include a sync token. **/ 0050 bool deleted() const; 0051 0052 private: 0053 class Private; 0054 QSharedDataPointer<Private> d; 0055 }; // ContactGroupMetadata 0056 0057 } // namespace KGAPI2::People