Debian Codegraph @

Source/Concurrent/CIntervalThreadData.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_CINTERVALTHREADDATA_H
21 #define KONCLUDE_CONCURRENT_CINTERVALTHREADDATA_H
22
23
24 #include <QString>
25
26
27 namespace Konclude {
28
29 namespace Concurrent {
30
31
32 /*!
33 * \class CIntervalThreadData
34 * \author Andreas Steigmiller
35 * \version 0.1
36 * \brief
37 */
38 class CIntervalThreadData {
39 // public methods
40 public:
41 //! Constructor
42 CIntervalThreadData();
43
44 //! Destructor
45 virtual ~CIntervalThreadData();
46
47
48 void setTimerID(qint64 timerID);
49 qint64 getTimerID();
50
51 void setInterval(qint64 threadInterval);
52 qint64 getInterval();
53
54 void setTimerActive(bool threadIsActive);
55 bool isTimerActive();
56
57 void setTimerThreadID(qint64 timerThreadID);
58 qint64 getTimerThreadID();
59
60 void incDeactivateCount();
61 void decDeactivateCount();
62 qint64 getDeactivateCount();
63
64 void setRemainingTimerInvocations(qint64 remInvoc);
65 qint64 getRemainingTimerInvocations();
66 bool hasRemainingTimerInvocations();
67 void decRemainingTimerInvocations(qint64 decCount = 1);
68
69 // protected methods
70 protected:
71
72
73
74 // private methods
75 private:
76
77
78 // private variables
79 private:
80 qint64 interval;
81 bool active;
82 qint64 id;
83 qint64 timerID;
84 qint64 deactivateCount;
85 qint64 remInvocations;
86
87
88
89 };
90
91 }; // end namespace Concurrent
92
93 }; // end namespace Konclude
94
95 #endif // KONCLUDE_CONCURRENT_CINTERVALTHREADDATA_H