File indexing completed on 2024-05-19 15:21:42
0001 /* 0002 SPDX-FileCopyrightText: 2015 Jan Grulich <jgrulich@redhat.com> 0003 0004 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0005 */ 0006 0007 #ifndef MODEMMANAGERQT_FAKE_MODEM_MODEM_SIMPLE_H 0008 #define MODEMMANAGERQT_FAKE_MODEM_MODEM_SIMPLE_H 0009 0010 #include "generictypes.h" 0011 0012 #include <QObject> 0013 0014 #include <QDBusObjectPath> 0015 0016 class ModemSimple : public QDBusAbstractAdaptor 0017 { 0018 Q_OBJECT 0019 Q_CLASSINFO("D-Bus Interface", "org.kde.fakemodem.Modem.Simple") 0020 public: 0021 explicit ModemSimple(QObject *parent = nullptr); 0022 ~ModemSimple() override; 0023 0024 public Q_SLOTS: 0025 Q_SCRIPTABLE QDBusObjectPath Connect(const QVariantMap &properties); 0026 Q_SCRIPTABLE void Disconnect(const QDBusObjectPath &bearer); 0027 Q_SCRIPTABLE QVariantMap GetStatus(); 0028 }; 0029 0030 #endif