KWallet

ktimeout.h
1/*
2 This file is part of the KDE libraries
3 SPDX-FileCopyrightText: 2003 George Staikos <staikos@kde.org>
4
5 SPDX-License-Identifier: LGPL-2.0-or-later
6*/
7
8#ifndef _KTIMEOUT_H_
9#define _KTIMEOUT_H_
10
11#include <QHash>
12#include <QObject>
13
14// @internal
15class KTimeout : public QObject
16{
18public:
19 explicit KTimeout(QObject *parent = nullptr);
20 ~KTimeout() override;
21
23 void timedOut(int id);
24
25public Q_SLOTS:
26 void resetTimer(int id, int timeout);
27 void addTimer(int id, int timeout);
28 void removeTimer(int id);
29 void clear();
30
31protected:
32 void timerEvent(QTimerEvent *) override;
33
34private:
35 QHash<int /*id*/, int /*timerId*/> _timers;
36};
37
38#endif
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:12:12 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.