File indexing completed on 2024-05-26 05:19:00
0001 /* 0002 SPDX-FileCopyrightText: 2014 Sandro Knauß <knauss@kolabsys.com> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include "kidentitymanagementcore_export.h" 0010 0011 #include <QSet> 0012 #include <QString> 0013 0014 namespace KIdentityManagementCore 0015 { 0016 /* 0017 * Very fast version of IdentityManager::thatIsMe, that is using an internal cache (allEmails) 0018 * - make sure that only an email address is used as parameter and NO name <email> 0019 * - emails are tested with email.toLower(), so no need to lower them before. 0020 */ 0021 [[nodiscard]] KIDENTITYMANAGEMENTCORE_EXPORT bool thatIsMe(const QString &email); 0022 0023 /* 0024 * Very fast version of IdentityManager::allEmails , that is using an internal cache. 0025 * The cache is updated with IdentityManager::changed signal. 0026 * All email addresses + alias of the identities. The email addresses are all lowered. 0027 */ 0028 [[nodiscard]] KIDENTITYMANAGEMENTCORE_EXPORT const QSet<QString> &allEmails(); 0029 }