KIdentityManagement

utils.h
1/*
2 SPDX-FileCopyrightText: 2014 Sandro Knauß <knauss@kolabsys.com>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "kidentitymanagementcore_export.h"
10
11#include <QSet>
12#include <QString>
13
14namespace KIdentityManagementCore
15{
16/*
17 * Very fast version of IdentityManager::thatIsMe, that is using an internal cache (allEmails)
18 * - make sure that only an email address is used as parameter and NO name <email>
19 * - emails are tested with email.toLower(), so no need to lower them before.
20 */
21[[nodiscard]] KIDENTITYMANAGEMENTCORE_EXPORT bool thatIsMe(const QString &email);
22
23/*
24 * Very fast version of IdentityManager::allEmails , that is using an internal cache.
25 * The cache is updated with IdentityManager::changed signal.
26 * All email addresses + alias of the identities. The email addresses are all lowered.
27 */
28[[nodiscard]] KIDENTITYMANAGEMENTCORE_EXPORT const QSet<QString> &allEmails();
29}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:33:11 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.