Libkleo

useridproxymodel.h
1/*
2 SPDX-FileCopyrightText: 2024 g10 Code GmbH
3 SPDX-FileContributor: Tobias Fella <tobias.fella@gnupg.com>
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "kleo_export.h"
10#include <Libkleo/KeyListSortFilterProxyModel>
11
12namespace Kleo
13{
14
15class KLEO_EXPORT UserIDProxyModel : public Kleo::AbstractKeyListSortFilterProxyModel
16{
17 Q_OBJECT
18
19public:
20 explicit UserIDProxyModel(QObject *parent = nullptr);
21 ~UserIDProxyModel() override;
22
23 QModelIndex mapFromSource(const QModelIndex &sourceIndex) const override;
24 QModelIndex mapToSource(const QModelIndex &proxyIndex) const override;
25 int rowCount(const QModelIndex &parent = {}) const override;
26 QModelIndex index(int row, int column, const QModelIndex &parent) const override;
27 QModelIndex parent(const QModelIndex &) const override;
28 int columnCount(const QModelIndex &) const override;
29 QVariant data(const QModelIndex &index, int role) const override;
30 UserIDProxyModel *clone() const override;
31 QModelIndex index(const KeyGroup &) const override;
32 QModelIndex index(const GpgME::Key &key) const override;
33
34private:
35 class Private;
36 const std::unique_ptr<Private> d;
37};
38}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:14 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.