KWindowSystem

kusertimestamp.h
1 /*
2  This file is part of the KDE libraries
3  SPDX-FileCopyrightText: 2003 Luboš Luňák <[email protected]>
4 
5  SPDX-License-Identifier: LGPL-2.1-or-later
6 */
7 
8 #ifndef KUSERTIMESTAMP_H
9 #define KUSERTIMESTAMP_H
10 
11 #include <kwindowsystem_export.h>
12 
13 namespace KUserTimestamp
14 {
15 /**
16  * Returns the last user action timestamp or 0 if no user activity has taken place yet.
17  * @see updateuserTimestamp
18  */
19 KWINDOWSYSTEM_EXPORT unsigned long userTimestamp();
20 
21 /**
22  * Updates the last user action timestamp to the given time, or to the current time,
23  * if 0 is given. Do not use unless you're really sure what you're doing.
24  * Consult focus stealing prevention section in kdebase/kwin/README.
25  */
26 KWINDOWSYSTEM_EXPORT void updateUserTimestamp(unsigned long time = 0);
27 }
28 
29 #endif
KJOBWIDGETS_EXPORT unsigned long userTimestamp(KJob *job)
KJOBWIDGETS_EXPORT void updateUserTimestamp(KJob *job, unsigned long time)
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Fri Oct 15 2021 22:41:50 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.