KIdentityManagementQuick::KeyListModelInterface Class

class KIdentityManagementQuick::KeyListModelInterface

This interface defines the roles and rolenames that are expected in the QtQuick Cryptography editor. More...

Header: #include <KIdentityManagementQuick/KeyListModelInterface>
CMake: find_package(KPim6IdentityManagementQuick REQUIRED)
target_link_libraries(mytarget PRIVATE KPim6::IdentityManagementQuick)

Public Types

enum Roles { KeyIdentifierRole, KeyByteArrayRole }

Public Functions

virtual ~KeyListModelInterface()
virtual QModelIndex indexForIdentity(const KIdentityManagementCore::Identity &identity, const KIdentityManagementQuick::KeyUseTypes::KeyUse keyUse) const = 0

Static Public Members

QHash<int, QByteArray> roleNames()

Detailed Description

Member Type Documentation

enum KeyListModelInterface::Roles

Data roles expected from the key list model.

ConstantValueDescription
KIdentityManagementQuick::KeyListModelInterface::KeyIdentifierRoleQt::UserRole + 1The identifier of the key
KIdentityManagementQuick::KeyListModelInterface::KeyByteArrayRole258The key as a byte array

Member Function Documentation

[virtual noexcept] KeyListModelInterface::~KeyListModelInterface()

Destroys the key list model interface.

[pure virtual] QModelIndex KeyListModelInterface::indexForIdentity(const KIdentityManagementCore::Identity &identity, const KIdentityManagementQuick::KeyUseTypes::KeyUse keyUse) const

Returns the index of the key used by identity for the given keyUse.

[static] QHash<int, QByteArray> KeyListModelInterface::roleNames()

Returns the role names used by the QtQuick Cryptography editor.