ModemManager::ModemOma
#include <modemoma.h>
Public Types | |
typedef QFlags< MMOmaFeature > | Features |
typedef QList< Ptr > | List |
typedef QSharedPointer< ModemOma > | Ptr |
Signals | |
void | featuresChanged (QFlags< MMOmaFeature > features) |
void | pendingNetworkInitiatedSessionsChanged (const ModemManager::OmaSessionTypes &sessions) |
void | sessionStateChanged (MMOmaSessionState oldState, MMOmaSessionState newState, MMOmaSessionStateFailedReason failedReason) |
void | sessionTypeChanged (MMOmaSessionType sessionType) |
Public Member Functions | |
ModemOma (const QString &path, QObject *parent=nullptr) | |
QDBusPendingReply< void > | acceptNetworkInitiatedSession (uint sessionId, bool accept) |
QDBusPendingReply< void > | cancelSession () |
Features | features () const |
OmaSessionTypes | pendingNetworkInitiatedSessions () const |
MMOmaSessionState | sessionState () const |
MMOmaSessionType | sessionType () const |
void | setTimeout (int timeout) |
QDBusPendingReply< void > | setup (Features features) |
QDBusPendingReply< void > | startClientInitiatedSession (MMOmaSessionType sessionType) |
int | timeout () const |
Detailed Description
The ModemManager Open Mobile Alliance interface.
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.
- Since
- 1.1.92
Definition at line 34 of file modemoma.h.
Member Typedef Documentation
◆ Features
QFlags< MMOmaFeature > ModemManager::ModemOma::Features |
Definition at line 44 of file modemoma.h.
◆ List
Definition at line 42 of file modemoma.h.
◆ Ptr
Definition at line 41 of file modemoma.h.
Constructor & Destructor Documentation
◆ ModemOma()
Definition at line 34 of file modemoma.cpp.
◆ ~ModemOma()
|
override |
Definition at line 62 of file modemoma.cpp.
Member Function Documentation
◆ acceptNetworkInitiatedSession()
QDBusPendingReply< void > ModemOma::acceptNetworkInitiatedSession | ( | uint | sessionId, |
bool | accept ) |
Accepts or rejects a network-initiated device management session.
- Parameters
-
sessionId unique ID of the network-initiated device management session accept boolean specifying whether the session is accepted or rejected
Definition at line 103 of file modemoma.cpp.
◆ cancelSession()
QDBusPendingReply< void > ModemOma::cancelSession | ( | ) |
Cancels the current on-going device management session.
Definition at line 109 of file modemoma.cpp.
◆ features()
ModemManager::ModemOma::Features ModemOma::features | ( | ) | const |
- Returns
- MMOmaFeature flags, specifying which device management features are enabled or disabled
Definition at line 66 of file modemoma.cpp.
◆ pendingNetworkInitiatedSessions()
ModemManager::OmaSessionTypes ModemOma::pendingNetworkInitiatedSessions | ( | ) | const |
- Returns
- list of network-initiated sessions which are waiting to be accepted or rejected, where:
- Parameters
-
the first integer is a MMOmaSessionType the second integer is the unique session ID.
Definition at line 73 of file modemoma.cpp.
◆ sessionState()
MMOmaSessionState ModemOma::sessionState | ( | ) | const |
- Returns
- state of the current on-going device management session, given as a MMOmaSessionState
Definition at line 85 of file modemoma.cpp.
◆ sessionStateChanged
|
signal |
Emitted when the session state changed.
- Parameters
-
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
◆ sessionType()
MMOmaSessionType ModemOma::sessionType | ( | ) | const |
- Returns
- type of the current on-going device management session, given as a MMOmaSessionType
Definition at line 79 of file modemoma.cpp.
◆ setTimeout()
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).
Definition at line 115 of file modemoma.cpp.
◆ setup()
QDBusPendingReply< void > ModemOma::setup | ( | Features | features | ) |
Configures which OMA device management features should be enabled.
- Parameters
-
features MMModemOmaFeature flags, specifying which device management features should get enabled or disabled. MM_OMA_FEATURE_NONE will disable all features.
Definition at line 91 of file modemoma.cpp.
◆ startClientInitiatedSession()
QDBusPendingReply< void > ModemOma::startClientInitiatedSession | ( | MMOmaSessionType | sessionType | ) |
Starts a client-initiated device management session.
- Parameters
-
sessionType type of client-initiated device management session,given as a MMOmaSessionType
Definition at line 97 of file modemoma.cpp.
◆ timeout()
int ModemOma::timeout | ( | ) | const |
Returns the current value of the DBus timeout in milliseconds.
-1 means the default DBus timeout (usually 25 seconds).
Definition at line 121 of file modemoma.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:15:10 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.