File indexing completed on 2024-06-02 05:24:43
0001 /* smartcard/deviceinfowatcher.h 0002 0003 This file is part of Kleopatra, the KDE keymanager 0004 SPDX-FileCopyrightText: 2020 g10 Code GmbH 0005 SPDX-FileContributor: Ingo Klöcker <dev@ingo-kloecker.de> 0006 0007 SPDX-License-Identifier: GPL-2.0-or-later 0008 */ 0009 #pragma once 0010 0011 #include <QObject> 0012 0013 namespace Kleo 0014 { 0015 0016 class DeviceInfoWatcher : public QObject 0017 { 0018 Q_OBJECT 0019 public: 0020 explicit DeviceInfoWatcher(QObject *parent = nullptr); 0021 ~DeviceInfoWatcher() override; 0022 0023 static bool isSupported(); 0024 0025 void start(); 0026 0027 Q_SIGNALS: 0028 void statusChanged(const QByteArray &details); 0029 void startOfGpgAgentRequested(); 0030 0031 private: 0032 class Worker; 0033 0034 private: 0035 class Private; 0036 Private *const d; 0037 }; 0038 0039 }