Refactoring project layout

This commit is contained in:
stephb9959
2021-10-19 20:17:40 -07:00
parent 117e820d1e
commit 0f26f359dd
19 changed files with 34 additions and 29 deletions

2
build
View File

@@ -1 +1 @@
59
60

View File

@@ -21,7 +21,7 @@
#include "Poco/Net/HTTPRequestHandler.h"
#include "Poco/Logger.h"
#include "../Daemon.h"
#include "Daemon.h"
#include "SubSystemServer.h"
namespace OpenWifi {

View File

@@ -9,8 +9,8 @@
#include <utility>
#include "AuthClient.h"
#include "../RESTAPI/RESTAPI_SecurityObjects.h"
#include "../Daemon.h"
#include "RESTAPI/RESTAPI_SecurityObjects.h"
#include "Daemon.h"
#include "OpenAPIRequest.h"
namespace OpenWifi {

View File

@@ -6,11 +6,11 @@
#define UCENTRALGW_AUTHCLIENT_H
#include "Poco/JSON/Object.h"
#include "Poco/JWT/Signer.h"
#include "Poco/Net/HTTPServerRequest.h"
#include "Poco/Net/HTTPServerResponse.h"
#include "Poco/JWT/Signer.h"
#include "Poco/SHA2Engine.h"
#include "../RESTAPI/RESTAPI_SecurityObjects.h"
#include "RESTAPI/RESTAPI_SecurityObjects.h"
#include "SubSystemServer.h"
namespace OpenWifi {

View File

@@ -9,7 +9,7 @@
#include "KafkaManager.h"
#include "../Daemon.h"
#include "Daemon.h"
#include "Utils.h"
namespace OpenWifi {

View File

@@ -13,7 +13,7 @@
#include <thread>
#include "SubSystemServer.h"
#include "framework/OpenWifiTypes.h"
#include "OpenWifiTypes.h"
#include "cppkafka/cppkafka.h"

View File

@@ -1,7 +1,10 @@
//
// Created by stephane bourque on 2021-06-07.
// License type: BSD 3-Clause License
// License copy: https://github.com/Telecominfraproject/wlan-cloud-ucentralgw/blob/master/LICENSE
//
// Created by Stephane Bourque on 2021-03-04.
// Arilia Wireless Inc.
//
#ifndef UCENTRALGW_KAFKA_TOPICS_H
#define UCENTRALGW_KAFKA_TOPICS_H

View File

@@ -26,7 +26,7 @@
#include "Poco/JSON/Parser.h"
#include "Poco/JSON/Stringifier.h"
#include "ALBHealthCheckServer.h"
#include "framework/ALBHealthCheckServer.h"
#ifndef SMALL_BUILD
#include "KafkaManager.h"
#endif
@@ -36,7 +36,7 @@
#include "Utils.h"
#ifndef TIP_SECURITY_SERVICE
#include "AuthClient.h"
#include "framework/AuthClient.h"
#endif
namespace OpenWifi {

View File

@@ -18,7 +18,7 @@
#include <Poco/URI.h>
#include <Poco/Exception.h>
#include "Utils.h"
#include "../Daemon.h"
#include "Daemon.h"
namespace OpenWifi {

View File

@@ -8,7 +8,7 @@
#include <vector>
#include <string>
#include "../Daemon.h"
#include "Daemon.h"
#include "Poco/StringTokenizer.h"
#include "Poco/Net/HTTPRequest.h"

View File

@@ -50,8 +50,10 @@ namespace OpenWifi::RESTAPI::Errors {
static const std::string InvalidPassword{"Invalid password."};
static const std::string PasswordRejected{"Password was rejected. This maybe an old password."};
static const std::string InvalidIPRanges{"Invalid IP range specifications."};
static const std::string InvalidLOrderBy{"Invalid orderBy specification."};
static const std::string NeedMobileNumber{"You must provide at least one validated phone number."};
static const std::string BadMFAMethod{"MFA only supports sms or email."};
}
#endif //OWPROV_RESTAPI_ERRORS_H

View File

@@ -20,15 +20,15 @@
#include "RESTAPI_errors.h"
#ifdef TIP_SECURITY_SERVICE
#include "../AuthService.h"
#include "AuthService.h"
#else
#include "AuthClient.h"
#include "framework/AuthClient.h"
#endif
#include "RESTAPI_handler.h"
#include "RESTAPI_protocol.h"
#include "Utils.h"
#include "../Daemon.h"
#include "Daemon.h"
namespace OpenWifi {

View File

@@ -24,7 +24,7 @@
#include "Poco/CountingStream.h"
#include "Poco/NullStream.h"
#include "../RESTAPI/RESTAPI_SecurityObjects.h"
#include "RESTAPI/RESTAPI_SecurityObjects.h"
#include "RESTAPI_utils.h"
#include "RESTAPI_GenericServer.h"

View File

@@ -12,9 +12,9 @@
#include "Poco/DateTime.h"
#include "Poco/DateTimeFormat.h"
#include "../Daemon.h"
#include "RESTAPI_protocol.h"
#include "RESTAPI_errors.h"
#include "Daemon.h"
#include "framework/RESTAPI_protocol.h"
#include "framework/RESTAPI_errors.h"
#include <thread>
#include <chrono>

View File

@@ -9,7 +9,7 @@
#ifndef UCENTRALGW_RESTAPI_SYSTEM_COMMAND_H
#define UCENTRALGW_RESTAPI_SYSTEM_COMMAND_H
#include "RESTAPI_handler.h"
#include "framework/RESTAPI_handler.h"
namespace OpenWifi {
class RESTAPI_system_command : public RESTAPIHandler {

View File

@@ -9,8 +9,8 @@
#include "Poco/JSON/Object.h"
#include "Poco/JSON/Parser.h"
#include "Poco/Net/HTTPServerRequest.h"
#include "OpenWifiTypes.h"
#include "Utils.h"
#include "framework/OpenWifiTypes.h"
#include "framework/Utils.h"
namespace OpenWifi::RESTAPI_utils {

View File

@@ -7,7 +7,7 @@
//
#include "SubSystemServer.h"
#include "../Daemon.h"
#include "Daemon.h"
#include "Poco/Net/X509Certificate.h"
#include "Poco/DateTimeFormatter.h"
@@ -17,7 +17,7 @@
#include "openssl/ssl.h"
#include "../Daemon.h"
#include "Daemon.h"
namespace OpenWifi {
SubSystemServer::SubSystemServer(std::string Name, const std::string &LoggingPrefix,

View File

@@ -29,7 +29,7 @@
#include "Poco/Net/HTTPResponse.h"
#include "uCentralProtocol.h"
#include "../Daemon.h"
#include "Daemon.h"
namespace OpenWifi::Utils {

View File

@@ -2,8 +2,8 @@
// Created by stephane bourque on 2021-08-22.
//
#include "../StorageService.h"
#include "../Daemon.h"
#include "StorageService.h"
#include "Daemon.h"
namespace OpenWifi {