ModemManager::ModemTime
#include <modemtime.h>
Public Types | |
typedef QList< Ptr > | List |
typedef QSharedPointer< ModemTime > | Ptr |
Signals | |
void | networkTimeChanged (const QDateTime &dateTime) |
void | networkTimezoneChanged (const ModemManager::NetworkTimezone &timeZone) |
Public Member Functions | |
ModemTime (const QString &path, QObject *parent=nullptr) | |
QDBusPendingReply< QString > | networkTime () |
ModemManager::NetworkTimezone | networkTimezone () const |
void | setTimeout (int timeout) |
int | timeout () const |
Detailed Description
The ModemTime class.
This class allows clients to receive network time and timezone updates broadcast by mobile networks.
Definition at line 88 of file modemtime.h.
Member Typedef Documentation
◆ List
Definition at line 95 of file modemtime.h.
◆ Ptr
Definition at line 94 of file modemtime.h.
Constructor & Destructor Documentation
◆ ModemTime()
Definition at line 102 of file modemtime.cpp.
◆ ~ModemTime()
|
override |
Definition at line 125 of file modemtime.cpp.
Member Function Documentation
◆ networkTime()
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.
Definition at line 129 of file modemtime.cpp.
◆ networkTimeChanged
|
signal |
Sent when the network time is updated.
- Parameters
-
dateTime the new date and time
◆ networkTimezone()
ModemManager::NetworkTimezone ModemTime::networkTimezone | ( | ) | const |
- Returns
- the timezone data provided by the network.
- See also
- NetworkTimezone
Definition at line 136 of file modemtime.cpp.
◆ setTimeout()
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).
Definition at line 159 of file modemtime.cpp.
◆ timeout()
int ModemTime::timeout | ( | ) | const |
Returns the current value of the DBus timeout in milliseconds.
-1 means the default DBus timeout (usually 25 seconds).
Definition at line 165 of file modemtime.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:07:54 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.