ModemManager::ModemTime

Search for usage in LXR

ModemManager::ModemTime Class Reference

#include <modemtime.h>

Public Types

typedef QList< PtrList
 
typedef QSharedPointer< ModemTimePtr
 

Signals

void networkTimeChanged (const QDateTime &dateTime)
 
void networkTimezoneChanged (const ModemManager::NetworkTimezone &timeZone)
 

Public Member Functions

 ModemTime (const QString &path, QObject *parent=nullptr)
 
QDBusPendingReply< QStringnetworkTime ()
 
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

Constructor & Destructor Documentation

◆ ModemTime()

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

Definition at line 102 of file modemtime.cpp.

◆ ~ModemTime()

ModemTime::~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

void ModemManager::ModemTime::networkTimeChanged ( const QDateTime & dateTime)
signal

Sent when the network time is updated.

Parameters
dateTimethe 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:
This file is part of the KDE documentation.
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.