Pages
API Documentation
On this page

ModemManager::ModemVoice Class

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

List of all members, including inherited members

Public Types

Public Functions

Signals

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 Qt 6.24.0.

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

Enable or disable call waiting.

This function was introduced in Qt 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 Qt 6.24.0.

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

Emitted when emergency-only state changes.

This function was introduced in Qt 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 Qt 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 Qt 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 Qt 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 Qt 6.24.0.

We use cookies to personalize content and to analyze our traffic. Please decide if you are willing to accept cookies from our website.