ModemManager::Modem3gppUssd

Search for usage in LXR

ModemManager::Modem3gppUssd Class Reference

#include <modem3gppussd.h>

Inherits ModemManager::Interface.

Public Types

typedef QList< PtrList
 
typedef QSharedPointer< Modem3gppUssdPtr
 

Signals

void networkNotificationChanged (const QString &networkNotification)
 
void networkRequestChanged (const QString &networkRequest)
 
void stateChanged (MMModem3gppUssdSessionState state)
 

Public Member Functions

 Modem3gppUssd (const QString &path, QObject *parent=nullptr)
 
void cancel ()
 
QDBusPendingReply< QStringinitiate (const QString &command)
 
QString networkNotification () const
 
QString networkRequest () const
 
QDBusPendingReply< QStringrespond (const QString &response)
 
void setTimeout (int timeout)
 
MMModem3gppUssdSessionState state () const
 
int timeout () const
 

Detailed Description

The Modem3gppUssd class.

This class provides access to actions based on the USSD protocol.

Definition at line 31 of file modem3gppussd.h.

Member Typedef Documentation

◆ List

Definition at line 38 of file modem3gppussd.h.

◆ Ptr

Constructor & Destructor Documentation

◆ Modem3gppUssd()

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

Definition at line 35 of file modem3gppussd.cpp.

◆ ~Modem3gppUssd()

Modem3gppUssd::~Modem3gppUssd ( )
override

Definition at line 59 of file modem3gppussd.cpp.

Member Function Documentation

◆ cancel()

void Modem3gppUssd::cancel ( )

Cancel an ongoing USSD session, either mobile or network initiated.

Definition at line 100 of file modem3gppussd.cpp.

◆ initiate()

QDBusPendingReply< QString > Modem3gppUssd::initiate ( const QString & command)

Sends a USSD command string to the network initiating a USSD session.

When the request is handled by the network, the method returns the response or an appropriate error. The network may be awaiting further response from the ME after returning from this method and no new command can be initiated until this one is cancelled or ended.

Definition at line 88 of file modem3gppussd.cpp.

◆ networkNotification()

QString Modem3gppUssd::networkNotification ( ) const
Returns
any network-initiated request to which no USSD response is required

When no USSD session is active, or when there is no network- initiated request, this property will be an empty string.

Definition at line 112 of file modem3gppussd.cpp.

◆ networkRequest()

QString Modem3gppUssd::networkRequest ( ) const
Returns
any pending network-initiated request for a response. Client should call respond() with the appropriate response to this request.

When no USSD session is active, or when there is no pending network-initiated request, this property will be an empty string.

Definition at line 118 of file modem3gppussd.cpp.

◆ respond()

QDBusPendingReply< QString > Modem3gppUssd::respond ( const QString & response)

Respond to a USSD request that is either initiated by the mobile network, or that is awaiting further input after initiate() was called.

Definition at line 94 of file modem3gppussd.cpp.

◆ setTimeout()

void Modem3gppUssd::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 124 of file modem3gppussd.cpp.

◆ state()

MMModem3gppUssdSessionState Modem3gppUssd::state ( ) const
Returns
the state of any ongoing USSD session

Definition at line 106 of file modem3gppussd.cpp.

◆ timeout()

int Modem3gppUssd::timeout ( ) const

Returns the current value of the DBus timeout in milliseconds.

-1 means the default DBus timeout (usually 25 seconds).

Definition at line 130 of file modem3gppussd.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.