ModemManager::Call Class

class ModemManager::Call

Provides an interface to manipulate and control a call. More...

Header: #include <ModemManagerQt/Call>
CMake: find_package(KF6 REQUIRED COMPONENTS ModemManagerQt)
target_link_libraries(mytarget PRIVATE KF6::ModemManagerQt)
Inherits: QObject

Public Types

Public Functions

Call(const QString &path, QObject *parent = nullptr)
QDBusPendingReply<> accept()
MMCallDirection direction() const
QDBusPendingReply<> hangup()
QString number() const
QDBusPendingReply<> sendDtmf(const QString &dtmf)
void setTimeout(int timeout)
QDBusPendingReply<> start()
MMCallState state() const
MMCallStateReason stateReason() const
int timeout() const
QString uni() const

Signals

void dtmfReceived(const QString &dtmf)
void numberChanged(const QString &number)
void stateChanged(MMCallState oldState, MMCallState newState, MMCallStateReason reason)

Detailed Description

Note: MMCallState, MMCallStateReason and MMCallDirection enums are defined in <ModemManager/ModemManager-enums.h> See http://www.freedesktop.org/software/ModemManager/api/latest/ModemManager-Flags-and-Enumerations.html .

Member Type Documentation

Call::List

Call::Ptr

Member Function Documentation

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

QDBusPendingReply<> Call::accept()

Accept a call

MMCallDirection Call::direction() const

This method returns the direction of the call

[signal] void Call::dtmfReceived(const QString &dtmf)

QDBusPendingReply<> Call::hangup()

Hangup a call

QString Call::number() const

This method returns the remote phone number

[signal] void Call::numberChanged(const QString &number)

QDBusPendingReply<> Call::sendDtmf(const QString &dtmf)

Send DTMF

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

QDBusPendingReply<> Call::start()

Start a call

MMCallState Call::state() const

This method returns the state of the call

[signal] void Call::stateChanged(MMCallState oldState, MMCallState newState, MMCallStateReason reason)

MMCallStateReason Call::stateReason() const

This method returns the reason for the call state change

int Call::timeout() const

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

See also setTimeout().

QString Call::uni() const