Libkleo
12#include "kleo_export.h"
14#include <QAbstractTableModel>
27class KLEO_EXPORT SubkeyListModel :
public QAbstractTableModel
31 explicit SubkeyListModel(QObject *parent =
nullptr);
32 ~SubkeyListModel()
override;
34 GpgME::Key key()
const;
49 GpgME::Subkey subkey(
const QModelIndex &idx)
const;
50 std::vector<GpgME::Subkey> subkeys(
const QList<QModelIndex> &indexes)
const;
53 QModelIndex index(
const GpgME::Subkey &subkey,
int col = 0)
const;
54 QList<QModelIndex> indexes(
const std::vector<GpgME::Subkey> &subkeys)
const;
57 void setKey(
const GpgME::Key &key);
61 int columnCount(
const QModelIndex &pidx = QModelIndex())
const override;
62 int rowCount(
const QModelIndex &pidx = QModelIndex())
const override;
64 QVariant data(
const QModelIndex &index,
int role =
Qt::DisplayRole)
const override;
68 QScopedPointer<Private>
const d;
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const const override
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:50:12 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.