mirror of
https://github.com/Karaka-Management/oms-OnlineResourceWatcher.git
synced 2026-02-04 18:48:40 +00:00
org -> unit change, some new functionality
This commit is contained in:
parent
050f5a04c5
commit
8f7b0eb7c4
3
.gitmodules
vendored
3
.gitmodules
vendored
|
|
@ -1,3 +0,0 @@
|
|||
[submodule "server/cOMS"]
|
||||
path = server/cOMS
|
||||
url = https://github.com/Karaka-Management/cOMS.git
|
||||
|
|
@ -30,5 +30,5 @@ abstract class PermissionCategory extends Enum
|
|||
|
||||
public const REPORT = 2;
|
||||
|
||||
public const ORGANIZATION = 3;
|
||||
public const UNIT = 3;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,34 +0,0 @@
|
|||
cmake_minimum_required(VERSION 3.22)
|
||||
project(OnlineResourceWatcherServerApp VERSION 1.0.0 LANGUAGES CXX)
|
||||
add_executable(OnlineResourceWatcherServerApp main.cpp)
|
||||
|
||||
set(CMAKE_BUILD_TYPE "Debug")
|
||||
set(CMAKE_CXX_FLAGS "-march=native -msse2 -mavx -maes")
|
||||
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
set(CMAKE_AUTORCC ON)
|
||||
set(CMAKE_AUTOUIC ON)
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
|
||||
include_directories(/usr/include)
|
||||
link_directories(/usr/lib)
|
||||
link_directories(/usr/lib/x86_64-linux-gnu)
|
||||
|
||||
# SQLite3
|
||||
target_link_libraries(OnlineResourceWatcherServerApp PRIVATE sqlite3)
|
||||
|
||||
# MariaDB
|
||||
target_link_libraries(OnlineResourceWatcherServerApp PRIVATE mysqlclient)
|
||||
|
||||
# Postgresql
|
||||
target_include_directories(OnlineResourceWatcherServerApp PRIVATE /usr/include/postgresql)
|
||||
target_link_directories(OnlineResourceWatcherServerApp PRIVATE /usr/lib/postgresql/10/lib)
|
||||
target_link_libraries(OnlineResourceWatcherServerApp PRIVATE pq)
|
||||
|
||||
# Libcurl
|
||||
target_link_libraries(OnlineResourceWatcherServerApp PRIVATE curl)
|
||||
|
||||
# cmake -DCMAKE_BUILD_TYPE=Debug -DOMS_DEBUG=true
|
||||
# cmake -DCMAKE_BUILD_TYPE=Release -DOMS_DEMO=true
|
||||
|
|
@ -1,302 +0,0 @@
|
|||
/**
|
||||
* Karaka
|
||||
*
|
||||
* @package Models
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
#ifndef CONTROLLER_API_H
|
||||
#define CONTROLLER_API_H
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "../cOMS/Utils/ArrayUtils.h"
|
||||
#include "../cOMS/Utils/FileUtils.h"
|
||||
#include "../cOMS/Utils/WebUtils.h"
|
||||
#include "../cOMS/Hash/MeowHash.h"
|
||||
#include "../cOMS/Utils/MathUtils.h"
|
||||
#include "../cOMS/Threads/Thread.h"
|
||||
#include "../cOMS/DataStorage/Database/Mapper/DataMapperFactory.h"
|
||||
|
||||
#include "../Models/Resource.h"
|
||||
#include "../Models/ResourceMapper.h"
|
||||
#include "../Models/ResourceType.h"
|
||||
#include "../Models/ResourceStatus.h"
|
||||
|
||||
namespace Controller {
|
||||
namespace ApiController {
|
||||
static Application::ApplicationAbstract *app = NULL;
|
||||
|
||||
void printHelp(int argc, char **argv)
|
||||
{
|
||||
printf(" The Online Resource Watcher app developed by jingga checks online or local resources\n");
|
||||
printf(" for changes and informs the user about them.\n\n");
|
||||
printf(" Run: ./App ....\n\n");
|
||||
printf(" -h: Prints the help output\n");
|
||||
printf(" -v: Prints the version\n");
|
||||
printf("\n");
|
||||
printf(" Website: https://jingga.app\n");
|
||||
printf(" Copyright: jingga (c) Dennis Eichhorn\n");
|
||||
}
|
||||
|
||||
void printVersion(int argc, char **argv)
|
||||
{
|
||||
printf("Version: 1.0.0\n");
|
||||
}
|
||||
|
||||
void notInstalled(int argc, char **argv)
|
||||
{
|
||||
printf("No config file available, is the application installed?\n");
|
||||
printf("If not, run the application with:\n");
|
||||
printf(" --install -t 1 or\n");
|
||||
printf(" --install -t 2\n");
|
||||
printf("where 1 = web installation and 2 = local installation.\n\n");
|
||||
printf("Usually, '-t 2' is necessary if you see this message since the web\n");
|
||||
printf("installation is performed in the web installer as described in the README.\n");
|
||||
}
|
||||
|
||||
typedef struct {
|
||||
Models::Resource **resources;
|
||||
int count = 0;
|
||||
} ThreadData;
|
||||
|
||||
void onlineResourceThreaded(void *arg)
|
||||
{
|
||||
ThreadData *data = (ThreadData *) arg;
|
||||
|
||||
char **urls = (char **) malloc(data->count * sizeof(char *));
|
||||
int i;
|
||||
|
||||
for (i = 0; i < data->count; ++i) {
|
||||
urls[i] = data->resources[i]->uri;
|
||||
}
|
||||
|
||||
Utils::FileUtils::file_body *multi = Utils::WebUtils::multi_download(
|
||||
urls,
|
||||
data->count,
|
||||
5,
|
||||
0,
|
||||
(ResourceTypes *) {.size = 4, .resources = {"jpg", "png", "gif", "css"}}
|
||||
);
|
||||
// @todo: flag for downloading resources types (e.g. js, css, img)
|
||||
// @todo: limit filesize to abort downloading large files
|
||||
|
||||
if (urls != NULL) {
|
||||
free(urls);
|
||||
}
|
||||
|
||||
bool hasChanged = false;
|
||||
meow_u128 tempHash;
|
||||
|
||||
for (i = 0; i < data->count; ++i) {
|
||||
// cachedSource = Utils::FileUtils::read_file(data->resources[i]->last_version_path);
|
||||
|
||||
tempHash = Hash::Meow::MeowHash(Hash::Meow::MeowDefaultSeed, multi[i].size, multi[i].content);
|
||||
if (hasChanged = (strcmp((char *) Hash::Meow::MeowStringify(tempHash), data->resources[i]->hash) == 0)) {
|
||||
// @todo: do stuff because of change!!!
|
||||
// create website image with pdf?
|
||||
// inform users
|
||||
}
|
||||
|
||||
if (hasChanged || data->resources[i]->checked_at == 0) {
|
||||
// @todo: download references + css references (= second level)
|
||||
// @todo: probably ignore javascript references, they are not useful for static offline comparisons!?
|
||||
|
||||
data->resources[i]->hash = (char *) Hash::Meow::MeowStringify(tempHash);
|
||||
data->resources[i]->last_version_date = time(0);
|
||||
|
||||
// @todo: store new version
|
||||
// @todo: check if older version can/needs to be removed
|
||||
|
||||
data->resources[i]->last_version_path = (char *) "PATH_TO_NEWEST_VERSION\0";
|
||||
data->resources[i]->hash = (char *) "Hash_of_new_version\0";
|
||||
}
|
||||
|
||||
data->resources[i]->checked_at = time(0);
|
||||
|
||||
// @todo: update data
|
||||
//DataStorage::Database::DataMapperFactory::update(&Models::ResourceMapper)
|
||||
// ->execute(data->resources[i]);
|
||||
|
||||
Models::free_Resource(data->resources[i]);
|
||||
}
|
||||
|
||||
if (data->resources != NULL) {
|
||||
free(data->resources);
|
||||
}
|
||||
|
||||
if (arg != NULL) {
|
||||
free(arg);
|
||||
}
|
||||
}
|
||||
|
||||
void offlineResourceThreaded(void *arg)
|
||||
{
|
||||
}
|
||||
|
||||
void checkResources(int argc, char **argv)
|
||||
{
|
||||
int idLength = 0;
|
||||
Models::Resource *resources = NULL; // Elements freed in the threads
|
||||
|
||||
int i;
|
||||
if (Utils::ArrayUtils::has_arg("-r", argv, argc)) {
|
||||
char *resourceList = Utils::ArrayUtils::get_arg("-r", argv, argc);
|
||||
char **resourceIdStrings = NULL;
|
||||
|
||||
idLength = Utils::StringUtils::str_split(resourceIdStrings, resourceList, ',');
|
||||
resources = (Models::Resource *) malloc(idLength * sizeof(Models::Resource));
|
||||
|
||||
for (i = 0; i < idLength; ++i) {
|
||||
resources[i].id = atoll(resourceIdStrings[i]);
|
||||
}
|
||||
|
||||
if (resourceIdStrings != NULL) {
|
||||
free(resourceIdStrings);
|
||||
}
|
||||
} else {
|
||||
// @todo: limit memory usage by doing this multiple times in a loop with limits;
|
||||
DataStorage::Database::QueryResult results = app->db->query_execute(
|
||||
(char *) "SELECT * from oms.orw_resource WHERE oms.orw_resource_status = 1"
|
||||
);
|
||||
|
||||
resources = (Models::Resource *) malloc(results.rows * sizeof(Models::Resource));
|
||||
for (size_t row = 0; row < results.rows; ++row) {
|
||||
resources[row] = {};
|
||||
|
||||
for (i = 0; i < results.columns; ++i) {
|
||||
if (results.results[row * results.columns + i] != NULL) {
|
||||
free(results.results[row * results.columns + i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (results.results != NULL) {
|
||||
free(results.results);
|
||||
}
|
||||
}
|
||||
|
||||
// How many resources are handled in one thread
|
||||
// This must be multiplied with the thread count for the over all concurrent max downloads
|
||||
int THREAD_SIZE = app->config["app"]["resources"]["online"]["downloads"].get<int>();
|
||||
|
||||
Models::Resource **onlineResources = (Models::Resource **) malloc(oms_min(idLength, THREAD_SIZE) * sizeof(Models::Resource *));
|
||||
Models::Resource **offlineResources = (Models::Resource **) malloc(oms_min(idLength, THREAD_SIZE) * sizeof(Models::Resource *));
|
||||
|
||||
int j = 0;
|
||||
int c = 0;
|
||||
int k = 0;
|
||||
|
||||
for (i = 0; i < idLength; ++i) {
|
||||
if (resources[i].type == Models::ResourceType::RESOURCE_ONLINE) {
|
||||
onlineResources[j] = &resources[i];
|
||||
|
||||
++j;
|
||||
} else {
|
||||
offlineResources[k] = &resources[i];
|
||||
|
||||
++k;
|
||||
}
|
||||
|
||||
// Handle online resources in batches here:
|
||||
if (j > 0 && (j == THREAD_SIZE || i + 1 >= idLength)) {
|
||||
ThreadData *data = (ThreadData *) malloc(sizeof(ThreadData));
|
||||
data->resources = onlineResources;
|
||||
data->count = j;
|
||||
|
||||
Threads::pool_add_work(app->pool, onlineResourceThreaded, data);
|
||||
|
||||
if (i + 1 < idLength) {
|
||||
onlineResources = (Models::Resource **) malloc((oms_min(idLength - i, THREAD_SIZE)) * sizeof(Models::Resource *));
|
||||
j = 0;
|
||||
}
|
||||
}
|
||||
|
||||
// Handle offline resources in batches here:
|
||||
if (k > 0 && (k == THREAD_SIZE || i + 1 >= idLength)) {
|
||||
ThreadData *data = (ThreadData *) malloc(sizeof(ThreadData));
|
||||
data->resources = offlineResources;
|
||||
data->count = k;
|
||||
|
||||
Threads::pool_add_work(app->pool, offlineResourceThreaded, data);
|
||||
|
||||
if (i + 1 < idLength) {
|
||||
offlineResources = (Models::Resource **) malloc((oms_min(idLength - i, THREAD_SIZE)) * sizeof(Models::Resource *));
|
||||
k = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Threads::pool_wait(app->pool);
|
||||
free(resources);
|
||||
}
|
||||
|
||||
inline
|
||||
bool isResourceDateModified(char *filename, time_t lastChange)
|
||||
{
|
||||
return oms_abs(Utils::FileUtils::last_modification(filename) - lastChange) > 1;
|
||||
}
|
||||
|
||||
inline
|
||||
bool hasResourceContentChanged(Utils::FileUtils::file_body f1, Utils::FileUtils::file_body f2)
|
||||
{
|
||||
meow_u128 h1 = Hash::Meow::MeowHash(Hash::Meow::MeowDefaultSeed, f1.size, f1.content);
|
||||
meow_u128 h2 = Hash::Meow::MeowHash(Hash::Meow::MeowDefaultSeed, f2.size, f2.content);
|
||||
|
||||
return MeowHashesAreEqual(h1, h2);
|
||||
}
|
||||
|
||||
Utils::FileUtils::file_body hasChanged(char *oldResource, char *newResource, time_t lastChange)
|
||||
{
|
||||
char *t;
|
||||
int length = 0;
|
||||
|
||||
for (t = newResource; *t != '\0' && length < 7; ++t) {
|
||||
++length;
|
||||
}
|
||||
|
||||
Utils::FileUtils::file_body f1 = {0};
|
||||
Utils::FileUtils::file_body f2 = {0};
|
||||
|
||||
bool isFileModified = false;
|
||||
if (length > 5
|
||||
&& (strncmp(newResource, "https:", 6) || strncmp(newResource, "www.", 4))
|
||||
) {
|
||||
// web resource
|
||||
f1 = Utils::FileUtils::read_file(oldResource);
|
||||
f2 = Utils::WebUtils::download(newResource);
|
||||
} else {
|
||||
// local resource
|
||||
isFileModified = isResourceDateModified(oldResource, lastChange);
|
||||
if (isFileModified) {
|
||||
f1 = Utils::FileUtils::read_file(oldResource);
|
||||
f2 = Utils::FileUtils::read_file(newResource);
|
||||
}
|
||||
}
|
||||
|
||||
bool hasChanged = f1.content && f2.content && (isFileModified || hasResourceContentChanged(f1, f2));
|
||||
|
||||
free(f1.content);
|
||||
f1.size = -1;
|
||||
|
||||
if (hasChanged) {
|
||||
free(f2.content);
|
||||
f2.size = -1;
|
||||
}
|
||||
|
||||
return f2;
|
||||
}
|
||||
|
||||
void saveResourceChange(char *url, char *oldResource)
|
||||
{
|
||||
Utils::FileUtils::file_body dowloadData = Utils::WebUtils::download(url);
|
||||
|
||||
Utils::FileUtils::file_body fileData = Utils::FileUtils::read_file(oldResource);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
@ -1,130 +0,0 @@
|
|||
/**
|
||||
* Karaka
|
||||
*
|
||||
* @package Models
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
#ifndef CONTROLLER_INSTALL_H
|
||||
#define CONTROLLER_INSTALL_H
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string>
|
||||
|
||||
#include "../cOMS/Utils/Parser/Json.h"
|
||||
#include "../cOMS/Utils/ArrayUtils.h"
|
||||
#include "../cOMS/DataStorage/Database/Connection/ConnectionFactory.h"
|
||||
#include "../cOMS/DataStorage/Database/Connection/ConnectionAbstract.h"
|
||||
#include "../cOMS/DataStorage/Database/Connection/DbConnectionConfig.h"
|
||||
|
||||
#include "../Models/InstallType.h"
|
||||
|
||||
namespace Controller {
|
||||
namespace InstallController {
|
||||
int installWeb()
|
||||
{
|
||||
// Create config by copying weg config (nothing else necessary)
|
||||
Utils::FileUtils::file_body config = Utils::FileUtils::read_file("../web/config.json");
|
||||
|
||||
FILE *fp = fopen("config.json", "w");
|
||||
if (fp == NULL || config.content == NULL) {
|
||||
if (config.content != NULL) {
|
||||
free(config.content);
|
||||
}
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
fwrite(config.content, sizeof(char), config.size, fp);
|
||||
fclose(fp);
|
||||
|
||||
free(config.content);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int installLocal()
|
||||
{
|
||||
// Create config by copying config template
|
||||
FILE *in = fopen("Install/config.json", "r");
|
||||
if (in == NULL) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
nlohmann::json config = nlohmann::json::parse(in);
|
||||
|
||||
// @todo: populate config values (e.g. log path)
|
||||
|
||||
std::string strJson = config.dump(4);
|
||||
|
||||
FILE *out = fopen("config.json", "w");
|
||||
if (out == NULL) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
fwrite(strJson.c_str(), sizeof(char), strJson.size(), out);
|
||||
|
||||
fclose(in);
|
||||
fclose(out);
|
||||
|
||||
// Create sqlite database
|
||||
FILE *fp = fopen("db.sqlite", "w");
|
||||
if (fp == NULL) {
|
||||
return -2;
|
||||
}
|
||||
fclose(fp);
|
||||
|
||||
DataStorage::Database::DbConnectionConfig dbdata;
|
||||
DataStorage::Database::ConnectionAbstract *db = DataStorage::Database::create_connection(dbdata);
|
||||
if (db == NULL) {
|
||||
return -2;
|
||||
}
|
||||
|
||||
// DbSchema *schema = DbSchema::fromJson(jsonString);
|
||||
// QueryBuilder::createFromSchema(schema);
|
||||
// QueryBuilder query = QueryBuilder(db, false);
|
||||
// query.createTable()
|
||||
// .field()
|
||||
// .field()
|
||||
// query->execute();
|
||||
|
||||
DataStorage::Database::close(db, dbdata);
|
||||
free(db);
|
||||
DataStorage::Database::free_DbConnectionConfig(&dbdata);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
void installApplication(int argc, char** argv)
|
||||
{
|
||||
Models::InstallType type = (Models::InstallType)atoi(Utils::ArrayUtils::get_arg("-t", argv, argc));
|
||||
|
||||
int status = 0;
|
||||
if (type == Models::InstallType::WEB) {
|
||||
status = installWeb();
|
||||
}
|
||||
else {
|
||||
status = installLocal();
|
||||
}
|
||||
|
||||
if (status == 0) {
|
||||
printf("Application successfully installed\n");
|
||||
}
|
||||
else {
|
||||
printf("Application installation failed\n");
|
||||
}
|
||||
}
|
||||
|
||||
void parseConfigFile()
|
||||
{
|
||||
FILE *fp = fopen("config.json", "r");
|
||||
|
||||
nlohmann::json config = nlohmann::json::parse(fp);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -1,127 +0,0 @@
|
|||
{
|
||||
"db": {
|
||||
"core": {
|
||||
"masters": {
|
||||
"admin": {
|
||||
"db": "mysql",
|
||||
"host": "127.0.0.1",
|
||||
"port": "3306",
|
||||
"login": "root",
|
||||
"password": "root",
|
||||
"database": "oms_orw",
|
||||
"weight": 1000
|
||||
},
|
||||
"insert": {
|
||||
"db": "mysql",
|
||||
"host": "127.0.0.1",
|
||||
"port": "3306",
|
||||
"login": "root",
|
||||
"password": "root",
|
||||
"database": "oms_orw",
|
||||
"weight": 1000
|
||||
},
|
||||
"select": {
|
||||
"db": "mysql",
|
||||
"host": "127.0.0.1",
|
||||
"port": "3306",
|
||||
"login": "root",
|
||||
"password": "root",
|
||||
"database": "oms_orw",
|
||||
"weight": 1000
|
||||
},
|
||||
"update": {
|
||||
"db": "mysql",
|
||||
"host": "127.0.0.1",
|
||||
"port": "3306",
|
||||
"login": "root",
|
||||
"password": "root",
|
||||
"database": "oms_orw",
|
||||
"weight": 1000
|
||||
},
|
||||
"delete": {
|
||||
"db": "mysql",
|
||||
"host": "127.0.0.1",
|
||||
"port": "3306",
|
||||
"login": "root",
|
||||
"password": "root",
|
||||
"database": "oms_orw",
|
||||
"weight": 1000
|
||||
},
|
||||
"schema": {
|
||||
"db": "mysql",
|
||||
"host": "127.0.0.1",
|
||||
"port": "3306",
|
||||
"login": "root",
|
||||
"password": "root",
|
||||
"database": "oms_orw",
|
||||
"weight": 1000
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"mail": {
|
||||
"imap": {
|
||||
"host": "127.0.0.1",
|
||||
"port": 143,
|
||||
"ssl": false,
|
||||
"user": "test",
|
||||
"password": "123456"
|
||||
},
|
||||
"pop3": {
|
||||
"host": "127.0.0.1",
|
||||
"port": 25,
|
||||
"ssl": false,
|
||||
"user": "test",
|
||||
"password": "123456"
|
||||
}
|
||||
},
|
||||
"cache": {
|
||||
"redis": {
|
||||
"db": 1,
|
||||
"host": "127.0.0.1",
|
||||
"port": 6379
|
||||
},
|
||||
"memcached": {
|
||||
"host": "127.0.0.1",
|
||||
"port": 11211
|
||||
}
|
||||
},
|
||||
"log": {
|
||||
"file": {
|
||||
"path": "/home/spl1nes/repos/OnlineResourceWatcherApp/app/server/Logs"
|
||||
}
|
||||
},
|
||||
"page": {
|
||||
"root": "/",
|
||||
"https": false,
|
||||
"type": "dist"
|
||||
},
|
||||
"app": {
|
||||
"path": "/home/spl1nes/repos/OnlineResourceWatcherApp/app/server",
|
||||
"default": {
|
||||
"app": "Frontend",
|
||||
"id": "frontend",
|
||||
"lang": "en"
|
||||
},
|
||||
"domains": {
|
||||
"127.0.0.1": {
|
||||
"app": "Frontend",
|
||||
"id": "frontend",
|
||||
"lang": "en"
|
||||
}
|
||||
},
|
||||
"threads": {
|
||||
"count": 5
|
||||
},
|
||||
"resources": {
|
||||
"online": {
|
||||
"donwloads": 10
|
||||
}
|
||||
}
|
||||
},
|
||||
"language": [
|
||||
"en",
|
||||
"de",
|
||||
"it"
|
||||
]
|
||||
}
|
||||
Binary file not shown.
|
|
@ -1,58 +0,0 @@
|
|||
/**
|
||||
* Karaka
|
||||
*
|
||||
* @package Models
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
#ifndef MODELS_ACCOUNT_H
|
||||
#define MODELS_ACCOUNT_H
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "AccountStatus.h"
|
||||
#include "Organization.h"
|
||||
|
||||
namespace Models {
|
||||
typedef struct {
|
||||
int id = 0;
|
||||
|
||||
AccountStatus status = AccountStatus::ACCOUNT_ACTIVE;
|
||||
|
||||
char *email = NULL;
|
||||
|
||||
char *lang = NULL;
|
||||
|
||||
Organization *org = NULL;
|
||||
|
||||
time_t created_at = 0;
|
||||
} Account;
|
||||
|
||||
inline
|
||||
void free_Account(Account *obj)
|
||||
{
|
||||
if (obj->email != NULL) {
|
||||
free(obj->email);
|
||||
obj->email = NULL;
|
||||
|
||||
}
|
||||
|
||||
if (obj->lang != NULL) {
|
||||
free(obj->lang);
|
||||
obj->lang = NULL;
|
||||
|
||||
}
|
||||
|
||||
if (obj->org != NULL) {
|
||||
free_Organization(obj->org);
|
||||
free(obj->org);
|
||||
|
||||
obj->org = NULL;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
/**
|
||||
* Karaka
|
||||
*
|
||||
* @package Models
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
#ifndef MODELS_ACCOUNT_STATUS_H
|
||||
#define MODELS_ACCOUNT_STATUS_H
|
||||
|
||||
namespace Models {
|
||||
typedef enum {
|
||||
ACCOUNT_ACTIVE = 1,
|
||||
ACCOUNT_INACTIVE = 2
|
||||
} AccountStatus;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
@ -1,30 +0,0 @@
|
|||
/**
|
||||
* Karaka
|
||||
*
|
||||
* @package Models
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
#ifndef MODELS_DB_H
|
||||
#define MODELS_DB_H
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
namespace Models {
|
||||
namespace Db {
|
||||
inline
|
||||
int setup_connection (char *cfg)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
Resource *get_unchecked_resources(time_t olderThan)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
/**
|
||||
* Karaka
|
||||
*
|
||||
* @package Models
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
#ifndef MODELS_INSTALL_TYPE_H
|
||||
#define MODELS_INSTALL_TYPE_H
|
||||
|
||||
namespace Models {
|
||||
typedef enum {
|
||||
WEB = 1,
|
||||
LOCAL = 2
|
||||
} InstallType;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
@ -1,27 +0,0 @@
|
|||
/**
|
||||
* Karaka
|
||||
*
|
||||
* @package Models
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
#ifndef MODELS_ORGANIZATION_H
|
||||
#define MODELS_ORGANIZATION_H
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
namespace Models {
|
||||
typedef struct {
|
||||
int id = 0;
|
||||
} Organization;
|
||||
|
||||
inline
|
||||
void free_Organization(Organization *obj)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
@ -1,92 +0,0 @@
|
|||
/**
|
||||
* Karaka
|
||||
*
|
||||
* @package Models
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
#ifndef MODELS_RESOURCE_H
|
||||
#define MODELS_RESOURCE_H
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "ResourceStatus.h"
|
||||
#include "Organization.h"
|
||||
#include "ResourceInfo.h"
|
||||
|
||||
namespace Models {
|
||||
typedef struct {
|
||||
unsigned long long id = 0;
|
||||
|
||||
ResourceStatus status = ResourceStatus::RESOURCE_INACTIVE;
|
||||
|
||||
char *uri = NULL;
|
||||
|
||||
char *xpath = NULL;
|
||||
|
||||
char *hash = NULL;
|
||||
|
||||
char *last_version_path = NULL;
|
||||
|
||||
int type = 0; // ResourceType::ONLINE or ResourceType::OFFLINE
|
||||
|
||||
time_t last_version_date = 0;
|
||||
|
||||
time_t checked_at = 0;
|
||||
|
||||
Organization *org = NULL;
|
||||
|
||||
time_t created_at = 0;
|
||||
|
||||
ResourceInfo *info = NULL;
|
||||
} Resource;
|
||||
|
||||
inline
|
||||
void free_Resource(Resource *obj)
|
||||
{
|
||||
if (obj->uri != NULL) {
|
||||
free(obj->uri);
|
||||
obj->uri = NULL;
|
||||
|
||||
}
|
||||
|
||||
if (obj->xpath != NULL) {
|
||||
free(obj->xpath);
|
||||
obj->xpath = NULL;
|
||||
|
||||
}
|
||||
|
||||
if (obj->hash != NULL) {
|
||||
free(obj->hash);
|
||||
obj->hash = NULL;
|
||||
|
||||
}
|
||||
|
||||
if (obj->last_version_path != NULL) {
|
||||
free(obj->last_version_path);
|
||||
obj->last_version_path = NULL;
|
||||
|
||||
}
|
||||
|
||||
if (obj->info != NULL) {
|
||||
free_ResourceInfo(obj->info);
|
||||
free(obj->info);
|
||||
|
||||
obj->info = NULL;
|
||||
|
||||
}
|
||||
|
||||
if (obj->org != NULL) {
|
||||
free_Organization(obj->org);
|
||||
free(obj->org);
|
||||
|
||||
obj->org = NULL;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
@ -1,47 +0,0 @@
|
|||
/**
|
||||
* Karaka
|
||||
*
|
||||
* @package Models
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
#ifndef MODELS_RESOURCE_INFO_H
|
||||
#define MODELS_RESOURCE_INFO_H
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "Account.h"
|
||||
|
||||
namespace Models {
|
||||
typedef struct {
|
||||
int id = 0;
|
||||
|
||||
char *mail = NULL;
|
||||
|
||||
Account *account = NULL;
|
||||
|
||||
int resource = 0;
|
||||
} ResourceInfo;
|
||||
|
||||
inline
|
||||
void free_ResourceInfo(ResourceInfo *obj)
|
||||
{
|
||||
if (obj->mail != NULL) {
|
||||
free(obj->mail);
|
||||
obj->mail = NULL;
|
||||
|
||||
}
|
||||
|
||||
if (obj->account != NULL) {
|
||||
free_Account(obj->account);
|
||||
free(obj->account);
|
||||
|
||||
obj->account = NULL;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
@ -1,34 +0,0 @@
|
|||
/**
|
||||
* Karaka
|
||||
*
|
||||
* @package Models
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
#ifndef MODELS_RESOURCE_MAPPER_H
|
||||
#define MODELS_RESOURCE_MAPPER_H
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "../cOMS/DataStorage/Database/Mapper/DataMapperTypes.h"
|
||||
#include "../cOMS/DataStorage/Database/Mapper/MapperAbstract.h"
|
||||
|
||||
namespace Models {
|
||||
static const DataStorage::Database::MapperData ResourceMapper = {
|
||||
.MEMBER_COUNT = 1,
|
||||
.MODEL_STRUCTURE = new DataStorage::Database::ModelStructure[1] {
|
||||
{.name = "id", .size = sizeof(int)}
|
||||
},
|
||||
|
||||
.COLUMN_COUNT = 2,
|
||||
.COLUMNS = new DataStorage::Database::DataMapperColumn[2] {
|
||||
{.name = "orw_resource_id", .type = DataStorage::Database::FieldType::FIELD_TYPE_INT, .internal = "title"},
|
||||
{.name = "orw_resource_status", .type = DataStorage::Database::FieldType::FIELD_TYPE_INT, .internal = "status"}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
/**
|
||||
* Karaka
|
||||
*
|
||||
* @package Models
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
#ifndef MODELS_RESOURCE_STATUS_H
|
||||
#define MODELS_RESOURCE_STATUS_H
|
||||
|
||||
namespace Models {
|
||||
typedef enum {
|
||||
RESOURCE_ACTIVE = 1,
|
||||
RESOURCE_INACTIVE = 2
|
||||
} ResourceStatus;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
/**
|
||||
* Karaka
|
||||
*
|
||||
* @package Models
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
#ifndef MODELS_RESOURCE_TYPE_H
|
||||
#define MODELS_RESOURCE_TYPE_H
|
||||
|
||||
namespace Models {
|
||||
typedef enum {
|
||||
RESOURCE_ONLINE = 1,
|
||||
RESOURCE_OFFLINE = 2
|
||||
} ResourceType;
|
||||
}
|
||||
|
||||
#endif
|
||||
Binary file not shown.
|
|
@ -1,71 +0,0 @@
|
|||
// Microsoft Visual C++ generated resource script.
|
||||
//
|
||||
#include "resource.h"
|
||||
|
||||
#define APSTUDIO_READONLY_SYMBOLS
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Generated from the TEXTINCLUDE 2 resource.
|
||||
//
|
||||
#include "winres.h"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#undef APSTUDIO_READONLY_SYMBOLS
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// English (United States) resources
|
||||
|
||||
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
|
||||
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
||||
#pragma code_page(1252)
|
||||
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// TEXTINCLUDE
|
||||
//
|
||||
|
||||
1 TEXTINCLUDE
|
||||
BEGIN
|
||||
"resource.h\0"
|
||||
END
|
||||
|
||||
2 TEXTINCLUDE
|
||||
BEGIN
|
||||
"#include ""winres.h""\r\n"
|
||||
"\0"
|
||||
END
|
||||
|
||||
3 TEXTINCLUDE
|
||||
BEGIN
|
||||
"\r\n"
|
||||
"\0"
|
||||
END
|
||||
|
||||
#endif // APSTUDIO_INVOKED
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Icon
|
||||
//
|
||||
|
||||
// Icon with lowest ID value placed first to ensure application icon
|
||||
// remains consistent on all systems.
|
||||
IDI_ICON1 ICON "favicon.ico"
|
||||
|
||||
#endif // English (United States) resources
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
|
||||
#ifndef APSTUDIO_INVOKED
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Generated from the TEXTINCLUDE 3 resource.
|
||||
//
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#endif // not APSTUDIO_INVOKED
|
||||
|
||||
|
|
@ -1,31 +0,0 @@
|
|||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.3.32825.248
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "OnlineResourceWatcherServerApp", "OnlineResourceWatcherServerApp.vcxproj", "{E4833A04-2C5F-45C7-A516-1961F33989EC}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|x64 = Debug|x64
|
||||
Debug|x86 = Debug|x86
|
||||
Release|x64 = Release|x64
|
||||
Release|x86 = Release|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{E4833A04-2C5F-45C7-A516-1961F33989EC}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{E4833A04-2C5F-45C7-A516-1961F33989EC}.Debug|x64.Build.0 = Debug|x64
|
||||
{E4833A04-2C5F-45C7-A516-1961F33989EC}.Debug|x86.ActiveCfg = Debug|Win32
|
||||
{E4833A04-2C5F-45C7-A516-1961F33989EC}.Debug|x86.Build.0 = Debug|Win32
|
||||
{E4833A04-2C5F-45C7-A516-1961F33989EC}.Release|x64.ActiveCfg = Release|x64
|
||||
{E4833A04-2C5F-45C7-A516-1961F33989EC}.Release|x64.Build.0 = Release|x64
|
||||
{E4833A04-2C5F-45C7-A516-1961F33989EC}.Release|x86.ActiveCfg = Release|Win32
|
||||
{E4833A04-2C5F-45C7-A516-1961F33989EC}.Release|x86.Build.0 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {6B0C2D93-198E-41A1-A523-2AB67F051D55}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
|
|
@ -1,154 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Debug|Win32">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Debug|x64">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|x64">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<VCProjectVersion>16.0</VCProjectVersion>
|
||||
<Keyword>Win32Proj</Keyword>
|
||||
<ProjectGuid>{e4833a04-2c5f-45c7-a516-1961f33989ec}</ProjectGuid>
|
||||
<RootNamespace>OnlineResourceWatcherServerApp</RootNamespace>
|
||||
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="Shared">
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<IncludePath>C:\Users\deich\git\OnlineResourceWatcherApp\app\server;$(IncludePath)</IncludePath>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<OutDir>$(SolutionDir)bin\$(Platform)\$(Configuration)</OutDir>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
<PreprocessorDefinitions>_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<AdditionalIncludeDirectories>C:\Users\deich\git\OnlineResourceWatcherApp\app\server\cOMS\Resources\sqlite\src;C:\Program Files\MariaDB\MariaDB Connector C 64-bit\include;C:\Program Files\PostgreSQL\15\include;C:\libs\curl\builds\libcurl-vc-x64-release-dll-ipv6-sspi-schannel\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<DisableSpecificWarnings>5208;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<AdditionalDependencies>C:\Users\deich\git\OnlineResourceWatcherApp\app\server\cOMS\Resources\sqlite\lib\x64\sqlite3.lib;C:\Program Files\MariaDB\MariaDB Connector C 64-bit\lib\libmariadb.lib;C:\Program Files\PostgreSQL\15\lib\libpq.lib;C:\libs\curl\builds\libcurl-vc-x64-release-dll-ipv6-sspi-schannel\lib\libcurl.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<AdditionalLibraryDirectories>C:\Users\deich\git\OnlineResourceWatcherApp\app\server\cOMS\Resources\sqlite\lib\x64;C:\Program Files\MariaDB\MariaDB Connector C 64-bit\lib;C:\Program Files\PostgreSQL\15\lib;C:\libs\curl\builds\libcurl-vc-x64-release-dll-ipv6-sspi-schannel\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
<PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="main.cpp" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="resource.h" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ResourceCompile Include="OnlineResourceWatcherServerApp.rc" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Image Include="favicon.ico" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
||||
|
|
@ -1,37 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup>
|
||||
<Filter Include="Source Files">
|
||||
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
|
||||
<Extensions>cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="Header Files">
|
||||
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
|
||||
<Extensions>h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="Resource Files">
|
||||
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
|
||||
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="main.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="resource.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ResourceCompile Include="OnlineResourceWatcherServerApp.rc">
|
||||
<Filter>Resource Files</Filter>
|
||||
</ResourceCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Image Include="favicon.ico">
|
||||
<Filter>Resource Files</Filter>
|
||||
</Image>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<ShowAllFiles>false</ShowAllFiles>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
|
|
@ -1,35 +0,0 @@
|
|||
/**
|
||||
* Karaka
|
||||
*
|
||||
* @package Models
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
#ifndef ROUTES_H
|
||||
#define ROUTES_H
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "Controller/ApiController.h"
|
||||
#include "Controller/InstallController.h"
|
||||
#include "cOMS/Router/Router.h"
|
||||
#include "cOMS/Application/ApplicationAbstract.h"
|
||||
|
||||
Router::Router generate_routes(Application::ApplicationAbstract *app)
|
||||
{
|
||||
Controller::ApiController::app = app;
|
||||
|
||||
Router::Router router = Router::create_router(4);
|
||||
|
||||
Router::set(&router, "^.*?\\-h *.*$", (void *) &Controller::ApiController::printHelp);
|
||||
Router::set(&router, "^.*?\\-v *.*$", (void *) &Controller::ApiController::printVersion);
|
||||
Router::set(&router, "^.*?\\-r *.*$", (void *) &Controller::ApiController::checkResources);
|
||||
Router::set(&router, "^.*?\\-\\-install *.*$", (void *) &Controller::InstallController::installApplication);
|
||||
|
||||
return router;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
@ -1,733 +0,0 @@
|
|||
# This is the CMakeCache file.
|
||||
# For build in directory: /home/spl1nes/Orange-Management/Modules/OnlineResourceWatcher/server/bin
|
||||
# It was generated by CMake: /snap/cmake/1210/bin/cmake
|
||||
# You can edit this file to change values found and used by cmake.
|
||||
# If you do not want to change any of the values, simply exit the editor.
|
||||
# If you do want to change a value, simply edit, save, and exit the editor.
|
||||
# The syntax for the file is as follows:
|
||||
# KEY:TYPE=VALUE
|
||||
# KEY is the name of a variable in the cache.
|
||||
# TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!.
|
||||
# VALUE is the current value for the KEY.
|
||||
|
||||
########################
|
||||
# EXTERNAL cache entries
|
||||
########################
|
||||
|
||||
//Path to a program.
|
||||
CMAKE_ADDR2LINE:FILEPATH=/usr/bin/addr2line
|
||||
|
||||
//Path to a program.
|
||||
CMAKE_AR:FILEPATH=/usr/bin/ar
|
||||
|
||||
//Choose the type of build, options are: None Debug Release RelWithDebInfo
|
||||
// MinSizeRel ...
|
||||
CMAKE_BUILD_TYPE:STRING=
|
||||
|
||||
//Enable/Disable color output during build.
|
||||
CMAKE_COLOR_MAKEFILE:BOOL=ON
|
||||
|
||||
//CXX compiler
|
||||
CMAKE_CXX_COMPILER:FILEPATH=/usr/bin/c++
|
||||
|
||||
//A wrapper around 'ar' adding the appropriate '--plugin' option
|
||||
// for the GCC compiler
|
||||
CMAKE_CXX_COMPILER_AR:FILEPATH=/usr/bin/gcc-ar-11
|
||||
|
||||
//A wrapper around 'ranlib' adding the appropriate '--plugin' option
|
||||
// for the GCC compiler
|
||||
CMAKE_CXX_COMPILER_RANLIB:FILEPATH=/usr/bin/gcc-ranlib-11
|
||||
|
||||
//Flags used by the CXX compiler during all build types.
|
||||
CMAKE_CXX_FLAGS:STRING=
|
||||
|
||||
//Flags used by the CXX compiler during DEBUG builds.
|
||||
CMAKE_CXX_FLAGS_DEBUG:STRING=-g
|
||||
|
||||
//Flags used by the CXX compiler during MINSIZEREL builds.
|
||||
CMAKE_CXX_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG
|
||||
|
||||
//Flags used by the CXX compiler during RELEASE builds.
|
||||
CMAKE_CXX_FLAGS_RELEASE:STRING=-O3 -DNDEBUG
|
||||
|
||||
//Flags used by the CXX compiler during RELWITHDEBINFO builds.
|
||||
CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG
|
||||
|
||||
//C compiler
|
||||
CMAKE_C_COMPILER:FILEPATH=/usr/bin/cc
|
||||
|
||||
//A wrapper around 'ar' adding the appropriate '--plugin' option
|
||||
// for the GCC compiler
|
||||
CMAKE_C_COMPILER_AR:FILEPATH=/usr/bin/gcc-ar-11
|
||||
|
||||
//A wrapper around 'ranlib' adding the appropriate '--plugin' option
|
||||
// for the GCC compiler
|
||||
CMAKE_C_COMPILER_RANLIB:FILEPATH=/usr/bin/gcc-ranlib-11
|
||||
|
||||
//Flags used by the C compiler during all build types.
|
||||
CMAKE_C_FLAGS:STRING=
|
||||
|
||||
//Flags used by the C compiler during DEBUG builds.
|
||||
CMAKE_C_FLAGS_DEBUG:STRING=-g
|
||||
|
||||
//Flags used by the C compiler during MINSIZEREL builds.
|
||||
CMAKE_C_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG
|
||||
|
||||
//Flags used by the C compiler during RELEASE builds.
|
||||
CMAKE_C_FLAGS_RELEASE:STRING=-O3 -DNDEBUG
|
||||
|
||||
//Flags used by the C compiler during RELWITHDEBINFO builds.
|
||||
CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG
|
||||
|
||||
//Path to a program.
|
||||
CMAKE_DLLTOOL:FILEPATH=CMAKE_DLLTOOL-NOTFOUND
|
||||
|
||||
//Flags used by the linker during all build types.
|
||||
CMAKE_EXE_LINKER_FLAGS:STRING=
|
||||
|
||||
//Flags used by the linker during DEBUG builds.
|
||||
CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING=
|
||||
|
||||
//Flags used by the linker during MINSIZEREL builds.
|
||||
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING=
|
||||
|
||||
//Flags used by the linker during RELEASE builds.
|
||||
CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING=
|
||||
|
||||
//Flags used by the linker during RELWITHDEBINFO builds.
|
||||
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING=
|
||||
|
||||
//Enable/Disable output of compile commands during generation.
|
||||
CMAKE_EXPORT_COMPILE_COMMANDS:BOOL=
|
||||
|
||||
//Value Computed by CMake.
|
||||
CMAKE_FIND_PACKAGE_REDIRECTS_DIR:STATIC=/home/spl1nes/Orange-Management/Modules/OnlineResourceWatcher/server/bin/CMakeFiles/pkgRedirects
|
||||
|
||||
//Install path prefix, prepended onto install directories.
|
||||
CMAKE_INSTALL_PREFIX:PATH=/usr/local
|
||||
|
||||
//Path to a program.
|
||||
CMAKE_LINKER:FILEPATH=/usr/bin/ld
|
||||
|
||||
//Path to a program.
|
||||
CMAKE_MAKE_PROGRAM:FILEPATH=/usr/bin/gmake
|
||||
|
||||
//Flags used by the linker during the creation of modules during
|
||||
// all build types.
|
||||
CMAKE_MODULE_LINKER_FLAGS:STRING=
|
||||
|
||||
//Flags used by the linker during the creation of modules during
|
||||
// DEBUG builds.
|
||||
CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING=
|
||||
|
||||
//Flags used by the linker during the creation of modules during
|
||||
// MINSIZEREL builds.
|
||||
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING=
|
||||
|
||||
//Flags used by the linker during the creation of modules during
|
||||
// RELEASE builds.
|
||||
CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING=
|
||||
|
||||
//Flags used by the linker during the creation of modules during
|
||||
// RELWITHDEBINFO builds.
|
||||
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING=
|
||||
|
||||
//Path to a program.
|
||||
CMAKE_NM:FILEPATH=/usr/bin/nm
|
||||
|
||||
//Path to a program.
|
||||
CMAKE_OBJCOPY:FILEPATH=/usr/bin/objcopy
|
||||
|
||||
//Path to a program.
|
||||
CMAKE_OBJDUMP:FILEPATH=/usr/bin/objdump
|
||||
|
||||
//Value Computed by CMake
|
||||
CMAKE_PROJECT_DESCRIPTION:STATIC=
|
||||
|
||||
//Value Computed by CMake
|
||||
CMAKE_PROJECT_HOMEPAGE_URL:STATIC=
|
||||
|
||||
//Value Computed by CMake
|
||||
CMAKE_PROJECT_NAME:STATIC=OnlineResourceWatcherServerApp
|
||||
|
||||
//Value Computed by CMake
|
||||
CMAKE_PROJECT_VERSION:STATIC=1.0.0
|
||||
|
||||
//Value Computed by CMake
|
||||
CMAKE_PROJECT_VERSION_MAJOR:STATIC=1
|
||||
|
||||
//Value Computed by CMake
|
||||
CMAKE_PROJECT_VERSION_MINOR:STATIC=0
|
||||
|
||||
//Value Computed by CMake
|
||||
CMAKE_PROJECT_VERSION_PATCH:STATIC=0
|
||||
|
||||
//Value Computed by CMake
|
||||
CMAKE_PROJECT_VERSION_TWEAK:STATIC=
|
||||
|
||||
//Path to a program.
|
||||
CMAKE_RANLIB:FILEPATH=/usr/bin/ranlib
|
||||
|
||||
//Path to a program.
|
||||
CMAKE_READELF:FILEPATH=/usr/bin/readelf
|
||||
|
||||
//Flags used by the linker during the creation of shared libraries
|
||||
// during all build types.
|
||||
CMAKE_SHARED_LINKER_FLAGS:STRING=
|
||||
|
||||
//Flags used by the linker during the creation of shared libraries
|
||||
// during DEBUG builds.
|
||||
CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING=
|
||||
|
||||
//Flags used by the linker during the creation of shared libraries
|
||||
// during MINSIZEREL builds.
|
||||
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING=
|
||||
|
||||
//Flags used by the linker during the creation of shared libraries
|
||||
// during RELEASE builds.
|
||||
CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING=
|
||||
|
||||
//Flags used by the linker during the creation of shared libraries
|
||||
// during RELWITHDEBINFO builds.
|
||||
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING=
|
||||
|
||||
//If set, runtime paths are not added when installing shared libraries,
|
||||
// but are added when building.
|
||||
CMAKE_SKIP_INSTALL_RPATH:BOOL=NO
|
||||
|
||||
//If set, runtime paths are not added when using shared libraries.
|
||||
CMAKE_SKIP_RPATH:BOOL=NO
|
||||
|
||||
//Flags used by the linker during the creation of static libraries
|
||||
// during all build types.
|
||||
CMAKE_STATIC_LINKER_FLAGS:STRING=
|
||||
|
||||
//Flags used by the linker during the creation of static libraries
|
||||
// during DEBUG builds.
|
||||
CMAKE_STATIC_LINKER_FLAGS_DEBUG:STRING=
|
||||
|
||||
//Flags used by the linker during the creation of static libraries
|
||||
// during MINSIZEREL builds.
|
||||
CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL:STRING=
|
||||
|
||||
//Flags used by the linker during the creation of static libraries
|
||||
// during RELEASE builds.
|
||||
CMAKE_STATIC_LINKER_FLAGS_RELEASE:STRING=
|
||||
|
||||
//Flags used by the linker during the creation of static libraries
|
||||
// during RELWITHDEBINFO builds.
|
||||
CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO:STRING=
|
||||
|
||||
//Path to a program.
|
||||
CMAKE_STRIP:FILEPATH=/usr/bin/strip
|
||||
|
||||
//If this value is on, makefiles will be generated without the
|
||||
// .SILENT directive, and all commands will be echoed to the console
|
||||
// during the make. This is useful for debugging only. With Visual
|
||||
// Studio IDE projects all commands are done without /nologo.
|
||||
CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE
|
||||
|
||||
//Value Computed by CMake
|
||||
OnlineResourceWatcherServerApp_BINARY_DIR:STATIC=/home/spl1nes/Orange-Management/Modules/OnlineResourceWatcher/server/bin
|
||||
|
||||
//Value Computed by CMake
|
||||
OnlineResourceWatcherServerApp_IS_TOP_LEVEL:STATIC=ON
|
||||
|
||||
//Value Computed by CMake
|
||||
OnlineResourceWatcherServerApp_SOURCE_DIR:STATIC=/home/spl1nes/Orange-Management/Modules/OnlineResourceWatcher/server
|
||||
|
||||
//Additional directories where find(Qt6 ...) host Qt components
|
||||
// are searched
|
||||
QT_ADDITIONAL_HOST_PACKAGES_PREFIX_PATH:STRING=
|
||||
|
||||
//Additional directories where find(Qt6 ...) components are searched
|
||||
QT_ADDITIONAL_PACKAGES_PREFIX_PATH:STRING=
|
||||
|
||||
//The directory containing a CMake configuration file for Qt6CoreTools.
|
||||
Qt6CoreTools_DIR:PATH=/usr/lib/x86_64-linux-gnu/cmake/Qt6CoreTools
|
||||
|
||||
//The directory containing a CMake configuration file for Qt6Core.
|
||||
Qt6Core_DIR:PATH=/usr/lib/x86_64-linux-gnu/cmake/Qt6Core
|
||||
|
||||
//The directory containing a CMake configuration file for Qt6.
|
||||
Qt6_DIR:PATH=/usr/lib/x86_64-linux-gnu/cmake/Qt6
|
||||
|
||||
|
||||
########################
|
||||
# INTERNAL cache entries
|
||||
########################
|
||||
|
||||
//ADVANCED property for variable: CMAKE_ADDR2LINE
|
||||
CMAKE_ADDR2LINE-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_AR
|
||||
CMAKE_AR-ADVANCED:INTERNAL=1
|
||||
//This is the directory where this CMakeCache.txt was created
|
||||
CMAKE_CACHEFILE_DIR:INTERNAL=/home/spl1nes/Orange-Management/Modules/OnlineResourceWatcher/server/bin
|
||||
//Major version of cmake used to create the current loaded cache
|
||||
CMAKE_CACHE_MAJOR_VERSION:INTERNAL=3
|
||||
//Minor version of cmake used to create the current loaded cache
|
||||
CMAKE_CACHE_MINOR_VERSION:INTERNAL=25
|
||||
//Patch version of cmake used to create the current loaded cache
|
||||
CMAKE_CACHE_PATCH_VERSION:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_COLOR_MAKEFILE
|
||||
CMAKE_COLOR_MAKEFILE-ADVANCED:INTERNAL=1
|
||||
//Path to CMake executable.
|
||||
CMAKE_COMMAND:INTERNAL=/snap/cmake/1210/bin/cmake
|
||||
//Path to cpack program executable.
|
||||
CMAKE_CPACK_COMMAND:INTERNAL=/snap/cmake/1210/bin/cpack
|
||||
//Path to ctest program executable.
|
||||
CMAKE_CTEST_COMMAND:INTERNAL=/snap/cmake/1210/bin/ctest
|
||||
//ADVANCED property for variable: CMAKE_CXX_COMPILER
|
||||
CMAKE_CXX_COMPILER-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_CXX_COMPILER_AR
|
||||
CMAKE_CXX_COMPILER_AR-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_CXX_COMPILER_RANLIB
|
||||
CMAKE_CXX_COMPILER_RANLIB-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_CXX_FLAGS
|
||||
CMAKE_CXX_FLAGS-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_CXX_FLAGS_DEBUG
|
||||
CMAKE_CXX_FLAGS_DEBUG-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_CXX_FLAGS_MINSIZEREL
|
||||
CMAKE_CXX_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELEASE
|
||||
CMAKE_CXX_FLAGS_RELEASE-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELWITHDEBINFO
|
||||
CMAKE_CXX_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_C_COMPILER
|
||||
CMAKE_C_COMPILER-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_C_COMPILER_AR
|
||||
CMAKE_C_COMPILER_AR-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_C_COMPILER_RANLIB
|
||||
CMAKE_C_COMPILER_RANLIB-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_C_FLAGS
|
||||
CMAKE_C_FLAGS-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_C_FLAGS_DEBUG
|
||||
CMAKE_C_FLAGS_DEBUG-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_C_FLAGS_MINSIZEREL
|
||||
CMAKE_C_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_C_FLAGS_RELEASE
|
||||
CMAKE_C_FLAGS_RELEASE-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_C_FLAGS_RELWITHDEBINFO
|
||||
CMAKE_C_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_DLLTOOL
|
||||
CMAKE_DLLTOOL-ADVANCED:INTERNAL=1
|
||||
//Path to cache edit program executable.
|
||||
CMAKE_EDIT_COMMAND:INTERNAL=/snap/cmake/1210/bin/ccmake
|
||||
//Executable file format
|
||||
CMAKE_EXECUTABLE_FORMAT:INTERNAL=ELF
|
||||
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS
|
||||
CMAKE_EXE_LINKER_FLAGS-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_DEBUG
|
||||
CMAKE_EXE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_MINSIZEREL
|
||||
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELEASE
|
||||
CMAKE_EXE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO
|
||||
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_EXPORT_COMPILE_COMMANDS
|
||||
CMAKE_EXPORT_COMPILE_COMMANDS-ADVANCED:INTERNAL=1
|
||||
//Name of external makefile project generator.
|
||||
CMAKE_EXTRA_GENERATOR:INTERNAL=
|
||||
//Name of generator.
|
||||
CMAKE_GENERATOR:INTERNAL=Unix Makefiles
|
||||
//Generator instance identifier.
|
||||
CMAKE_GENERATOR_INSTANCE:INTERNAL=
|
||||
//Name of generator platform.
|
||||
CMAKE_GENERATOR_PLATFORM:INTERNAL=
|
||||
//Name of generator toolset.
|
||||
CMAKE_GENERATOR_TOOLSET:INTERNAL=
|
||||
//Test CMAKE_HAVE_LIBC_PTHREAD
|
||||
CMAKE_HAVE_LIBC_PTHREAD:INTERNAL=1
|
||||
//Source directory with the top level CMakeLists.txt file for this
|
||||
// project
|
||||
CMAKE_HOME_DIRECTORY:INTERNAL=/home/spl1nes/Orange-Management/Modules/OnlineResourceWatcher/server
|
||||
//Install .so files without execute permission.
|
||||
CMAKE_INSTALL_SO_NO_EXE:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_LINKER
|
||||
CMAKE_LINKER-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_MAKE_PROGRAM
|
||||
CMAKE_MAKE_PROGRAM-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS
|
||||
CMAKE_MODULE_LINKER_FLAGS-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_DEBUG
|
||||
CMAKE_MODULE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL
|
||||
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELEASE
|
||||
CMAKE_MODULE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO
|
||||
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_NM
|
||||
CMAKE_NM-ADVANCED:INTERNAL=1
|
||||
//number of local generators
|
||||
CMAKE_NUMBER_OF_MAKEFILES:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_OBJCOPY
|
||||
CMAKE_OBJCOPY-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_OBJDUMP
|
||||
CMAKE_OBJDUMP-ADVANCED:INTERNAL=1
|
||||
//Platform information initialized
|
||||
CMAKE_PLATFORM_INFO_INITIALIZED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_RANLIB
|
||||
CMAKE_RANLIB-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_READELF
|
||||
CMAKE_READELF-ADVANCED:INTERNAL=1
|
||||
//Path to CMake installation.
|
||||
CMAKE_ROOT:INTERNAL=/snap/cmake/1210/share/cmake-3.25
|
||||
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS
|
||||
CMAKE_SHARED_LINKER_FLAGS-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_DEBUG
|
||||
CMAKE_SHARED_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL
|
||||
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELEASE
|
||||
CMAKE_SHARED_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO
|
||||
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_SKIP_INSTALL_RPATH
|
||||
CMAKE_SKIP_INSTALL_RPATH-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_SKIP_RPATH
|
||||
CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS
|
||||
CMAKE_STATIC_LINKER_FLAGS-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_DEBUG
|
||||
CMAKE_STATIC_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL
|
||||
CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELEASE
|
||||
CMAKE_STATIC_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO
|
||||
CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_STRIP
|
||||
CMAKE_STRIP-ADVANCED:INTERNAL=1
|
||||
//uname command
|
||||
CMAKE_UNAME:INTERNAL=/usr/bin/uname
|
||||
//ADVANCED property for variable: CMAKE_VERBOSE_MAKEFILE
|
||||
CMAKE_VERBOSE_MAKEFILE-ADVANCED:INTERNAL=1
|
||||
//Details about finding Threads
|
||||
FIND_PACKAGE_MESSAGE_DETAILS_Threads:INTERNAL=[TRUE][v()]
|
||||
//Details about finding WrapAtomic
|
||||
FIND_PACKAGE_MESSAGE_DETAILS_WrapAtomic:INTERNAL=[1][v()]
|
||||
//Test HAVE_STDATOMIC
|
||||
HAVE_STDATOMIC:INTERNAL=1
|
||||
//Qt feature: aesni (from target Qt6::Core)
|
||||
QT_FEATURE_aesni:INTERNAL=ON
|
||||
//Qt feature: alloca (from target Qt6::Core)
|
||||
QT_FEATURE_alloca:INTERNAL=ON
|
||||
//Qt feature: alloca_h (from target Qt6::Core)
|
||||
QT_FEATURE_alloca_h:INTERNAL=ON
|
||||
//Qt feature: alloca_malloc_h (from target Qt6::Core)
|
||||
QT_FEATURE_alloca_malloc_h:INTERNAL=OFF
|
||||
//Qt feature: android_style_assets (from target Qt6::Core)
|
||||
QT_FEATURE_android_style_assets:INTERNAL=OFF
|
||||
//Qt feature: animation (from target Qt6::Core)
|
||||
QT_FEATURE_animation:INTERNAL=ON
|
||||
//Qt feature: appstore_compliant (from target Qt6::Core)
|
||||
QT_FEATURE_appstore_compliant:INTERNAL=OFF
|
||||
//Qt feature: arm_crc32 (from target Qt6::Core)
|
||||
QT_FEATURE_arm_crc32:INTERNAL=OFF
|
||||
//Qt feature: arm_crypto (from target Qt6::Core)
|
||||
QT_FEATURE_arm_crypto:INTERNAL=OFF
|
||||
//Qt feature: avx (from target Qt6::Core)
|
||||
QT_FEATURE_avx:INTERNAL=ON
|
||||
//Qt feature: avx2 (from target Qt6::Core)
|
||||
QT_FEATURE_avx2:INTERNAL=ON
|
||||
//Qt feature: avx512bw (from target Qt6::Core)
|
||||
QT_FEATURE_avx512bw:INTERNAL=ON
|
||||
//Qt feature: avx512cd (from target Qt6::Core)
|
||||
QT_FEATURE_avx512cd:INTERNAL=ON
|
||||
//Qt feature: avx512dq (from target Qt6::Core)
|
||||
QT_FEATURE_avx512dq:INTERNAL=ON
|
||||
//Qt feature: avx512er (from target Qt6::Core)
|
||||
QT_FEATURE_avx512er:INTERNAL=ON
|
||||
//Qt feature: avx512f (from target Qt6::Core)
|
||||
QT_FEATURE_avx512f:INTERNAL=ON
|
||||
//Qt feature: avx512ifma (from target Qt6::Core)
|
||||
QT_FEATURE_avx512ifma:INTERNAL=ON
|
||||
//Qt feature: avx512pf (from target Qt6::Core)
|
||||
QT_FEATURE_avx512pf:INTERNAL=ON
|
||||
//Qt feature: avx512vbmi (from target Qt6::Core)
|
||||
QT_FEATURE_avx512vbmi:INTERNAL=ON
|
||||
//Qt feature: avx512vl (from target Qt6::Core)
|
||||
QT_FEATURE_avx512vl:INTERNAL=ON
|
||||
//Qt feature: backtrace (from target Qt6::Core)
|
||||
QT_FEATURE_backtrace:INTERNAL=ON
|
||||
//Qt feature: c11 (from target Qt6::Core)
|
||||
QT_FEATURE_c11:INTERNAL=ON
|
||||
//Qt feature: c99 (from target Qt6::Core)
|
||||
QT_FEATURE_c99:INTERNAL=ON
|
||||
//Qt feature: cborstreamreader (from target Qt6::Core)
|
||||
QT_FEATURE_cborstreamreader:INTERNAL=ON
|
||||
//Qt feature: cborstreamwriter (from target Qt6::Core)
|
||||
QT_FEATURE_cborstreamwriter:INTERNAL=ON
|
||||
//Qt feature: clock_gettime (from target Qt6::Core)
|
||||
QT_FEATURE_clock_gettime:INTERNAL=ON
|
||||
//Qt feature: clock_monotonic (from target Qt6::Core)
|
||||
QT_FEATURE_clock_monotonic:INTERNAL=ON
|
||||
//Qt feature: commandlineparser (from target Qt6::Core)
|
||||
QT_FEATURE_commandlineparser:INTERNAL=ON
|
||||
//Qt feature: concatenatetablesproxymodel (from target Qt6::Core)
|
||||
QT_FEATURE_concatenatetablesproxymodel:INTERNAL=ON
|
||||
//Qt feature: concurrent (from target Qt6::Core)
|
||||
QT_FEATURE_concurrent:INTERNAL=ON
|
||||
//Qt feature: cpp_winrt (from target Qt6::Core)
|
||||
QT_FEATURE_cpp_winrt:INTERNAL=OFF
|
||||
//Qt feature: cross_compile (from target Qt6::Core)
|
||||
QT_FEATURE_cross_compile:INTERNAL=OFF
|
||||
//Qt feature: cxx11 (from target Qt6::Core)
|
||||
QT_FEATURE_cxx11:INTERNAL=ON
|
||||
//Qt feature: cxx11_future (from target Qt6::Core)
|
||||
QT_FEATURE_cxx11_future:INTERNAL=ON
|
||||
//Qt feature: cxx14 (from target Qt6::Core)
|
||||
QT_FEATURE_cxx14:INTERNAL=ON
|
||||
//Qt feature: cxx17 (from target Qt6::Core)
|
||||
QT_FEATURE_cxx17:INTERNAL=ON
|
||||
//Qt feature: cxx17_filesystem (from target Qt6::Core)
|
||||
QT_FEATURE_cxx17_filesystem:INTERNAL=ON
|
||||
//Qt feature: cxx1z (from target Qt6::Core)
|
||||
QT_FEATURE_cxx1z:INTERNAL=ON
|
||||
//Qt feature: cxx20 (from target Qt6::Core)
|
||||
QT_FEATURE_cxx20:INTERNAL=OFF
|
||||
//Qt feature: cxx2a (from target Qt6::Core)
|
||||
QT_FEATURE_cxx2a:INTERNAL=OFF
|
||||
//Qt feature: datestring (from target Qt6::Core)
|
||||
QT_FEATURE_datestring:INTERNAL=ON
|
||||
//Qt feature: datetimeparser (from target Qt6::Core)
|
||||
QT_FEATURE_datetimeparser:INTERNAL=ON
|
||||
//Qt feature: dbus (from target Qt6::Core)
|
||||
QT_FEATURE_dbus:INTERNAL=ON
|
||||
//Qt feature: dbus_linked (from target Qt6::Core)
|
||||
QT_FEATURE_dbus_linked:INTERNAL=ON
|
||||
//Qt feature: debug (from target Qt6::Core)
|
||||
QT_FEATURE_debug:INTERNAL=OFF
|
||||
//Qt feature: debug_and_release (from target Qt6::Core)
|
||||
QT_FEATURE_debug_and_release:INTERNAL=OFF
|
||||
//Qt feature: dlopen (from target Qt6::Core)
|
||||
QT_FEATURE_dlopen:INTERNAL=ON
|
||||
//Qt feature: doubleconversion (from target Qt6::Core)
|
||||
QT_FEATURE_doubleconversion:INTERNAL=ON
|
||||
//Qt feature: easingcurve (from target Qt6::Core)
|
||||
QT_FEATURE_easingcurve:INTERNAL=ON
|
||||
//Qt feature: enable_new_dtags (from target Qt6::Core)
|
||||
QT_FEATURE_enable_new_dtags:INTERNAL=ON
|
||||
//Qt feature: etw (from target Qt6::Core)
|
||||
QT_FEATURE_etw:INTERNAL=OFF
|
||||
//Qt feature: eventfd (from target Qt6::Core)
|
||||
QT_FEATURE_eventfd:INTERNAL=ON
|
||||
//Qt feature: f16c (from target Qt6::Core)
|
||||
QT_FEATURE_f16c:INTERNAL=ON
|
||||
//Qt feature: filesystemiterator (from target Qt6::Core)
|
||||
QT_FEATURE_filesystemiterator:INTERNAL=ON
|
||||
//Qt feature: filesystemwatcher (from target Qt6::Core)
|
||||
QT_FEATURE_filesystemwatcher:INTERNAL=ON
|
||||
//Qt feature: force_asserts (from target Qt6::Core)
|
||||
QT_FEATURE_force_asserts:INTERNAL=OFF
|
||||
//Qt feature: forkfd_pidfd (from target Qt6::Core)
|
||||
QT_FEATURE_forkfd_pidfd:INTERNAL=ON
|
||||
//Qt feature: framework (from target Qt6::Core)
|
||||
QT_FEATURE_framework:INTERNAL=OFF
|
||||
//Qt feature: futimens (from target Qt6::Core)
|
||||
QT_FEATURE_futimens:INTERNAL=ON
|
||||
//Qt feature: futimes (from target Qt6::Core)
|
||||
QT_FEATURE_futimes:INTERNAL=OFF
|
||||
//Qt feature: future (from target Qt6::Core)
|
||||
QT_FEATURE_future:INTERNAL=ON
|
||||
//Qt feature: gc_binaries (from target Qt6::Core)
|
||||
QT_FEATURE_gc_binaries:INTERNAL=OFF
|
||||
//Qt feature: gestures (from target Qt6::Core)
|
||||
QT_FEATURE_gestures:INTERNAL=ON
|
||||
//Qt feature: getauxval (from target Qt6::Core)
|
||||
QT_FEATURE_getauxval:INTERNAL=ON
|
||||
//Qt feature: getentropy (from target Qt6::Core)
|
||||
QT_FEATURE_getentropy:INTERNAL=ON
|
||||
//Qt feature: glib (from target Qt6::Core)
|
||||
QT_FEATURE_glib:INTERNAL=ON
|
||||
//Qt feature: glibc (from target Qt6::Core)
|
||||
QT_FEATURE_glibc:INTERNAL=ON
|
||||
//Qt feature: gui (from target Qt6::Core)
|
||||
QT_FEATURE_gui:INTERNAL=ON
|
||||
//Qt feature: hijricalendar (from target Qt6::Core)
|
||||
QT_FEATURE_hijricalendar:INTERNAL=ON
|
||||
//Qt feature: icu (from target Qt6::Core)
|
||||
QT_FEATURE_icu:INTERNAL=ON
|
||||
//Qt feature: identityproxymodel (from target Qt6::Core)
|
||||
QT_FEATURE_identityproxymodel:INTERNAL=ON
|
||||
//Qt feature: inotify (from target Qt6::Core)
|
||||
QT_FEATURE_inotify:INTERNAL=ON
|
||||
//Qt feature: intelcet (from target Qt6::Core)
|
||||
QT_FEATURE_intelcet:INTERNAL=ON
|
||||
//Qt feature: islamiccivilcalendar (from target Qt6::Core)
|
||||
QT_FEATURE_islamiccivilcalendar:INTERNAL=ON
|
||||
//Qt feature: itemmodel (from target Qt6::Core)
|
||||
QT_FEATURE_itemmodel:INTERNAL=ON
|
||||
//Qt feature: jalalicalendar (from target Qt6::Core)
|
||||
QT_FEATURE_jalalicalendar:INTERNAL=ON
|
||||
//Qt feature: journald (from target Qt6::Core)
|
||||
QT_FEATURE_journald:INTERNAL=OFF
|
||||
//Qt feature: largefile (from target Qt6::Core)
|
||||
QT_FEATURE_largefile:INTERNAL=ON
|
||||
//Qt feature: library (from target Qt6::Core)
|
||||
QT_FEATURE_library:INTERNAL=ON
|
||||
//Qt feature: libudev (from target Qt6::Core)
|
||||
QT_FEATURE_libudev:INTERNAL=ON
|
||||
//Qt feature: linkat (from target Qt6::Core)
|
||||
QT_FEATURE_linkat:INTERNAL=ON
|
||||
//Qt feature: lttng (from target Qt6::Core)
|
||||
QT_FEATURE_lttng:INTERNAL=OFF
|
||||
//Qt feature: mimetype (from target Qt6::Core)
|
||||
QT_FEATURE_mimetype:INTERNAL=ON
|
||||
//Qt feature: mimetype_database (from target Qt6::Core)
|
||||
QT_FEATURE_mimetype_database:INTERNAL=OFF
|
||||
//Qt feature: mips_dsp (from target Qt6::Core)
|
||||
QT_FEATURE_mips_dsp:INTERNAL=OFF
|
||||
//Qt feature: mips_dspr2 (from target Qt6::Core)
|
||||
QT_FEATURE_mips_dspr2:INTERNAL=OFF
|
||||
//Qt feature: neon (from target Qt6::Core)
|
||||
QT_FEATURE_neon:INTERNAL=OFF
|
||||
//Qt feature: network (from target Qt6::Core)
|
||||
QT_FEATURE_network:INTERNAL=ON
|
||||
//Qt feature: pcre2 (from target Qt6::Core)
|
||||
QT_FEATURE_pcre2:INTERNAL=ON
|
||||
//Qt feature: pkg_config (from target Qt6::Core)
|
||||
QT_FEATURE_pkg_config:INTERNAL=ON
|
||||
//Qt feature: plugin_manifest (from target Qt6::Core)
|
||||
QT_FEATURE_plugin_manifest:INTERNAL=ON
|
||||
//Qt feature: poll_poll (from target Qt6::Core)
|
||||
QT_FEATURE_poll_poll:INTERNAL=OFF
|
||||
//Qt feature: poll_pollts (from target Qt6::Core)
|
||||
QT_FEATURE_poll_pollts:INTERNAL=OFF
|
||||
//Qt feature: poll_ppoll (from target Qt6::Core)
|
||||
QT_FEATURE_poll_ppoll:INTERNAL=ON
|
||||
//Qt feature: poll_select (from target Qt6::Core)
|
||||
QT_FEATURE_poll_select:INTERNAL=OFF
|
||||
//Qt feature: posix_fallocate (from target Qt6::Core)
|
||||
QT_FEATURE_posix_fallocate:INTERNAL=ON
|
||||
//Qt feature: precompile_header (from target Qt6::Core)
|
||||
QT_FEATURE_precompile_header:INTERNAL=ON
|
||||
//Qt feature: printsupport (from target Qt6::Core)
|
||||
QT_FEATURE_printsupport:INTERNAL=ON
|
||||
//Qt feature: private_tests (from target Qt6::Core)
|
||||
QT_FEATURE_private_tests:INTERNAL=OFF
|
||||
//Qt feature: process (from target Qt6::Core)
|
||||
QT_FEATURE_process:INTERNAL=ON
|
||||
//Qt feature: processenvironment (from target Qt6::Core)
|
||||
QT_FEATURE_processenvironment:INTERNAL=ON
|
||||
//Qt feature: properties (from target Qt6::Core)
|
||||
QT_FEATURE_properties:INTERNAL=ON
|
||||
//Qt feature: proxymodel (from target Qt6::Core)
|
||||
QT_FEATURE_proxymodel:INTERNAL=ON
|
||||
//Qt feature: qqnx_pps (from target Qt6::Core)
|
||||
QT_FEATURE_qqnx_pps:INTERNAL=OFF
|
||||
//Qt feature: rdrnd (from target Qt6::Core)
|
||||
QT_FEATURE_rdrnd:INTERNAL=ON
|
||||
//Qt feature: rdseed (from target Qt6::Core)
|
||||
QT_FEATURE_rdseed:INTERNAL=ON
|
||||
//Qt feature: reduce_exports (from target Qt6::Core)
|
||||
QT_FEATURE_reduce_exports:INTERNAL=ON
|
||||
//Qt feature: reduce_relocations (from target Qt6::Core)
|
||||
QT_FEATURE_reduce_relocations:INTERNAL=ON
|
||||
//Qt feature: regularexpression (from target Qt6::Core)
|
||||
QT_FEATURE_regularexpression:INTERNAL=ON
|
||||
//Qt feature: relocatable (from target Qt6::Core)
|
||||
QT_FEATURE_relocatable:INTERNAL=ON
|
||||
//Qt feature: renameat2 (from target Qt6::Core)
|
||||
QT_FEATURE_renameat2:INTERNAL=OFF
|
||||
//Qt feature: rpath (from target Qt6::Core)
|
||||
QT_FEATURE_rpath:INTERNAL=OFF
|
||||
//Qt feature: separate_debug_info (from target Qt6::Core)
|
||||
QT_FEATURE_separate_debug_info:INTERNAL=OFF
|
||||
//Qt feature: settings (from target Qt6::Core)
|
||||
QT_FEATURE_settings:INTERNAL=ON
|
||||
//Qt feature: sha3_fast (from target Qt6::Core)
|
||||
QT_FEATURE_sha3_fast:INTERNAL=ON
|
||||
//Qt feature: shani (from target Qt6::Core)
|
||||
QT_FEATURE_shani:INTERNAL=ON
|
||||
//Qt feature: shared (from target Qt6::Core)
|
||||
QT_FEATURE_shared:INTERNAL=ON
|
||||
//Qt feature: sharedmemory (from target Qt6::Core)
|
||||
QT_FEATURE_sharedmemory:INTERNAL=ON
|
||||
//Qt feature: shortcut (from target Qt6::Core)
|
||||
QT_FEATURE_shortcut:INTERNAL=ON
|
||||
//Qt feature: signaling_nan (from target Qt6::Core)
|
||||
QT_FEATURE_signaling_nan:INTERNAL=ON
|
||||
//Qt feature: simdAlways (from target Qt6::Core)
|
||||
QT_FEATURE_simdAlways:INTERNAL=ON
|
||||
//Qt feature: simulator_and_device (from target Qt6::Core)
|
||||
QT_FEATURE_simulator_and_device:INTERNAL=OFF
|
||||
//Qt feature: slog2 (from target Qt6::Core)
|
||||
QT_FEATURE_slog2:INTERNAL=OFF
|
||||
//Qt feature: sortfilterproxymodel (from target Qt6::Core)
|
||||
QT_FEATURE_sortfilterproxymodel:INTERNAL=ON
|
||||
//Qt feature: sql (from target Qt6::Core)
|
||||
QT_FEATURE_sql:INTERNAL=ON
|
||||
//Qt feature: sse2 (from target Qt6::Core)
|
||||
QT_FEATURE_sse2:INTERNAL=ON
|
||||
//Qt feature: sse3 (from target Qt6::Core)
|
||||
QT_FEATURE_sse3:INTERNAL=ON
|
||||
//Qt feature: sse4_1 (from target Qt6::Core)
|
||||
QT_FEATURE_sse4_1:INTERNAL=ON
|
||||
//Qt feature: sse4_2 (from target Qt6::Core)
|
||||
QT_FEATURE_sse4_2:INTERNAL=ON
|
||||
//Qt feature: ssse3 (from target Qt6::Core)
|
||||
QT_FEATURE_ssse3:INTERNAL=ON
|
||||
//Qt feature: stack_protector_strong (from target Qt6::Core)
|
||||
QT_FEATURE_stack_protector_strong:INTERNAL=OFF
|
||||
//Qt feature: static (from target Qt6::Core)
|
||||
QT_FEATURE_static:INTERNAL=OFF
|
||||
//Qt feature: statx (from target Qt6::Core)
|
||||
QT_FEATURE_statx:INTERNAL=ON
|
||||
//Qt feature: std_atomic64 (from target Qt6::Core)
|
||||
QT_FEATURE_std_atomic64:INTERNAL=ON
|
||||
//Qt feature: stringlistmodel (from target Qt6::Core)
|
||||
QT_FEATURE_stringlistmodel:INTERNAL=ON
|
||||
//Qt feature: syslog (from target Qt6::Core)
|
||||
QT_FEATURE_syslog:INTERNAL=OFF
|
||||
//Qt feature: system_doubleconversion (from target Qt6::Core)
|
||||
QT_FEATURE_system_doubleconversion:INTERNAL=ON
|
||||
//Qt feature: system_libb2 (from target Qt6::Core)
|
||||
QT_FEATURE_system_libb2:INTERNAL=ON
|
||||
//Qt feature: system_pcre2 (from target Qt6::Core)
|
||||
QT_FEATURE_system_pcre2:INTERNAL=ON
|
||||
//Qt feature: system_zlib (from target Qt6::Core)
|
||||
QT_FEATURE_system_zlib:INTERNAL=ON
|
||||
//Qt feature: systemsemaphore (from target Qt6::Core)
|
||||
QT_FEATURE_systemsemaphore:INTERNAL=ON
|
||||
//Qt feature: temporaryfile (from target Qt6::Core)
|
||||
QT_FEATURE_temporaryfile:INTERNAL=ON
|
||||
//Qt feature: testlib (from target Qt6::Core)
|
||||
QT_FEATURE_testlib:INTERNAL=ON
|
||||
//Qt feature: textdate (from target Qt6::Core)
|
||||
QT_FEATURE_textdate:INTERNAL=ON
|
||||
//Qt feature: thread (from target Qt6::Core)
|
||||
QT_FEATURE_thread:INTERNAL=ON
|
||||
//Qt feature: threadsafe_cloexec (from target Qt6::Core)
|
||||
QT_FEATURE_threadsafe_cloexec:INTERNAL=ON
|
||||
//Qt feature: timezone (from target Qt6::Core)
|
||||
QT_FEATURE_timezone:INTERNAL=ON
|
||||
//Qt feature: translation (from target Qt6::Core)
|
||||
QT_FEATURE_translation:INTERNAL=ON
|
||||
//Qt feature: transposeproxymodel (from target Qt6::Core)
|
||||
QT_FEATURE_transposeproxymodel:INTERNAL=ON
|
||||
//Qt feature: use_bfd_linker (from target Qt6::Core)
|
||||
QT_FEATURE_use_bfd_linker:INTERNAL=OFF
|
||||
//Qt feature: use_gold_linker (from target Qt6::Core)
|
||||
QT_FEATURE_use_gold_linker:INTERNAL=OFF
|
||||
//Qt feature: use_lld_linker (from target Qt6::Core)
|
||||
QT_FEATURE_use_lld_linker:INTERNAL=OFF
|
||||
//Qt feature: use_mold_linker (from target Qt6::Core)
|
||||
QT_FEATURE_use_mold_linker:INTERNAL=OFF
|
||||
//Qt feature: widgets (from target Qt6::Core)
|
||||
QT_FEATURE_widgets:INTERNAL=ON
|
||||
//Qt feature: xml (from target Qt6::Core)
|
||||
QT_FEATURE_xml:INTERNAL=ON
|
||||
//Qt feature: xmlstream (from target Qt6::Core)
|
||||
QT_FEATURE_xmlstream:INTERNAL=ON
|
||||
//Qt feature: xmlstreamreader (from target Qt6::Core)
|
||||
QT_FEATURE_xmlstreamreader:INTERNAL=ON
|
||||
//Qt feature: xmlstreamwriter (from target Qt6::Core)
|
||||
QT_FEATURE_xmlstreamwriter:INTERNAL=ON
|
||||
//Qt feature: zstd (from target Qt6::Core)
|
||||
QT_FEATURE_zstd:INTERNAL=ON
|
||||
//linker supports push/pop state
|
||||
_CMAKE_LINKER_PUSHPOP_STATE_SUPPORTED:INTERNAL=TRUE
|
||||
|
||||
Binary file not shown.
|
|
@ -1,54 +0,0 @@
|
|||
# Install script for directory: /home/spl1nes/Orange-Management/Modules/OnlineResourceWatcher/server
|
||||
|
||||
# Set the install prefix
|
||||
if(NOT DEFINED CMAKE_INSTALL_PREFIX)
|
||||
set(CMAKE_INSTALL_PREFIX "/usr/local")
|
||||
endif()
|
||||
string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
|
||||
|
||||
# Set the install configuration name.
|
||||
if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME)
|
||||
if(BUILD_TYPE)
|
||||
string(REGEX REPLACE "^[^A-Za-z0-9_]+" ""
|
||||
CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}")
|
||||
else()
|
||||
set(CMAKE_INSTALL_CONFIG_NAME "Debug")
|
||||
endif()
|
||||
message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"")
|
||||
endif()
|
||||
|
||||
# Set the component getting installed.
|
||||
if(NOT CMAKE_INSTALL_COMPONENT)
|
||||
if(COMPONENT)
|
||||
message(STATUS "Install component: \"${COMPONENT}\"")
|
||||
set(CMAKE_INSTALL_COMPONENT "${COMPONENT}")
|
||||
else()
|
||||
set(CMAKE_INSTALL_COMPONENT)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# Install shared libraries without execute permission?
|
||||
if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE)
|
||||
set(CMAKE_INSTALL_SO_NO_EXE "1")
|
||||
endif()
|
||||
|
||||
# Is this installation the result of a crosscompile?
|
||||
if(NOT DEFINED CMAKE_CROSSCOMPILING)
|
||||
set(CMAKE_CROSSCOMPILING "FALSE")
|
||||
endif()
|
||||
|
||||
# Set default install directory permissions.
|
||||
if(NOT DEFINED CMAKE_OBJDUMP)
|
||||
set(CMAKE_OBJDUMP "/usr/bin/objdump")
|
||||
endif()
|
||||
|
||||
if(CMAKE_INSTALL_COMPONENT)
|
||||
set(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INSTALL_COMPONENT}.txt")
|
||||
else()
|
||||
set(CMAKE_INSTALL_MANIFEST "install_manifest.txt")
|
||||
endif()
|
||||
|
||||
string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT
|
||||
"${CMAKE_INSTALL_MANIFEST_FILES}")
|
||||
file(WRITE "/home/spl1nes/Orange-Management/Modules/OnlineResourceWatcher/server/bin/${CMAKE_INSTALL_MANIFEST}"
|
||||
"${CMAKE_INSTALL_MANIFEST_CONTENT}")
|
||||
|
|
@ -1,127 +0,0 @@
|
|||
{
|
||||
"db": {
|
||||
"core": {
|
||||
"masters": {
|
||||
"admin": {
|
||||
"db": "mysql",
|
||||
"host": "127.0.0.1",
|
||||
"port": "3306",
|
||||
"login": "root",
|
||||
"password": "root",
|
||||
"database": "oms_orw",
|
||||
"weight": 1000
|
||||
},
|
||||
"insert": {
|
||||
"db": "mysql",
|
||||
"host": "127.0.0.1",
|
||||
"port": "3306",
|
||||
"login": "root",
|
||||
"password": "root",
|
||||
"database": "oms_orw",
|
||||
"weight": 1000
|
||||
},
|
||||
"select": {
|
||||
"db": "mysql",
|
||||
"host": "127.0.0.1",
|
||||
"port": "3306",
|
||||
"login": "root",
|
||||
"password": "root",
|
||||
"database": "oms_orw",
|
||||
"weight": 1000
|
||||
},
|
||||
"update": {
|
||||
"db": "mysql",
|
||||
"host": "127.0.0.1",
|
||||
"port": "3306",
|
||||
"login": "root",
|
||||
"password": "root",
|
||||
"database": "oms_orw",
|
||||
"weight": 1000
|
||||
},
|
||||
"delete": {
|
||||
"db": "mysql",
|
||||
"host": "127.0.0.1",
|
||||
"port": "3306",
|
||||
"login": "root",
|
||||
"password": "root",
|
||||
"database": "oms_orw",
|
||||
"weight": 1000
|
||||
},
|
||||
"schema": {
|
||||
"db": "mysql",
|
||||
"host": "127.0.0.1",
|
||||
"port": "3306",
|
||||
"login": "root",
|
||||
"password": "root",
|
||||
"database": "oms_orw",
|
||||
"weight": 1000
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"mail": {
|
||||
"imap": {
|
||||
"host": "127.0.0.1",
|
||||
"port": 143,
|
||||
"ssl": false,
|
||||
"user": "test",
|
||||
"password": "123456"
|
||||
},
|
||||
"pop3": {
|
||||
"host": "127.0.0.1",
|
||||
"port": 25,
|
||||
"ssl": false,
|
||||
"user": "test",
|
||||
"password": "123456"
|
||||
}
|
||||
},
|
||||
"cache": {
|
||||
"redis": {
|
||||
"db": 1,
|
||||
"host": "127.0.0.1",
|
||||
"port": 6379
|
||||
},
|
||||
"memcached": {
|
||||
"host": "127.0.0.1",
|
||||
"port": 11211
|
||||
}
|
||||
},
|
||||
"log": {
|
||||
"file": {
|
||||
"path": "\/in\/Logs"
|
||||
}
|
||||
},
|
||||
"page": {
|
||||
"root": "\/",
|
||||
"https": false,
|
||||
"type": "dist"
|
||||
},
|
||||
"app": {
|
||||
"path": "\/in",
|
||||
"default": {
|
||||
"app": "Frontend",
|
||||
"id": "frontend",
|
||||
"lang": "en"
|
||||
},
|
||||
"domains": {
|
||||
"127.0.0.1": {
|
||||
"app": "Frontend",
|
||||
"id": "frontend",
|
||||
"lang": "en"
|
||||
}
|
||||
},
|
||||
"threads": {
|
||||
"count": 5
|
||||
},
|
||||
"resources": {
|
||||
"online": {
|
||||
"donwloads": 10
|
||||
}
|
||||
}
|
||||
},
|
||||
"language": [
|
||||
"en",
|
||||
"de",
|
||||
"it"
|
||||
]
|
||||
}
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
sudo apt-get install libcurl4-openssl-dev # curl
|
||||
sudo apt-get install sqlite3 libsqlite3-dev # sqlite
|
||||
sudo apt install default-libmysqlclient-dev # mysql
|
||||
sudo apt-get install libxml2-dev # xml
|
||||
sudo apt-get install libpq-dev # postgresql
|
||||
|
||||
# Windows
|
||||
# regex http://gnuwin32.sourceforge.net/packages/pcre.htm
|
||||
#
|
||||
|
|
@ -1 +0,0 @@
|
|||
Subproject commit 0f9a1b17321170523ada479604a2bf21e00ce3ed
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 361 KiB |
120
server/main.cpp
120
server/main.cpp
|
|
@ -1,120 +0,0 @@
|
|||
/**
|
||||
* Karaka
|
||||
*
|
||||
* @package App
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string>
|
||||
|
||||
#include "cOMS/Utils/ApplicationUtils.h"
|
||||
#include "cOMS/DataStorage/Database/Connection/ConnectionAbstract.h"
|
||||
#include "cOMS/Utils/Parser/Json.h"
|
||||
#include "cOMS/Utils/OSWrapper.h"
|
||||
#include "cOMS/Router/Router.h"
|
||||
#include "cOMS/Threads/Thread.h"
|
||||
#include "cOMS/Application/ApplicationAbstract.h"
|
||||
#include "Models/ResourceMapper.h"
|
||||
|
||||
#include "Routes.h"
|
||||
|
||||
#ifndef OMS_DEMO
|
||||
#define OMS_DEMO false
|
||||
#endif
|
||||
|
||||
Application::ApplicationAbstract app = {0};
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
/* --------------- Basic setup --------------- */
|
||||
|
||||
const char *arg = Utils::ApplicationUtils::compile_arg_line(argc, argv);
|
||||
|
||||
// Set program path as cwd
|
||||
char *cwd = Utils::ApplicationUtils::cwd();
|
||||
if (cwd == NULL) {
|
||||
printf("Couldn't get the CWD\n");
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
char *cwdT = Utils::StringUtils::search_replace(cwd, "\\", "/");
|
||||
free(cwd);
|
||||
cwd = cwdT;
|
||||
|
||||
Utils::ApplicationUtils::chdir_application(cwd, argv[0]);
|
||||
|
||||
// Check config
|
||||
if (!Utils::FileUtils::file_exists("config.json")) {
|
||||
Controller::ApiController::notInstalled(argc, argv);
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* --------------- App setup --------------- */
|
||||
|
||||
// Load config
|
||||
FILE *in = fopen("config.json", "r");
|
||||
if (in == NULL) {
|
||||
printf("Couldn't open config.json\n");
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
app.config = nlohmann::json::parse(in);
|
||||
|
||||
fclose(in);
|
||||
|
||||
// Setup db connection
|
||||
DataStorage::Database::DbConnectionConfig dbdata = {
|
||||
DataStorage::Database::database_type_from_str(app.config["db"]["core"]["masters"]["admin"]["db"].get_ref<const std::string&>().c_str()),
|
||||
app.config["db"]["core"]["masters"]["admin"]["database"].get_ref<const std::string&>().c_str(),
|
||||
app.config["db"]["core"]["masters"]["admin"]["host"].get_ref<const std::string&>().c_str(),
|
||||
atoi(app.config["db"]["core"]["masters"]["admin"]["port"].get_ref<const std::string&>().c_str()),
|
||||
app.config["db"]["core"]["masters"]["admin"]["login"].get_ref<const std::string&>().c_str(),
|
||||
app.config["db"]["core"]["masters"]["admin"]["password"].get_ref<const std::string&>().c_str(),
|
||||
};
|
||||
|
||||
app.pool = Threads::pool_create(app.config["app"]["threads"]["count"].get<int>());
|
||||
|
||||
app.db = DataStorage::Database::create_connection(dbdata);
|
||||
app.db->connect();
|
||||
|
||||
/* --------------- Handle request --------------- */
|
||||
|
||||
// Handle routes
|
||||
Router::Router router = generate_routes(&app);
|
||||
Router::RouterFunc ptr = Router::match_route(&router, arg);
|
||||
|
||||
// No endpoint found
|
||||
if (ptr == NULL) {
|
||||
ptr = &Controller::ApiController::printHelp;
|
||||
}
|
||||
|
||||
// Dispatch found endpoint
|
||||
(*ptr)(argc, argv);
|
||||
|
||||
/* --------------- Cleanup --------------- */
|
||||
|
||||
Threads::pool_destroy(app.pool);
|
||||
|
||||
DataStorage::Database::free_MapperData((DataStorage::Database::MapperData *) &Models::ResourceMapper);
|
||||
|
||||
app.db->close();
|
||||
app.db = NULL;
|
||||
|
||||
Router::free_router(&router);
|
||||
|
||||
free((char *) arg);
|
||||
arg = NULL;
|
||||
|
||||
// Reset CWD (don't know if this is necessary)
|
||||
chdir(cwd);
|
||||
|
||||
free(cwd);
|
||||
}
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
//{{NO_DEPENDENCIES}}
|
||||
// Microsoft Visual C++ generated include file.
|
||||
// Used by OnlineResourceWatcherServerApp.rc
|
||||
//
|
||||
#define IDI_ICON1 101
|
||||
|
||||
// Next default values for new objects
|
||||
//
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
#ifndef APSTUDIO_READONLY_SYMBOLS
|
||||
#define _APS_NEXT_RESOURCE_VALUE 102
|
||||
#define _APS_NEXT_COMMAND_VALUE 40001
|
||||
#define _APS_NEXT_CONTROL_VALUE 1001
|
||||
#define _APS_NEXT_SYMED_VALUE 101
|
||||
#endif
|
||||
#endif
|
||||
|
|
@ -56,7 +56,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase
|
|||
};
|
||||
|
||||
$this->app->dbPool = $GLOBALS['dbpool'];
|
||||
$this->app->orgId = 1;
|
||||
$this->app->unitId = 1;
|
||||
$this->app->accountManager = new AccountManager($GLOBALS['session']);
|
||||
$this->app->appSettings = new CoreSettings();
|
||||
$this->app->moduleManager = new ModuleManager($this->app, __DIR__ . '/../../../Modules/');
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user