File indexing completed on 2025-01-05 04:55:44
0001 /* -*- mode: c++; c-basic-offset:4 -*- 0002 models/keycache_p.h 0003 0004 This file is part of Kleopatra, the KDE keymanager 0005 SPDX-FileCopyrightText: 2008 Klarälvdalens Datakonsult AB 0006 0007 SPDX-License-Identifier: GPL-2.0-or-later 0008 */ 0009 0010 #pragma once 0011 0012 #include "keycache.h" 0013 0014 namespace GpgME 0015 { 0016 class KeyListResult; 0017 } 0018 0019 namespace Kleo 0020 { 0021 0022 class KeyCache::RefreshKeysJob : public QObject 0023 { 0024 Q_OBJECT 0025 public: 0026 explicit RefreshKeysJob(KeyCache *cache, QObject *parent = nullptr); 0027 ~RefreshKeysJob() override; 0028 0029 void start(); 0030 void cancel(); 0031 0032 Q_SIGNALS: 0033 void done(const GpgME::KeyListResult &); 0034 void canceled(); 0035 0036 private: 0037 class Private; 0038 friend class Private; 0039 Private *const d; 0040 Q_PRIVATE_SLOT(d, void listAllKeysJobDone(GpgME::KeyListResult, std::vector<GpgME::Key>)) 0041 }; 0042 }