ModemManager::ModemVoice

Search for usage in LXR

ModemManager::ModemVoice Class Reference

#include <modemvoice.h>

Public Types

typedef QList< PtrList
 
typedef QSharedPointer< ModemVoicePtr
 

Signals

void callAdded (const QString &uni)
 
void callDeleted (const QString &uni)
 

Public Member Functions

 ModemVoice (const QString &path, QObject *parent=nullptr)
 
ModemManager::Call::List calls () const
 
QDBusPendingReply< QDBusObjectPathcreateCall (const QString &number)
 
QDBusPendingReply< QDBusObjectPathcreateCall (const QVariantMap &call)
 
QDBusPendingReply< void > deleteCall (const QString &uni)
 
ModemManager::Call::Ptr findCall (const QString &uni)
 
void setTimeout (int timeout)
 
int timeout () const
 

Detailed Description

The ModemVoice class.

The Voice interface handles call related actions

Definition at line 28 of file modemvoice.h.

Member Typedef Documentation

◆ List

Definition at line 35 of file modemvoice.h.

◆ Ptr

Constructor & Destructor Documentation

◆ ModemVoice()

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

Definition at line 34 of file modemvoice.cpp.

◆ ~ModemVoice()

ModemManager::ModemVoice::~ModemVoice ( )
override

Definition at line 50 of file modemvoice.cpp.

Member Function Documentation

◆ callAdded

void ModemManager::ModemVoice::callAdded ( const QString & uni)
signal

Emitted when an new Call is detected.

Parameters
unipath to the Call object

◆ callDeleted

void ModemManager::ModemVoice::callDeleted ( const QString & uni)
signal

Emitted when a call has been deleted.

Parameters
unipath to the Call object

◆ calls()

ModemManager::Call::List ModemManager::ModemVoice::calls ( ) const

Retrieve all calls.

This method should only be used once and subsequent information retrieved either by listening for the callAdded() signal, or by querying the specific call object of interest using findCall()

Definition at line 99 of file modemvoice.cpp.

◆ createCall() [1/2]

QDBusPendingReply< QDBusObjectPath > ModemManager::ModemVoice::createCall ( const QString & number)

Creates a new call object.

Parameters
numberNumber property

Definition at line 105 of file modemvoice.cpp.

◆ createCall() [2/2]

QDBusPendingReply< QDBusObjectPath > ModemManager::ModemVoice::createCall ( const QVariantMap & call)

Creates a new call object.

Parameters
callQVariantMap containing call properties The 'number' property is mandatory.

Definition at line 112 of file modemvoice.cpp.

◆ deleteCall()

QDBusPendingReply< void > ModemManager::ModemVoice::deleteCall ( const QString & uni)

Delete a call.

Parameters
unipath to the Call object

Definition at line 124 of file modemvoice.cpp.

◆ findCall()

ModemManager::Call::Ptr ModemManager::ModemVoice::findCall ( const QString & uni)
Parameters
unipath to the Call object
Returns
pointer to the found Call (may be null if not found)

Definition at line 130 of file modemvoice.cpp.

◆ setTimeout()

void ModemManager::ModemVoice::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 136 of file modemvoice.cpp.

◆ timeout()

int ModemManager::ModemVoice::timeout ( ) const

Returns the current value of the DBus timeout in milliseconds.

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

Definition at line 142 of file modemvoice.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 Fri Nov 29 2024 11:54:16 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.