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{
15class UserIDListModel;
16
17class KLEO_EXPORT UserIDListProxyModel : public QSortFilterProxyModel
18{
19 Q_OBJECT
20
21public:
22 UserIDListProxyModel(QObject *parent = nullptr);
23 ~UserIDListProxyModel() override;
24
25 bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const override;
26 void setShowOnlyOwnCertifications(bool showOnlyOwnCertifications);
27
28 GpgME::UserID::Signature signature(const QModelIndex &index) const;
29 GpgME::UserID userID(const QModelIndex &index) const;
30
31private:
32 class Private;
33 std::unique_ptr<Private> d;
34};
35
36}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jul 26 2024 11:50:31 by doxygen 1.11.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.