// SPDX-FileCopyrightText: 2023 Devin Lin // SPDX-License-Identifier: GPL-2.0-or-later OR LicenseRef-KDE-Accepted-GPL #pragma once #include #include #include #include #include class AutoDetectAPN : public KDEDModule { Q_OBJECT public: AutoDetectAPN(QObject *parent, const QList &); struct APNEntry { QString apn; QString carrier; QString protocol; }; std::optional findAPN(const QString &operatorCode, const QString &gid1, const QString &spn, const QString &imsi) const; private: QCoro::Task checkAndAddAutodetectedAPN(); NetworkManager::ModemDevice::Ptr findNMModem(ModemManager::Modem::Ptr mmModem); };