ModemManagerQt
8#ifndef MODEMMANAGERQT_MODEMDEVICE_H
9#define MODEMMANAGERQT_MODEMDEVICE_H
11#include <ModemManager/ModemManager.h>
13#include <modemmanagerqt_export.h>
16#include <QSharedPointer>
19#include "generictypes.h"
22#include "modemmessaging.h"
27class ModemDevicePrivate;
29class MODEMMANAGERQT_EXPORT ModemDevice :
public QObject
32 Q_DECLARE_PRIVATE(ModemDevice)
34 Q_PROPERTY(QString uni READ uni)
36 typedef QSharedPointer<ModemDevice> Ptr;
37 typedef QList<Ptr> List;
54 explicit ModemDevice(
const QString &path, QObject *parent =
nullptr);
55 ~ModemDevice()
override;
59 bool hasInterface(InterfaceType type)
const;
60 ModemManager::Interface::List interfaces()
const;
61 ModemManager::Interface::Ptr interface(InterfaceType type)
const;
63 ModemManager::ModemMessaging::Ptr messagingInterface();
64 ModemManager::Modem::Ptr modemInterface();
66 ModemManager::Bearer::Ptr findBearer(
const QString &uni);
67 ModemManager::Bearer::List bearers()
const;
68 ModemManager::Sim::Ptr sim()
const;
70 bool isGsmModem()
const;
71 bool isCdmaModem()
const;
74 void simAdded(
const QString &udi);
75 void simRemoved(
const QString &udi);
77 void bearerAdded(
const QString &udi);
78 void bearerRemoved(
const QString &udi);
80 void interfaceAdded(InterfaceType type);
81 void interfaceRemoved(InterfaceType type);
84 MODEMMANAGERQT_NO_EXPORT
explicit ModemDevice(ModemDevicePrivate &dd, QObject *parent =
nullptr);
87 ModemDevicePrivate *
const d_ptr;
This namespace allows to query the underlying system to discover the available modem interfaces respo...
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:54:23 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.