Debian Codegraph @

Source/Concurrent/Events/CTimerIntervalEvent.cpp

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 #include "CTimerIntervalEvent.h"
21
22
23 namespace Konclude {
24
25 namespace Concurrent {
26
27 namespace Events {
28
29
30 CTimerIntervalEvent::CTimerIntervalEvent(qint64 timerID, qint64 interval, bool active, bool deactive, qint64 remInvocs)
31 : CControlEvent(EVENTTIMERINTERVAL) {
32 id = timerID;
33 tInt = interval;
34 tActive = active;
35 tDeactive = deactive;
36 remCall = remInvocs;
37 }
38
39 CTimerIntervalEvent::~CTimerIntervalEvent() {
40 }
41
42 qint64 CTimerIntervalEvent::getTimerID() {
43 return id;
44 }
45
46 void CTimerIntervalEvent::setTimerID(qint64 timerID) {
47 id = timerID;
48 }
49
50 void CTimerIntervalEvent::setTimerInterval(qint64 interval) {
51 tInt = interval;
52 }
53
54 qint64 CTimerIntervalEvent::getTimerInterval() {
55 return tInt;
56 }
57
58 void CTimerIntervalEvent::setTimerActive(bool active) {
59 tActive = active;
60 }
61
62 bool CTimerIntervalEvent::getTimerActive() {
63 return tActive;
64 }
65
66 void CTimerIntervalEvent::setTimerDeactive(bool deactive) {
67 tDeactive = deactive;
68 }
69
70 bool CTimerIntervalEvent::getTimerDeactive() {
71 return tDeactive;
72 }
73
74 void CTimerIntervalEvent::setRemainingTimerInvocations(qint64 remInvoc) {
75 remCall = remInvoc;
76 }
77
78 qint64 CTimerIntervalEvent::getRemainingTimerInvocations() {
79 return remCall;
80 }
81
82
83 }; // end namespace Events
84
85 }; // end namespace Concurrent
86
87 }; // end namespace Konclude