File indexing completed on 2024-04-14 03:59:58

0001 /***************************************************************************
0002                           ctimerlist.h  -  list of timers
0003                              -------------------
0004     begin                : St maj 8 2003
0005     copyright            : (C) 2003-2008 by Tomas Mecir
0006     email                : kmuddy@kmuddy.com
0007  ***************************************************************************/
0008 
0009 /***************************************************************************
0010  *                                                                         *
0011  *   This program is free software; you can redistribute it and/or modify  *
0012  *   it under the terms of the GNU General Public License as published by  *
0013  *   the Free Software Foundation; either version 2 of the License, or     *
0014  *   (at your option) any later version.                                   *
0015  *                                                                         *
0016  ***************************************************************************/
0017 
0018 #ifndef CTIMERLIST_H
0019 #define CTIMERLIST_H
0020 
0021 #include "clist.h"
0022 #include <QObject>
0023 
0024 /**
0025 List of timers.
0026   *@author Tomas Mecir
0027   */
0028 
0029 class cTimerList : public QObject, public cList {
0030    Q_OBJECT
0031 public:
0032   cTimerList ();
0033   ~cTimerList () override;
0034 
0035   static cList *newList () { return new cTimerList; };
0036   cListObject *newObject () override;
0037   QString objName () override { return "Timer"; }
0038   cListEditor *editor (QWidget *parent) override;
0039 
0040   void setEnabled (bool en = true) override;
0041 protected slots:
0042   void timeout ();
0043 protected:
0044   friend class cTimer;
0045 
0046   int tickCount ();
0047 
0048   struct Private;
0049   Private *d;
0050 };
0051 
0052 #endif