Debian Codegraph @

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