ModemManager Namespace
| Header: | #include <generictypes.h> |
| CMake: | find_package(KF6 REQUIRED COMPONENTS ModemManagerQt)target_link_libraries(mytarget PRIVATE KF6::ModemManagerQt) |
Classes
| class | Bearer |
| class | BearerProperties |
| class | Call |
(since 6.24.0) class | Cbm |
| class | Interface |
| class | IpConfig |
| class | Modem |
| class | Modem3gpp |
| class | Modem3gppUssd |
| class | ModemCdma |
(since 6.24.0) class | ModemCellBroadcast |
| class | ModemDevice |
| class | ModemFirmware |
| class | ModemLocation |
| class | ModemMessaging |
| class | ModemOma |
| class | ModemSignal |
| class | ModemSimple |
| class | ModemTime |
| class | ModemVoice |
| class | NetworkTimezone |
| class | Notifier |
| class | Sim |
| class | Sms |
Types
Functions
| ModemDevice::Ptr | findModemDevice(const QString &uni) |
(since 6.24.0) QDBusPendingReply<> | inhibitDevice(const QString &uid, bool inhibit) |
| ModemDevice::List | modemDevices() |
| ModemManager::Notifier * | notifier() |
(since 6.24.0) QDBusPendingReply<> | reportKernelEvent(const QVariantMap &properties) |
| void | scanDevices() |
(since 6.24.0) QDBusPendingReply<> | setLogging(const QString &level) |
(since 6.24.0) QString | version() |
Detailed Description
This namespace allows to query the underlying system to discover the available modem interfaces responsibility to notify when a modem interface or a modem appears or disappears.
Note that it's implemented as a singleton and encapsulates the backend logic.
Classes
class Bearer
The Bearer class. More...
class BearerProperties
This class represents bearer properties used for creating of new bearers. More...
class Call
Provides an interface to manipulate and control a call. More...
class Cbm
Provides an interface to access a cell broadcast message. More...
class Interface
class IpConfig
This class represents IP configuration. More...
class Modem
The Modem class. More...
class Modem3gpp
The Modem3gpp class. More...
class Modem3gppUssd
The Modem3gppUssd class. More...
class ModemCdma
The ModemCdma class. More...
class ModemCellBroadcast
The ModemCellBroadcast class. More...
class ModemDevice
class ModemFirmware
The ModemFirmware class. More...
class ModemLocation
The ModemLocation class. More...
class ModemMessaging
The ModemMessaging class. More...
class ModemOma
The ModemManager Open Mobile Alliance interface. More...
class ModemSignal
The ModemSignal class. More...
class ModemSimple
The ModemSimple class. More...
class ModemTime
The ModemTime class. More...
class ModemVoice
The ModemVoice class. More...
class NetworkTimezone
This class represents the timezone data provided by the network. More...
class Notifier
class Sim
The Sim class. More...
class Sms
Provides an interface to manipulate and control an SMS. More...
Type Documentation
ModemManager::CellBroadcastChannelRange
ModemManager::CellBroadcastChannelRangeList
ModemManager::ConnectionError
ModemManager::CurrentModesType
ModemManager::DBUSManagerStruct
ModemManager::FacilityLock
ModemManager::FirmwareUpdateSettings
ModemManager::LocationInformationMap
ModemManager::MMVariantMapMap
ModemManager::OmaSessionType
ModemManager::OmaSessionTypes
ModemManager::PcoInfo
ModemManager::PcoInfoList
ModemManager::Port
ModemManager::PortList
ModemManager::QVariantMapList
ModemManager::SignalQualityPair
ModemManager::SupportedModesType
ModemManager::UIntList
ModemManager::UIntListList
ModemManager::UnlockRetriesMap
ModemManager::ValidityPair
Function Documentation
ModemDevice::Ptr ModemManager::findModemDevice(const QString &uni)
Find a new ModemManagerInterface object given its UDI.
Note: only Modem-inherited objects are returned (not SMS, SIM or Bearer objects)
uni the identifier of the modem interface to find Returns a valid Modem object if there's a device having the given UDI, an invalid one otherwise
[since 6.24.0] QDBusPendingReply<> ModemManager::inhibitDevice(const QString &uid, bool inhibit)
Inhibit or uninhibit the device.
When the modem is inhibited, ModemManager will close all its ports and unexport it from the bus, so that users of the interface are no longer able to operate with it.
The inhibition request is bound to the caller's existence on the DBus bus. If the caller disappears, the inhibition is automatically removed.
uid the unique ID of the physical device, as given in the org.freedesktop.ModemManager1.Modem Device property. inhibit true to inhibit the modem, false to uninhibit it.
This function was introduced in 6.24.0.
ModemDevice::List ModemManager::modemDevices()
Retrieves the list of all modem interfaces Unique Device Identifiers (UDIs) in the system. This method is the equivalent of enumerateDevices described in Modem Manager specification.
Note: only HW modems are returned (Gsm or Cdma)
Returns the list of modem interfaces available in this system
ModemManager::Notifier *ModemManager::notifier()
[since 6.24.0] QDBusPendingReply<> ModemManager::reportKernelEvent(const QVariantMap &properties)
Reports a kernel event to ModemManager.
This method is only available if udev is not being used to report kernel events.
properties event properties dictionary. Mandatory keys are: "action" (string: "add" or "remove"), "name" (string: device name), "subsystem" (string: device subsystem). Optional key: "uid" (string: unique ID of the physical device; if not given, the sysfs path is used).
This function was introduced in 6.24.0.
void ModemManager::scanDevices()
Start a new scan for connected modem devices.
[since 6.24.0] QDBusPendingReply<> ModemManager::setLogging(const QString &level)
Set logging verbosity.
level one of "ERR", "WARN", "MSG" (since ModemManager 1.22), "INFO", "DEBUG".
This function was introduced in 6.24.0.
[since 6.24.0] QString ModemManager::version()
Returns the runtime version of the ModemManager daemon.
This function was introduced in 6.24.0.