Debian Codegraph @

Source/Logger/Events/CRequestLogMessagesEvent.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 LOGGER_EVENTS_CREQUESTLOGMESSAGESEVENT_H
21 #define LOGGER_EVENTS_CREQUESTLOGMESSAGESEVENT_H
22
23 #include <QEvent>
24 #include <QLinkedList>
25 #include <QStringList>
26
27 #include "Concurrent/Events/CCustomCallbackEvent.h"
28
29 #include "../LoggerSettings.h"
30 #include "../CLogMessage.h"
31
32
33 namespace Konclude {
34
35 using namespace Concurrent;
36 using namespace Events;
37
38 namespace Logger {
39
40 namespace Events {
41
42
43 /*!
44 * \class CRequestLogMessagesEvent
45 * \author Andreas Steigmiller
46 * \version 0.1
47 * \brief
48 */
49 class CRequestLogMessagesEvent : public CCustomCallbackEvent {
50 // public methods
51 public:
52 //! Constructor
53 CRequestLogMessagesEvent(CCallbackData *callback, qint64 beginID, qint64 endID, double beginLevel, double endLevel, QStringList domainList, QLinkedList<void *> objectList);
54
55 //! Destructor
56 virtual ~CRequestLogMessagesEvent();
57
58
59 CRequestLogMessagesEvent *setMessageBeginID(qint64 beginID);
60 qint64 getMessageBeginID();
61
62 CRequestLogMessagesEvent *setMessageEndID(qint64 endID);
63 qint64 getMessageEndID();
64
65 CRequestLogMessagesEvent *setLevelBegin(double beginLevel);
66 double getBeginLevel();
67
68 CRequestLogMessagesEvent *setLevelEnd(double endLevel);
69 double getEndLevel();
70
71 CRequestLogMessagesEvent *setDomains(QStringList domainList);
72 QStringList getDomains();
73
74 CRequestLogMessagesEvent *setObjects(QLinkedList<void *> objectList);
75 QLinkedList<void *> getObjects();
76
77
78 // protected methods
79 protected:
80
81
82 // private members
83 private:
84 qint64 messageIDBegin;
85 qint64 messageIDEnd;
86 double levelBegin;
87 double levelEnd;
88 QStringList domains;
89 QLinkedList<void *> objects;
90
91
92
93 };
94
95 }; // end namespace Events
96
97 }; // end namespace Logger
98
99 }; // end namespace Konclude
100
101 #endif // LOGGER_EVENTS_CREQUESTLOGMESSAGESEVENT_H