Heart 1.3.842.34c2ab5
Heart is base back end library for your c++ Qt projects.
config.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2018-2024 QuasarApp.
3 * Distributed under the lgplv3 software license, see the accompanying
4 * Everyone is permitted to copy and distribute verbatim copies
5 * of this license document, but changing it is not allowed.
6*/
7
8#ifndef HEART_CONFIG_H
9#define HEART_CONFIG_H
10#include <QStandardPaths>
11
12#ifndef QT_DEBUG
13 #define WAIT_TIME 30000
14 #define WAIT_RESPOCE_TIME 10000
15#else
16 #define WAIT_TIME 300000000
17 #define WAIT_RESPOCE_TIME 100000000
18#endif
19
20// network settings
21#define LOCAL_SERVER "127.0.0.1"
22#define DEFAULT_PORT 3090 // Default work port
23#define WAIT_CONFIRM_TIME WAIT_TIME // timeout for waiting responce of server or client. 30000 msec = 30 sec
24
25// Data Base settings
26#define DEFAULT_DB_NAME "Storage.sqlite" // default database name of server
27#define DEFAULT_DB_PATH QStandardPaths::writableLocation(QStandardPaths::AppDataLocation) // default location of database. in linux systems it is ~/.local/shared/<Company>/<AppName>
28#define DEFAULT_DB_INIT_FILE_PATH ":/sql/res/BaseDB.sql" // default database file path
29#define DEFAULT_UPDATE_INTERVAL 3600000 // This is interval of update database cache by default it is 1 hour
30
31// Database settings keys
32#define QH_DB_DRIVER "DBDriver"
33#define QH_DB_FILE_PATH "DBFilePath"
34#define QH_DB_INIT_FILE "DBInitFile"
35#define QH_DB_PASS "DBPass"
36#define QH_DB_LOGIN "DBLogin"
37#define QH_DB_HOST "DBHost"
38#define QH_DB_PORT "DBPort"
39#define QH_DB_BACKUP_PATH "DBBackUpPath"
40
41// Transport Protockol settings
42#define ROUTE_CACHE_LIMIT 1000 // This is defaut count of routes in the router class obecjt.
43#define TRANSPORT_PACKAGES_CACHE 1000 // This is defaut count of processed packages in the router class obecjt.
44
45// Node Settings
46#define PACKAGE_CACHE_SIZE 1000 // this is default count limit of received packages
47
48
49// Other settings
50
51
52#endif // HEART_CONFIG_H