Debian Codegraph @

Source/Reasoner/Kernel/Manager/Events/CRequirementProcessedCallbackEvent.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
21 #ifndef KONCLUDE_REASONER_KERNEL_MANAGER_EVENTS_CREQUIREMENTPROCESSEDCALLBACKEVENT_H
22 #define KONCLUDE_REASONER_KERNEL_MANAGER_EVENTS_CREQUIREMENTPROCESSEDCALLBACKEVENT_H
23
24
25
26 // Libraries includes
27 #include <QString>
28
29
30 // Namespace includes
31 #include "../ManagerSettings.h"
32 #include "../CRequirementPreparingData.h"
33
34
35 // Other includes
36 #include "Reasoner/Ontology/CConcreteOntology.h"
37
38 #include "Concurrent/Events/CCustomEvent.h"
39
40
41 // Logger includes
42 #include "Logger/CLogger.h"
43
44
45
46 namespace Konclude {
47
48 using namespace Concurrent::Events;
49
50 namespace Reasoner {
51
52 using namespace Ontology;
53
54 namespace Kernel {
55
56 namespace Manager {
57
58 namespace Events {
59
60
61
62 /*!
63 * \class CRequirementProcessedCallbackEvent
64 * \author Andreas Steigmiller
65 * \version 0.1
66 * \brief
67 */
68 class CRequirementProcessedCallbackEvent : public CCustomEvent, public CCallbackData {
69 // public methods
70 public:
71 //! Constructor
72 CRequirementProcessedCallbackEvent(CThread* receiverThread, CConcreteOntology* ontology, CRequirementPreparingData* reqPrepData, cint64 procType);
73
74 //! Destructor
75 virtual ~CRequirementProcessedCallbackEvent();
76
77
78 virtual void doCallback();
79
80 virtual CConcreteOntology* getOntology();
81 virtual CRequirementPreparingData* getRequirementPreparingData();
82
83 static const QEvent::Type EVENTTYPE = EVENTREQUIREMENTPROCESSEDCALLBACK;
84
85 cint64 mProcType;
86
87 // protected methods
88 protected:
89
90 // protected variables
91 protected:
92 CConcreteOntology* mOntology;
93 CRequirementPreparingData* mReqPrepData;
94 CThread *recThread;
95
96
97 // private methods
98 private:
99
100 // private variables
101 private:
102
103 };
104
105 }; // end namespace Events
106
107 }; // end namespace Manager
108
109 }; // end namespace Kernel
110
111 }; // end namespace Reasoner
112
113 }; // end namespace Konclude
114
115 #endif // KONCLUDE_REASONER_KERNEL_MANAGER_EVENTS_CREQUIREMENTPROCESSEDCALLBACKEVENT_H