KIdentityManagement

identitytreeview.h
1// SPDX-FileCopyrightText: 2024 Laurent Montel <montel@kde.org>
2// SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
3
4#pragma once
5
6#include "kidentitymanagementwidgets_export.h"
7#include <QTreeView>
8namespace KIdentityManagementCore
9{
10class IdentityTreeSortProxyModel;
11class IdentityActivitiesAbstract;
12class Identity;
13class IdentityTreeModel;
14}
15namespace KIdentityManagementWidgets
16{
17class KIDENTITYMANAGEMENTWIDGETS_EXPORT IdentityTreeView : public QTreeView
18{
19 Q_OBJECT
20public:
21 explicit IdentityTreeView(QWidget *parent = nullptr);
22 ~IdentityTreeView() override;
23
24 void setIdentityActivitiesAbstract(KIdentityManagementCore::IdentityActivitiesAbstract *newIdentityActivitiesAbstract);
25 [[nodiscard]] KIdentityManagementCore::IdentityActivitiesAbstract *identityActivitiesAbstract() const;
26
27 [[nodiscard]] bool enablePlasmaActivities() const;
28 void setEnablePlasmaActivities(bool newEnablePlasmaActivities);
29
30 [[nodiscard]] KIdentityManagementCore::IdentityTreeSortProxyModel *identityProxyModel() const;
31
32 KIdentityManagementCore::Identity &modifyIdentityForUoid(uint uoid);
33
34 [[nodiscard]] KIdentityManagementCore::IdentityTreeModel *identityTreeModel() const;
35
36private:
37 KIdentityManagementCore::IdentityTreeSortProxyModel *const mIdentityProxyModel;
38 KIdentityManagementCore::IdentityTreeModel *mIdentityModel = nullptr;
39};
40}
User identity information.
Definition identity.h:74
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.