Libkleo

useridlistproxymodel.h
1// SPDX-FileCopyrightText: 2024 g10 Code GmbH
2// SPDX-FileContributor: Tobias Fella <tobias.fella@gnupg.com>
3// SPDX-License-Identifier: GPL-2.0-or-later
4
5#pragma once
6
7#include "kleo_export.h"
8
9#include <gpgme++/key.h>
10
11#include <QSortFilterProxyModel>
12
13namespace Kleo
14{
15
16class KLEO_EXPORT UserIDListProxyModel : public QSortFilterProxyModel
17{
18 Q_OBJECT
19
20public:
21 UserIDListProxyModel(QObject *parent = nullptr);
22 ~UserIDListProxyModel() override;
23
24 bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const override;
25 void setShowOnlyOwnCertifications(bool showOnlyOwnCertifications);
26
27 GpgME::UserID::Signature signature(const QModelIndex &index) const;
28 GpgME::UserID userID(const QModelIndex &index) const;
29
30private:
31 class Private;
32 std::unique_ptr<Private> d;
33};
34
35}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 11 2024 12:11:57 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.