1 /*  smartcard/deviceinfowatcher.h
2 
3     This file is part of Kleopatra, the KDE keymanager
4     SPDX-FileCopyrightText: 2020 g10 Code GmbH
5     SPDX-FileContributor: Ingo Klöcker <dev@ingo-kloecker.de>
6 
7     SPDX-License-Identifier: GPL-2.0-or-later
8 */
9 #pragma once
10 
11 #include <QObject>
12 
13 namespace Kleo
14 {
15 
16 class DeviceInfoWatcher : public QObject
17 {
18     Q_OBJECT
19 public:
20     explicit DeviceInfoWatcher(QObject *parent = nullptr);
21     ~DeviceInfoWatcher() override;
22 
23     static bool isSupported();
24 
25     void start();
26 
27 Q_SIGNALS:
28     void statusChanged(const QByteArray &details);
29 
30 private:
31     class Worker;
32 
33 private:
34     class Private;
35     Private * const d;
36 };
37 
38 }
39 
40