File indexing completed on 2024-04-21 16:20:06
0001 /* 0002 SPDX-FileCopyrightText: 2009 Will Stephenson <wstephenson@kde.org> 0003 SPDX-FileCopyrightText: 2013 Lukas Tinkl <ltinkl@redhat.com> 0004 SPDX-FileCopyrightText: 2014 Jan Grulich <jgrulich@redhat.com> 0005 0006 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0007 */ 0008 0009 #ifndef PLASMA_NM_MODEM_MONITOR_H 0010 #define PLASMA_NM_MODEM_MONITOR_H 0011 0012 #include <QDBusPendingCallWatcher> 0013 #include <QObject> 0014 0015 #include <ModemManagerQt/Modem> 0016 #include <ModemManagerQt/ModemDevice> 0017 0018 class ModemMonitorPrivate; 0019 0020 /** 0021 * Monitors modem hardware and provides a PIN unlock dialog 0022 */ 0023 class Q_DECL_EXPORT ModemMonitor : public QObject 0024 { 0025 Q_OBJECT 0026 Q_DECLARE_PRIVATE(ModemMonitor) 0027 public: 0028 explicit ModemMonitor(QObject *parent); 0029 ~ModemMonitor() override; 0030 0031 public Q_SLOTS: 0032 void unlockModem(const QString &modemUni); 0033 private Q_SLOTS: 0034 void requestPin(MMModemLock lock); 0035 void onSendPinArrived(QDBusPendingCallWatcher *); 0036 0037 private: 0038 ModemMonitorPrivate *const d_ptr; 0039 }; 0040 0041 #endif // PLASMA_NM_MODEM_MONITOR_H