File indexing completed on 2024-05-12 09:30:03
0001 // SPDX-FileCopyrightText: 2021 Alexey Andreyev <aa13q@ya.ru> 0002 // 0003 // SPDX-License-Identifier: LicenseRef-KDE-Accepted-GPL 0004 0005 #pragma once 0006 0007 #include <QObject> 0008 0009 class ModemController; 0010 0011 class DeviceUtils : public QObject 0012 { 0013 Q_OBJECT 0014 Q_CLASSINFO("D-Bus Interface", "org.kde.telephony.DeviceUtils") 0015 0016 public: 0017 explicit DeviceUtils(QObject *parent = nullptr); 0018 0019 Q_INVOKABLE QStringList equipmentIdentifiers(); 0020 Q_INVOKABLE QStringList deviceUniList(); 0021 Q_INVOKABLE QString countryCode(); 0022 0023 Q_INVOKABLE void setEquipmentIdentifiers(const QStringList &equipmentIdentifiers); 0024 Q_INVOKABLE void setDeviceUniList(const QStringList &deviceUniList); 0025 Q_INVOKABLE void setCountryCode(const QString &countryCode); 0026 0027 Q_SIGNALS: 0028 void equipmentIdentifiersChanged(const QStringList &equipmentIdentifiers); 0029 void deviceUniListChanged(const QStringList &deviceUniList); 0030 void countryCodeChanged(const QString &countryCode); 0031 0032 private: 0033 QStringList _deviceUniList; 0034 QStringList _equipmentIdentifiers; 0035 QString _countryCode; 0036 };