KWin
Loading...
Searching...
No Matches
Classes | Signals | Public Member Functions | Properties | List of all members
KWin::ClockSkewNotifier Class Reference

#include <clockskewnotifier.h>

Inheritance diagram for KWin::ClockSkewNotifier:

Classes

class  Private
 

Signals

void activeChanged ()
 
void clockSkewed ()
 

Public Member Functions

 ClockSkewNotifier (QObject *parent=nullptr)
 
 ~ClockSkewNotifier () override
 
bool isActive () const
 
void setActive (bool active)
 

Properties

bool active
 

Detailed Description

The ClockSkewNotifier class provides a way for monitoring system clock changes.

The ClockSkewNotifier 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().

Definition at line 22 of file clockskewnotifier.h.

Constructor & Destructor Documentation

◆ ClockSkewNotifier()

KWin::ClockSkewNotifier::ClockSkewNotifier ( QObject * parent = nullptr)
explicit

Definition at line 45 of file clockskewnotifier.cpp.

◆ ~ClockSkewNotifier()

KWin::ClockSkewNotifier::~ClockSkewNotifier ( )
override

Definition at line 52 of file clockskewnotifier.cpp.

Member Function Documentation

◆ activeChanged

void KWin::ClockSkewNotifier::activeChanged ( )
signal

This signal is emitted whenever the active property is changed.

◆ clockSkewed

void KWin::ClockSkewNotifier::clockSkewed ( )
signal

This signal is emitted whenever the system clock is changed.

◆ isActive()

bool KWin::ClockSkewNotifier::isActive ( ) const

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

Definition at line 56 of file clockskewnotifier.cpp.

◆ setActive()

void KWin::ClockSkewNotifier::setActive ( bool active)

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

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

The notifier is inactive by default.

See also
activeChanged

Definition at line 61 of file clockskewnotifier.cpp.

Property Documentation

◆ active

bool KWin::ClockSkewNotifier::active
readwrite

Definition at line 25 of file clockskewnotifier.h.


The documentation for this class was generated from the following files: