Debian Codegraph @

Source/Reasoner/Kernel/Manager/Events/CQueriedTaxonomyComputedCallbackEvent.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_CQUERIEDTAXONOMYCOMPUTEDCALLBACKEVENT_H
22 #define KONCLUDE_REASONER_KERNEL_MANAGER_EVENTS_CQUERIEDTAXONOMYCOMPUTEDCALLBACKEVENT_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 #include "Reasoner/Query/CTaxonomyPremisingQuery.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 Query;
53
54 namespace Kernel {
55
56 namespace Manager {
57
58 namespace Events {
59
60
61
62 /*!
63 * \class CQueriedTaxonomyComputedCallbackEvent
64 * \author Andreas Steigmiller
65 * \version 0.1
66 * \brief
67 */
68 class CQueriedTaxonomyComputedCallbackEvent : public CCustomEvent, public CCallbackData {
69 // public methods
70 public:
71 //! Constructor
72 CQueriedTaxonomyComputedCallbackEvent(CThread *receiverThread, CTaxonomyPremisingQuery *query);
73
74 //! Destructor
75 virtual ~CQueriedTaxonomyComputedCallbackEvent();
76
77
78 virtual void doCallback();
79
80 virtual CTaxonomyPremisingQuery *getQuery();
81
82 virtual QString getQueryString();
83 virtual QString getQueryName();
84
85 static const QEvent::Type EVENTTYPE = EVENTQUERIEDTAXCOMPUTEDCALLBACK;
86
87
88 // protected methods
89 protected:
90
91 // protected variables
92 protected:
93 CTaxonomyPremisingQuery *query;
94 CThread *recThread;
95 QString queryString;
96
97 QString queryName;
98
99
100 // private methods
101 private:
102
103 // private variables
104 private:
105
106 };
107
108 }; // end namespace Events
109
110 }; // end namespace Manager
111
112 }; // end namespace Kernel
113
114 }; // end namespace Reasoner
115
116 }; // end namespace Konclude
117
118 #endif // KONCLUDE_REASONER_KERNEL_MANAGER_EVENTS_CQUERIEDTAXONOMYCOMPUTEDCALLBACKEVENT_H