Libkleo
9#include "kleo_export.h"
11#include <libkleo/enum.h>
12#include <libkleo/keyusage.h>
16#include <gpgme++/global.h>
28class UserIDSelectionComboPrivate;
30class KLEO_EXPORT UserIDSelectionCombo :
public QWidget
35 explicit UserIDSelectionCombo(QWidget *parent =
nullptr);
36 explicit UserIDSelectionCombo(
bool secretOnly, QWidget *parent =
nullptr);
48 explicit UserIDSelectionCombo(KeyUsage::Flags usage, QWidget *parent =
nullptr);
52 explicit UserIDSelectionCombo(KeyUsage::Flag usage, QWidget *parent =
nullptr);
53 UserIDSelectionCombo(
bool secretOnly, KeyUsage::Flags usage, QWidget *parent =
nullptr);
54 ~UserIDSelectionCombo()
override;
56 void setKeyFilter(
const std::shared_ptr<const KeyFilter> &kf);
57 std::shared_ptr<const KeyFilter> keyFilter()
const;
59 void setIdFilter(
const QString &
id);
60 QString idFilter()
const;
64 GpgME::Key currentKey()
const;
65 void setCurrentKey(
const GpgME::Key &key);
66 void setCurrentKey(
const QString &fingerprint);
68 GpgME::UserID currentUserID()
const;
69 void setCurrentUserID(
const GpgME::UserID &userID);
71 void setDefaultKey(
const QString &fingerprint);
72 void setDefaultKey(
const QString &fingerprint, GpgME::Protocol proto);
73 QString defaultKey()
const;
74 QString defaultKey(GpgME::Protocol proto)
const;
76 void prependCustomItem(
const QIcon &icon,
const QString &text,
const QVariant &data);
77 void appendCustomItem(
const QIcon &icon,
const QString &text,
const QVariant &data);
78 void prependCustomItem(
const QIcon &icon,
const QString &text,
const QVariant &data,
const QString &toolTip);
79 void appendCustomItem(
const QIcon &icon,
const QString &text,
const QVariant &data,
const QString &toolTip);
80 void removeCustomItem(
const QVariant &data);
82 QComboBox *combo()
const;
84 int findUserId(
const GpgME::UserID &userId)
const;
87 void customItemSelected(
const QVariant &data);
88 void currentKeyChanged(
const GpgME::Key &key);
89 void keyListingFinished();
90 void certificateSelectionRequested();
96 std::unique_ptr<UserIDSelectionComboPrivate>
const d;
An abstract base class key filters.
void init(KXmlGuiWindow *window, KGameDifficulty *difficulty=nullptr)
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.