ModemManager::ModemTime Class
- 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
- ModemTime(const QString &path, QObject *parent = nullptr)
- QDBusPendingReply<QString> networkTime()
- ModemManager::NetworkTimezone networkTimezone() const
- void setTimeout(int timeout)
- int timeout() const
Signals
- void networkTimeChanged(const QDateTime &dateTime)
- void networkTimezoneChanged(const ModemManager::NetworkTimezone &timeZone)
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()