1 /* -*- mode: c++; c-basic-offset:4 -*- 2 commands/lookupcertificatescommand.h 3 4 This file is part of Kleopatra, the KDE keymanager 5 SPDX-FileCopyrightText: 2008 Klarälvdalens Datakonsult AB 6 7 SPDX-License-Identifier: GPL-2.0-or-later 8 */ 9 10 #pragma once 11 12 #include <commands/importcertificatescommand.h> 13 14 namespace Kleo 15 { 16 namespace Commands 17 { 18 19 class LookupCertificatesCommand : public ImportCertificatesCommand 20 { 21 Q_OBJECT 22 public: 23 explicit LookupCertificatesCommand(QAbstractItemView *view, KeyListController *parent); 24 explicit LookupCertificatesCommand(KeyListController *parent); 25 explicit LookupCertificatesCommand(const QString &fingerPrint, KeyListController *parent); 26 ~LookupCertificatesCommand() override; 27 28 private: 29 void doStart() override; 30 void doCancel() override; 31 32 private: 33 class Private; 34 inline Private *d_func(); 35 inline const Private *d_func() const; 36 Q_PRIVATE_SLOT(d_func(), void slotSearchTextChanged(QString)) 37 Q_PRIVATE_SLOT(d_func(), void slotNextKey(GpgME::Key)) 38 Q_PRIVATE_SLOT(d_func(), void slotKeyListResult(GpgME::KeyListResult)) 39 Q_PRIVATE_SLOT(d_func(), void slotImportRequested(std::vector<GpgME::Key>)) 40 Q_PRIVATE_SLOT(d_func(), void slotDetailsRequested(GpgME::Key)) 41 Q_PRIVATE_SLOT(d_func(), void slotSaveAsRequested(std::vector<GpgME::Key>)) 42 Q_PRIVATE_SLOT(d_func(), void slotDialogRejected()) 43 }; 44 45 } 46 } 47 48