Debian Codegraph @

Source/Control/Loader/COWLlinkHttpServerLoader.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_LOADER_COWLLINKHTTPSERVERLOADER_H
22 #define KONCLUDE_CONTROL_LOADER_COWLLINKHTTPSERVERLOADER_H
23
24 // Libraries includes
25 #include <QString>
26 #include <QRegExp>
27 #include <QTime>
28 //#include <QTest>
29
30 // Namespace includes
31 #include "LoaderSettings.h"
32 #include "CLoader.h"
33 #include "CLoaderFactory.h"
34
35 // Other includes
36 #include "Control/Interface/OWLlink/COWLlinkProcessor.h"
37 #include "Control/Interface/OWLlink/COWLlinkHttpConnectionHandlerProcessor.h"
38 #include "Control/Interface/OWLlink/COWLlinkHttpConnectionHandlerProcessorFactory.h"
39
40 #include "Control/Command/CConfigManagerReader.h"
41
42 #include "Network/HTTP/CQtHttpConnectionHandlerPooledFactory.h"
43 #include "Network/HTTP/CQtHttpListner.h"
44
45
46 // Logger includes
47 #include "Logger/CLogger.h"
48 #include "Logger/CLogIdentifier.h"
49
50
51 #include <stdio.h>
52 #include <iostream>
53
54
55 namespace Konclude {
56
57 using namespace Logger;
58
59 using namespace Network::HTTP;
60
61 namespace Control {
62
63 using namespace Interface::OWLlink;
64 using namespace Command;
65
66 namespace Loader {
67
68 /*!
69 *
70 * \class COWLlinkHttpServerLoader
71 * \author Andreas Steigmiller
72 * \version 0.1
73 * \brief TODO
74 *
75 */
76 class COWLlinkHttpServerLoader : public CLoader {
77 // public methods
78 public:
79 //! Constructor
80 COWLlinkHttpServerLoader();
81
82 //! Destructor
83 virtual ~COWLlinkHttpServerLoader();
84
85
86 virtual CLoader *init(CLoaderFactory *loaderFactory = 0, CConfiguration *config = 0);
87 virtual CLoader *load();
88 virtual CLoader *exit();
89
90
91
92 // protected methods
93 protected:
94
95 // protected variables
96 protected:
97 CConfiguration *loaderConfig;
98 cint64 mPort;
99
100 COWLlinkHttpConnectionHandlerProcessorFactory* mHanlderFactory;
101 CQtHttpConnectionHandlerPooledFactory* mHandlerPool;
102 CQtHttpListner* mHttpListner;
103
104
105 // private methods
106 private:
107
108 // private variables
109 private:
110
111 };
112
113 }; // end namespace Loader
114
115 }; // end namespace Control
116
117 }; // end namespace Konclude
118
119 #endif // KONCLUDE_Control_LOADER_COWLlinkHttpServerLoader_H