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)
(since 6.24.0) QDBusPendingReply<bool> callWaitingQuery()
(since 6.24.0) QDBusPendingReply<void> callWaitingSetup(bool enabled)
ModemManager::Call::List calls() const
QDBusPendingReply<QDBusObjectPath> createCall(const QString &number)
QDBusPendingReply<QDBusObjectPath> createCall(const QVariantMap &call)
QDBusPendingReply<void> deleteCall(const QString &uni)
(since 6.24.0) bool emergencyOnly() const
ModemManager::Call::Ptr findCall(const QString &uni)
(since 6.24.0) QDBusPendingReply<void> hangupAll()
(since 6.24.0) QDBusPendingReply<void> hangupAndAccept()
(since 6.24.0) QDBusPendingReply<void> holdAndAccept()
void setTimeout(int timeout)
int timeout() const
(since 6.24.0) QDBusPendingReply<void> transfer()

Signals

void callAdded(const QString &uni)
void callDeleted(const QString &uni)
(since 6.24.0) void emergencyOnlyChanged(bool emergencyOnly)

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

[since 6.24.0] QDBusPendingReply<bool> ModemVoice::callWaitingQuery()

Query call waiting status.

This function was introduced in 6.24.0.

[since 6.24.0] QDBusPendingReply<void> ModemVoice::callWaitingSetup(bool enabled)

Enable or disable call waiting.

This function was introduced in 6.24.0.

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

[since 6.24.0] bool ModemVoice::emergencyOnly() const

Returns whether only emergency calls are allowed.

This function was introduced in 6.24.0.

[signal, since 6.24.0] void ModemVoice::emergencyOnlyChanged(bool emergencyOnly)

Emitted when emergency-only state changes.

This function was introduced in 6.24.0.

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)

[since 6.24.0] QDBusPendingReply<void> ModemVoice::hangupAll()

Hang up all calls.

This function was introduced in 6.24.0.

[since 6.24.0] QDBusPendingReply<void> ModemVoice::hangupAndAccept()

Hang up the current call and accept a waiting call.

This function was introduced in 6.24.0.

[since 6.24.0] QDBusPendingReply<void> ModemVoice::holdAndAccept()

Hold the current call and accept a waiting call.

This function was introduced in 6.24.0.

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

[since 6.24.0] QDBusPendingReply<void> ModemVoice::transfer()

Transfer a call.

This function was introduced in 6.24.0.