ModemManager::ModemOma Class
class ModemManager::ModemOmaThe ModemManager Open Mobile Alliance interface. More...
Header: | #include <ModemManagerQt/ModemOma> |
CMake: | find_package(KF6 REQUIRED COMPONENTS ModemManagerQt) target_link_libraries(mytarget PRIVATE KF6::ModemManagerQt) |
Since: | 1.1.92 |
Inherits: | ModemManager::Interface |
Public Types
Public Functions
ModemOma(const QString &path, QObject *parent = nullptr) | |
QDBusPendingReply<void> | acceptNetworkInitiatedSession(uint sessionId, bool accept) |
QDBusPendingReply<void> | cancelSession() |
ModemManager::ModemOma::Features | features() const |
ModemManager::OmaSessionTypes | pendingNetworkInitiatedSessions() const |
MMOmaSessionState | sessionState() const |
MMOmaSessionType | sessionType() const |
void | setTimeout(int timeout) |
QDBusPendingReply<void> | setup(ModemManager::ModemOma::Features features) |
QDBusPendingReply<void> | startClientInitiatedSession(MMOmaSessionType sessionType) |
int | timeout() const |
Signals
void | featuresChanged(QFlags<MMOmaFeature> features) |
void | pendingNetworkInitiatedSessionsChanged(const ModemManager::OmaSessionTypes &sessions) |
void | sessionStateChanged(MMOmaSessionState oldState, MMOmaSessionState newState, MMOmaSessionStateFailedReason failedReason) |
void | sessionTypeChanged(MMOmaSessionType sessionType) |
Detailed Description
This interface allows clients to handle device management operations as specified by the Open Mobile Alliance (OMA).
Device management sessions are either on-demand (client-initiated), or automatically initiated by either the device itself or the network.
Member Type Documentation
ModemOma::List
ModemOma::Ptr
Member Function Documentation
[explicit]
ModemOma::ModemOma(const QString &path, QObject *parent = nullptr)
QDBusPendingReply<void> ModemOma::acceptNetworkInitiatedSession(uint sessionId, bool accept)
Accepts or rejects a network-initiated device management session.
sessionId unique ID of the network-initiated device management session
accept boolean specifying whether the session is accepted or rejected
QDBusPendingReply<void> ModemOma::cancelSession()
Cancels the current on-going device management session.
ModemManager::ModemOma::Features ModemOma::features() const
Returns MMOmaFeature flags, specifying which device management features are enabled or disabled
[signal]
void ModemOma::featuresChanged(QFlags<MMOmaFeature> features)
ModemManager::OmaSessionTypes ModemOma::pendingNetworkInitiatedSessions() const
Returns list of network-initiated sessions which are waiting to be accepted or rejected, where:
the first integer is a MMOmaSessionType
the second integer is the unique session ID.
[signal]
void ModemOma::pendingNetworkInitiatedSessionsChanged(const ModemManager::OmaSessionTypes &sessions)
MMOmaSessionState ModemOma::sessionState() const
Returns state of the current on-going device management session, given as a MMOmaSessionState
[signal]
void ModemOma::sessionStateChanged(MMOmaSessionState oldState, MMOmaSessionState newState, MMOmaSessionStateFailedReason failedReason)
Emitted when the session state changed.
oldState previous session state, given as a MMOmaSessionState
newState current session state, given as a MMOmaSessionState
failedReason reason of failure, given as a MMOmaSessionStateFailedReason, if sessionState() is MM_OMA_SESSION_STATE_FAILED
MMOmaSessionType ModemOma::sessionType() const
Returns type of the current on-going device management session, given as a MMOmaSessionType
[signal]
void ModemOma::sessionTypeChanged(MMOmaSessionType sessionType)
void ModemOma::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().
QDBusPendingReply<void> ModemOma::setup(ModemManager::ModemOma::Features features)
Configures which OMA device management features should be enabled.
features MMModemOmaFeature flags, specifying which device management features should get enabled or disabled. MM_OMA_FEATURE_NONE will disable all features.
QDBusPendingReply<void> ModemOma::startClientInitiatedSession(MMOmaSessionType sessionType)
Starts a client-initiated device management session.
sessionType type of client-initiated device management session,given as a MMOmaSessionType
int ModemOma::timeout() const
Returns the current value of the DBus timeout in milliseconds. -1 means the default DBus timeout (usually 25 seconds).
See also setTimeout().