Debian Codegraph @

Source/Concurrent/Events/CTimerIntervalEvent.h

raw
1 /*
2 * Copyright (C) 2013-2015, 2019 by the Konclude Developer Team.
3 *
4 * This file is part of the reasoning system Konclude.
5 * For details and support, see <http://konclude.com/>.
6 *
7 * Konclude is free software: you can redistribute it and/or modify
8 * it under the terms of version 3 of the GNU Lesser General Public
9 * License (LGPLv3) as published by the Free Software Foundation.
10 *
11 * Konclude is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU (Lesser) General Public License for more details.
15 *
16 * You should have received a copy of the GNU (Lesser) General Public
17 * License along with Konclude. If not, see <http://www.gnu.org/licenses/>.
18 *
19 */
20 #ifndef KONCLUDE_CONCURRENT_EVENTS_CTIMERINTERVALEVENT_H
21 #define KONCLUDE_CONCURRENT_EVENTS_CTIMERINTERVALEVENT_H
22
23 #include <QEvent>
24 #include <QTimerEvent>
25
26 #include "CControlEvent.h"
27
28 #include "../ConcurrentSettings.h"
29
30 namespace Konclude {
31
32 namespace Concurrent {
33
34 namespace Events {
35
36
37 /*!
38 * \class CTimerIntervalEvent
39 * \author Andreas Steigmiller
40 * \version 0.1
41 * \brief
42 */
43 class CTimerIntervalEvent : public CControlEvent {
44 // public methods
45 public:
46 //! Constructor
47 CTimerIntervalEvent(qint64 timerID = 0, qint64 interval = -1, bool active = false, bool deactive = false, qint64 remInvocs = -1);
48
49 //! Destructor
50 virtual ~CTimerIntervalEvent();
51
52 qint64 getTimerID();
53 void setTimerID(qint64 timerID);
54
55 void setTimerInterval(qint64 interval);
56 qint64 getTimerInterval();
57
58 void setTimerActive(bool active);
59 bool getTimerActive();
60
61 void setTimerDeactive(bool deactive);
62 bool getTimerDeactive();
63
64 void setRemainingTimerInvocations(qint64 remInvoc);
65 qint64 getRemainingTimerInvocations();
66
67 // protected methods
68 protected:
69
70
71 // private members
72 private:
73 qint64 id;
74 qint64 tInt;
75 qint64 remCall;
76 bool tActive;
77 bool tDeactive;
78
79 };
80
81 }; // end namespace Events
82
83 }; // end namespace Concurrent
84
85 }; // end namespace Konclude
86
87 #endif // KONCLUDE_CONCURRENT_EVENTS_CTIMERINTERVALEVENT_H