File indexing completed on 2024-05-12 15:54:48

0001 /*
0002  * SPDX-FileCopyrightText: (C) 2015 Vishesh Handa <vhanda@kde.org>
0003  *
0004  * SPDX-License-Identifier: LGPL-2.1-or-later
0005  */
0006 
0007 #ifndef KOKO_COMMITTIMER_H
0008 #define KOKO_COMMITTIMER_H
0009 
0010 #include <QObject>
0011 #include <QTimer>
0012 
0013 namespace Koko
0014 {
0015 class CommitTimer : public QObject
0016 {
0017     Q_OBJECT
0018 public:
0019     explicit CommitTimer(QObject *parent = nullptr);
0020 
0021 public slots:
0022     void start();
0023 
0024 signals:
0025     void timeout();
0026 
0027 private slots:
0028     void slotTimeout();
0029 
0030 private:
0031     QTimer m_smallTimer;
0032     QTimer m_largeTimer;
0033 };
0034 }
0035 
0036 #endif // KOKO_COMMITTIMER_H