Debian Codegraph @

Source/Control/Interface/SPARQL/Events/CResultStreamingWriteEvent.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_CONTROL_INTERFACE_SPARQL_EVENTS_CRESULTSTREAMINGWRITEEVENT_H
22 #define KONCLUDE_CONTROL_INTERFACE_SPARQL_EVENTS_CRESULTSTREAMINGWRITEEVENT_H
23
24
25
26 // Libraries includes
27 #include <QByteArray>
28 #include <QEvent>
29
30 // Namespace includes
31 #include "../SPARQLSettings.h"
32 #include "../CSPARQLResultBufferWriteData.h"
33
34
35 // Other includes
36 #include "Concurrent/Events/CCustomEvent.h"
37
38
39 // Logger includes
40 #include "Logger/CLogger.h"
41
42
43
44 namespace Konclude {
45
46 using namespace Concurrent::Events;
47
48 namespace Control {
49
50 namespace Interface {
51
52 namespace SPARQL {
53
54 namespace Events {
55
56
57
58 /*!
59 * \class CResultStreamingWriteEvent
60 * \author Andreas Steigmiller
61 * \version 0.1
62 * \brief
63 */
64 class CResultStreamingWriteEvent : public CCustomEvent {
65 // public methods
66 public:
67 //! Constructor
68 CResultStreamingWriteEvent(const QList<CSPARQLResultBufferWriteData>& bufferList, bool last);
69
70 //! Destructor
71 virtual ~CResultStreamingWriteEvent();
72
73 QList<CSPARQLResultBufferWriteData>* getBufferList();
74 bool isLast();
75
76
77 static const QEvent::Type EVENTTYPE = EVENTRESULTSTREAMINGWRITE;
78
79 // protected methods
80 protected:
81
82 // protected variables
83 protected:
84 QList<CSPARQLResultBufferWriteData> mBufferList;
85 bool mLast;
86
87
88 // private methods
89 private:
90
91 // private variables
92 private:
93
94 };
95
96 }; // end namespace Events
97
98 }; // end namespace SPARQL
99
100 }; // end namespace Interface
101
102 }; // end namespace Control
103
104 }; // end namespace Konclude
105
106 #endif // KONCLUDE_CONTROL_INTERFACE_SPARQL_EVENTS_CRESULTSTREAMINGWRITEEVENT_H