Warning, file /frameworks/kwindowsystem/src/kusertimestamp.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* 0002 This file is part of the KDE libraries 0003 SPDX-FileCopyrightText: 2003 Luboš Luňák <l.lunak@kde.org> 0004 0005 SPDX-License-Identifier: LGPL-2.1-or-later 0006 */ 0007 0008 #ifndef KUSERTIMESTAMP_H 0009 #define KUSERTIMESTAMP_H 0010 0011 #include <kwindowsystem_export.h> 0012 0013 namespace KUserTimestamp 0014 { 0015 /** 0016 * Returns the last user action timestamp or 0 if no user activity has taken place yet. 0017 * @see updateuserTimestamp 0018 */ 0019 KWINDOWSYSTEM_EXPORT unsigned long userTimestamp(); 0020 0021 /** 0022 * Updates the last user action timestamp to the given time, or to the current time, 0023 * if 0 is given. Do not use unless you're really sure what you're doing. 0024 * Consult focus stealing prevention section in kdebase/kwin/README. 0025 */ 0026 KWINDOWSYSTEM_EXPORT void updateUserTimestamp(unsigned long time = 0); 0027 } 0028 0029 #endif