Pages
API Documentation
On this page

ModemManager::ModemTime Class

The ModemTime class. More...

  • Header: #include <ModemManagerQt/ModemTime>
  • 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

This class allows clients to receive network time and timezone updates broadcast by mobile networks.

Member Type Documentation

ModemTime::List

ModemTime::Ptr

Member Function Documentation

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

QDBusPendingReply<QString> ModemTime::networkTime()

Returns the current network time in local time.

This method will only work if the modem tracks, or can request, the current network time; it will not attempt to use previously-received network time updates on the host to guess the current network time.

[signal] void ModemTime::networkTimeChanged(const QDateTime &dateTime)

Sent when the network time is updated.

dateTime the new date and time

ModemManager::NetworkTimezone ModemTime::networkTimezone() const

Returns the timezone data provided by the network.

See also NetworkTimezone

[signal] void ModemTime::networkTimezoneChanged(const ModemManager::NetworkTimezone &timeZone)

void ModemTime::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 ModemTime::timeout() const

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

See also setTimeout()

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