KIdentityManagement

identityutils.cpp
1// SPDX-FileCopyrightText: 2023 Claudio Cambra <claudio.cambra@kde.org>
2// SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
3
4#include "identityutils.h"
5
6#include <QTimer>
7
8namespace KIdentityManagementQuick
9{
10bool IdentityUtils::removeIdentity(const QString &identityName)
11{
12 if (!mIdentityManager) {
13 return false;
14 }
15
16 const auto result = mIdentityManager->removeIdentity(identityName);
17 // Need to run async or will crash the UI if this is called from QML
19 return result;
20}
21
22}
23
24#include "moc_identityutils.cpp"
void commit()
Commit changes to disk and emit changed() if necessary.
bool removeIdentity(const QString &identityName)
Removes the identity with name identityName Will return false if the identity is not found,...
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:18:05 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.