KSystemClockSkewNotifier Class

The KSystemClockSkewNotifier class provides a way for monitoring system clock changes. More...

Header: #include <KSystemClockSkewNotifier>
CMake: find_package(KF6 REQUIRED COMPONENTS CoreAddons)
target_link_libraries(mytarget PRIVATE KF6::CoreAddons)
Since: 6.15
Inherits: QObject

Public Functions

bool isActive() const
void setActive(bool active)

Signals

void activeChanged()
void skewed()

Detailed Description

The KSystemClockSkewNotifier class makes it possible to detect discontinuous changes to the system clock. Such changes are usually initiated by the user adjusting values in the Date and Time KCM or calls made to functions like settimeofday().

Member Function Documentation

[signal] void KSystemClockSkewNotifier::activeChanged()

This signal is emitted whenever the active property is changed.

Note: Notifier signal for property active.

bool KSystemClockSkewNotifier::isActive() const

Returns true if the notifier is active; otherwise returns false.

Note: Getter function for property active.

void KSystemClockSkewNotifier::setActive(bool active)

Sets the active status of the clock skew notifier to active.

The skewed() signal won't be emitted while the notifier is inactive.

The notifier is inactive by default.

Note: Setter function for property active.

See also isActive() and activeChanged().

[signal] void KSystemClockSkewNotifier::skewed()

This signal is emitted whenever the system clock is changed.