ModemManager::Cbm Class
class ModemManager::CbmProvides an interface to access a cell broadcast message. More...
| Header: | #include <ModemManagerQt/Cbm> |
| CMake: | find_package(KF6 REQUIRED COMPONENTS ModemManagerQt)target_link_libraries(mytarget PRIVATE KF6::ModemManagerQt) |
| Since: | 6.24.0 |
Public Types
Public Functions
| Cbm(const QString &path, QObject *parent = nullptr) | |
| uint | channel() const |
| uint | messageCode() const |
| void | setTimeout(int timeout) |
| MMCbmState | state() const |
| QString | text() const |
| int | timeout() const |
| QString | uni() const |
| uint | update() const |
Signals
| void | channelChanged(uint channel) |
| void | messageCodeChanged(uint messageCode) |
| void | stateChanged(MMCbmState state) |
| void | textChanged(const QString &text) |
| void | updateChanged(uint update) |
Detailed Description
Note: MMCbmState enum is defined in <ModemManager/ModemManager-enums.h>
Member Type Documentation
Cbm::List
Cbm::Ptr
Member Function Documentation
[explicit] Cbm::Cbm(const QString &path, QObject *parent = nullptr)
uint Cbm::channel() const
Returns the channel (or message identifier) specifying the source and type of the cell broadcast message.
[signal] void Cbm::channelChanged(uint channel)
uint Cbm::messageCode() const
Returns the message code of this CBM. The message code differentiates between CBMs from the same channel.
[signal] void Cbm::messageCodeChanged(uint messageCode)
void Cbm::setTimeout(int timeout)
Sets the timeout in milliseconds for all async method DBus calls. -1 means the default DBus timeout (usually 25 seconds).
See also timeout().
MMCbmState Cbm::state() const
Returns the MMCbmState value describing the state of the message.
[signal] void Cbm::stateChanged(MMCbmState state)
QString Cbm::text() const
Returns the message text, in UTF-8.
[signal] void Cbm::textChanged(const QString &text)
int Cbm::timeout() const
Returns the current value of the DBus timeout in milliseconds. -1 means the default DBus timeout (usually 25 seconds).
See also setTimeout().
QString Cbm::uni() const
Returns the D-Bus object path of the cell broadcast message.
uint Cbm::update() const
Returns the update number of this CBM. The update number allows to update CBMs with the same channel and message code.