diff --git a/src/models/keylistmodelinterface.h b/src/models/keylistmodelinterface.h index bb607bcda..9830d5af5 100644 --- a/src/models/keylistmodelinterface.h +++ b/src/models/keylistmodelinterface.h @@ -1,70 +1,66 @@ /* -*- mode: c++; c-basic-offset:4 -*- models/keylistmodelinterface.h This file is part of Kleopatra, the KDE keymanager SPDX-FileCopyrightText: 2008 Klarälvdalens Datakonsult AB SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef __KLEOPATRA_MODELS_KEYLISTMODELINTERFACE_H__ #define __KLEOPATRA_MODELS_KEYLISTMODELINTERFACE_H__ #include #include namespace GpgME { class Key; } class QModelIndex; template class QList; namespace Kleo { class KLEO_EXPORT KeyListModelInterface { public: virtual ~KeyListModelInterface(); static const int FingerprintRole = 0xF1; static const int KeyRole = 0xF2; enum Columns { PrettyName, PrettyEMail, ValidFrom, ValidUntil, TechnicalDetails, ShortKeyID, KeyID, Fingerprint, Issuer, SerialNumber, OwnerTrust, Origin, LastUpdate, -#if 0 - LongKeyID, -#endif - Validity, Summary, // Short summary line Remarks, // Additional remark notations NumColumns, Icon = PrettyName // which column shall the icon be displayed in? }; virtual GpgME::Key key(const QModelIndex &idx) const = 0; virtual std::vector keys(const QList &idxs) const = 0; virtual QModelIndex index(const GpgME::Key &key) const = 0; virtual QList indexes(const std::vector &keys) const = 0; }; } #endif /* __KLEOPATRA_MODELS_KEYLISTMODELINTERFACE_H__ */