ModemManager::ModemVoice Class

class ModemManager::ModemVoice

The ModemVoice class. More...

Header: #include <ModemManagerQt/ModemVoice>
CMake: find_package(KF6 REQUIRED COMPONENTS ModemManagerQt)
target_link_libraries(mytarget PRIVATE KF6::ModemManagerQt)
Inherits: ModemManager::Interface

Public Types

Public Functions

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

Signals

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

Detailed Description

The Voice interface handles call related actions.

Member Type Documentation

ModemVoice::List

ModemVoice::Ptr

Member Function Documentation

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

[signal] void ModemVoice::callAdded(const QString &uni)

Emitted when an new Call is detected.

uni path to the Call object

[signal] void ModemVoice::callDeleted(const QString &uni)

Emitted when a call has been deleted.

uni path to the Call object

ModemManager::Call::List 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()

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

Creates a new call object. number Number property

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

Creates a new call object.

call QVariantMap containing call properties

The 'number' property is mandatory.

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

Delete a call.

uni path to the Call object

ModemManager::Call::Ptr ModemVoice::findCall(const QString &uni)

uni path to the Call object Returns pointer to the found Call (may be null if not found)

void ModemVoice::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().

int ModemVoice::timeout() const

Returns the current value of the DBus timeout in milliseconds. -1 means the default DBus timeout (usually 25 seconds).

See also setTimeout().