File indexing completed on 2024-05-12 05:17:09
0001 // SPDX-FileCopyrightText: 2023 Claudio Cambra <claudio.cambra@kde.org> 0002 // SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0003 0004 #pragma once 0005 0006 #include <QObject> 0007 0008 #include "identitymanager.h" 0009 0010 namespace KIdentityManagementQuick 0011 { 0012 class IdentityUtils : public QObject 0013 { 0014 Q_OBJECT 0015 0016 public: 0017 explicit IdentityUtils() = default; 0018 0019 Q_INVOKABLE bool removeIdentity(const QString &identityName); 0020 0021 private: 0022 KIdentityManagementCore::IdentityManager *const mIdentityManager = KIdentityManagementCore::IdentityManager::self(); 0023 }; 0024 }