ModemManager::ModemOma

Search for usage in LXR

ModemManager::ModemOma Class Reference

#include <modemoma.h>

Inherits ModemManager::Interface.

Public Types

typedef QFlags< MMOmaFeature > Features
 
typedef QList< PtrList
 
typedef QSharedPointer< ModemOmaPtr
 

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

typedef 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()

ModemOma::ModemOma ( const QString & path,
QObject * parent = nullptr )
explicit

Definition at line 34 of file modemoma.cpp.

◆ ~ModemOma()

ModemOma::~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
sessionIdunique ID of the network-initiated device management session
acceptboolean 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
thefirst integer is a MMOmaSessionType
thesecond 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

void ModemManager::ModemOma::sessionStateChanged ( MMOmaSessionState oldState,
MMOmaSessionState newState,
MMOmaSessionStateFailedReason failedReason )
signal

Emitted when the session state changed.

Parameters
oldStateprevious session state, given as a MMOmaSessionState
newStatecurrent session state, given as a MMOmaSessionState
failedReasonreason 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
featuresMMModemOmaFeature 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
sessionTypetype 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:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:17:51 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.