Skip to content

Commit

Permalink
Merge pull request #61 from QuasarApp/cheat_card_fixes
Browse files Browse the repository at this point in the history
Cheat card fixes
  • Loading branch information
EndrII authored Mar 24, 2023
2 parents 9a20532 + cdce342 commit 3728e41
Show file tree
Hide file tree
Showing 158 changed files with 876 additions and 1,054 deletions.
7 changes: 4 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (C) 2018-2022 QuasarApp.
# Copyright (C) 2018-2023 QuasarApp.
# Distributed under the lgplv3 software license, see the accompanying
# Everyone is permitted to copy and distribute verbatim copies
# of this license document, but changing it is not allowed.
Expand Down Expand Up @@ -33,8 +33,9 @@ else()
endif()
# Use only for android debug builds with debugging from usb.
option(HEART_STATIC_SSL "This option enable or disabled static link ssl libraryes" OFF)
option(HEART_DEPRECATED_API "This option enable or disabled deprecated command api" OFF)
option(CMAKE_SHARE "This option enable or disabled ssl functions of nodes" OFF)
option(HEART_PRINT_PACKAGES "This option enable or disabled log of add incoming network packages" OFF)
option(HEART_PRINT_SQL_QUERIES "This option enable or disabled log of all sql queries" OFF)

option(BUILD_SHARED_LIBS "Enable or disable shared libraryes" OFF)

if (WIN32)
Expand Down
2 changes: 1 addition & 1 deletion HeartTests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (C) 2018-2022 QuasarApp.
# Copyright (C) 2018-2023 QuasarApp.
# Distributed under the lgplv3 software license, see the accompanying
# Everyone is permitted to copy and distribute verbatim copies
# of this license document, but changing it is not allowed.
Expand Down
2 changes: 1 addition & 1 deletion HeartTests/tst_testprotockol.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2022 QuasarApp.
* Copyright (C) 2018-2023 QuasarApp.
* Distributed under the lgplv3 software license, see the accompanying
* Everyone is permitted to copy and distribute verbatim copies
* of this license document, but changing it is not allowed.
Expand Down
2 changes: 1 addition & 1 deletion HeartTests/units/abstractnodetest.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2022 QuasarApp.
* Copyright (C) 2018-2023 QuasarApp.
* Distributed under the lgplv3 software license, see the accompanying
* Everyone is permitted to copy and distribute verbatim copies
* of this license document, but changing it is not allowed.
Expand Down
2 changes: 1 addition & 1 deletion HeartTests/units/abstractnodetest.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2022 QuasarApp.
* Copyright (C) 2018-2023 QuasarApp.
* Distributed under the lgplv3 software license, see the accompanying
* Everyone is permitted to copy and distribute verbatim copies
* of this license document, but changing it is not allowed.
Expand Down
2 changes: 1 addition & 1 deletion HeartTests/units/bigdatatest.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2022 QuasarApp.
* Copyright (C) 2018-2023 QuasarApp.
* Distributed under the lgplv3 software license, see the accompanying
* Everyone is permitted to copy and distribute verbatim copies
* of this license document, but changing it is not allowed.
Expand Down
2 changes: 1 addition & 1 deletion HeartTests/units/bigdatatest.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2022 QuasarApp.
* Copyright (C) 2018-2023 QuasarApp.
* Distributed under the lgplv3 software license, see the accompanying
* Everyone is permitted to copy and distribute verbatim copies
* of this license document, but changing it is not allowed.
Expand Down
2 changes: 1 addition & 1 deletion HeartTests/units/ecdsaauthtest.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2022-2022 QuasarApp.
* Copyright (C) 2022-2023 QuasarApp.
* Distributed under the lgplv3 software license, see the accompanying
* Everyone is permitted to copy and distribute verbatim copies
* of this license document, but changing it is not allowed.
Expand Down
2 changes: 1 addition & 1 deletion HeartTests/units/ecdsaauthtest.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2022-2022 QuasarApp.
* Copyright (C) 2022-2023 QuasarApp.
* Distributed under the lgplv3 software license, see the accompanying
* Everyone is permitted to copy and distribute verbatim copies
* of this license document, but changing it is not allowed.
Expand Down
2 changes: 1 addition & 1 deletion HeartTests/units/keystoragetest.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2022 QuasarApp.
* Copyright (C) 2018-2023 QuasarApp.
* Distributed under the lgplv3 software license, see the accompanying
* Everyone is permitted to copy and distribute verbatim copies
* of this license document, but changing it is not allowed.
Expand Down
2 changes: 1 addition & 1 deletion HeartTests/units/shedullertest.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2022 QuasarApp.
//# Copyright (C) 2021-2023 QuasarApp.
//# Distributed under the lgplv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
Expand Down
2 changes: 1 addition & 1 deletion HeartTests/units/shedullertest.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2022 QuasarApp.
//# Copyright (C) 2021-2023 QuasarApp.
//# Distributed under the lgplv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
Expand Down
2 changes: 1 addition & 1 deletion HeartTests/units/test.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2022 QuasarApp.
* Copyright (C) 2018-2023 QuasarApp.
* Distributed under the lgplv3 software license, see the accompanying
* Everyone is permitted to copy and distribute verbatim copies
* of this license document, but changing it is not allowed.
Expand Down
2 changes: 1 addition & 1 deletion HeartTests/units/test.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2022 QuasarApp.
* Copyright (C) 2018-2023 QuasarApp.
* Distributed under the lgplv3 software license, see the accompanying
* Everyone is permitted to copy and distribute verbatim copies
* of this license document, but changing it is not allowed.
Expand Down
2 changes: 1 addition & 1 deletion HeartTests/units/testutils.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2022 QuasarApp.
* Copyright (C) 2018-2023 QuasarApp.
* Distributed under the lgplv3 software license, see the accompanying
* Everyone is permitted to copy and distribute verbatim copies
* of this license document, but changing it is not allowed.
Expand Down
2 changes: 1 addition & 1 deletion HeartTests/units/testutils.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2022 QuasarApp.
* Copyright (C) 2018-2023 QuasarApp.
* Distributed under the lgplv3 software license, see the accompanying
* Everyone is permitted to copy and distribute verbatim copies
* of this license document, but changing it is not allowed.
Expand Down
8 changes: 4 additions & 4 deletions HeartTests/units/upgradedatabasetest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class UpgradableDatabase: public QH::DataBase {

bool checkVersion(int version) {
QSqlQuery query;
if (!db()->doQuery("SELECT * FROM DataBaseAttributes WHERE name='version'", true, &query)){
if (!db()->doQuery("SELECT * FROM DataBaseAttributes WHERE name='version'", {}, true, &query)){
return false;
};

Expand All @@ -44,7 +44,7 @@ class UpgradableDatabase: public QH::DataBase {

[](const QH::iObjectProvider* database) -> bool {
QSqlQuery query;
if (!database->doQuery("select * from DataBaseAttributes", true, &query)){
if (!database->doQuery("select * from DataBaseAttributes", {}, true, &query)){
return false;
};

Expand All @@ -57,7 +57,7 @@ class UpgradableDatabase: public QH::DataBase {
2, // to version
[](const QH::iObjectProvider* database) -> bool {
QSqlQuery query;
if (!database->doQuery("select * from DataBaseAttributes", true, &query)){
if (!database->doQuery("select * from DataBaseAttributes", {}, true, &query)){
return false;
};

Expand All @@ -70,7 +70,7 @@ class UpgradableDatabase: public QH::DataBase {
3, // to version
[](const QH::iObjectProvider* database) -> bool {
QSqlQuery query;
if (!database->doQuery("select * from DataBaseAttributes", true, &query)){
if (!database->doQuery("select * from DataBaseAttributes", {}, true, &query)){
return false;
};

Expand Down
17 changes: 7 additions & 10 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (C) 2018-2022 QuasarApp.
# Copyright (C) 2018-2023 QuasarApp.
# Distributed under the lgplv3 software license, see the accompanying
# Everyone is permitted to copy and distribute verbatim copies
# of this license document, but changing it is not allowed.
Expand All @@ -17,8 +17,12 @@ set(CMAKE_AUTORCC ON)

add_definitions(-DHEART_LIBRARY)

if (HEART_DEPRECATED_API)
add_definitions(-DHEART_DEPRECATED_API)
if (HEART_PRINT_SQL_QUERIES)
add_definitions(-DHEART_PRINT_SQL_QUERIES)
endif()

if (HEART_PRINT_PACKAGES)
add_definitions(-DHEART_PRINT_PACKAGES)
endif()

set(SLL_DEFINE "WITHOUT_SSL")
Expand All @@ -41,13 +45,6 @@ file(GLOB SOURCE_CPP
"public/hcryptoFeatures/*.cpp" "public/hcryptoFeatures/*.h" "public/hcryptoFeatures/*.qrc"
)

if (NOT HEART_DEPRECATED_API)
file(GLOB SOURCE_CPP_DEPRECATED
"private/*_old.cpp" "private/*_old.h"
)
list(REMOVE_ITEM SOURCE_CPP ${SOURCE_CPP_DEPRECATED})
endif()

set(PUBLIC_INCUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}")
set(PUBLIC_INCUDE_DIR ${PUBLIC_INCUDE_DIR} "${CMAKE_CURRENT_SOURCE_DIR}/public")
set(PUBLIC_INCUDE_DIR ${PUBLIC_INCUDE_DIR} "${CMAKE_CURRENT_SOURCE_DIR}/public/packages")
Expand Down
2 changes: 1 addition & 1 deletion src/heart.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2022 QuasarApp.
* Copyright (C) 2018-2023 QuasarApp.
* Distributed under the lgplv3 software license, see the accompanying
* Everyone is permitted to copy and distribute verbatim copies
* of this license document, but changing it is not allowed.
Expand Down
2 changes: 1 addition & 1 deletion src/heart.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2022 QuasarApp.
* Copyright (C) 2018-2023 QuasarApp.
* Distributed under the lgplv3 software license, see the accompanying
* Everyone is permitted to copy and distribute verbatim copies
* of this license document, but changing it is not allowed.
Expand Down
2 changes: 1 addition & 1 deletion src/heart_global.h.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2022 QuasarApp.
* Copyright (C) 2018-2023 QuasarApp.
* Distributed under the lgplv3 software license, see the accompanying
* Everyone is permitted to copy and distribute verbatim copies
* of this license document, but changing it is not allowed.
Expand Down
2 changes: 1 addition & 1 deletion src/private/abstractnodeparser.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//#
//# Copyright (C) 2022-2022 QuasarApp.
//# Copyright (C) 2022-2023 QuasarApp.
//# Distributed under the lgplv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
Expand Down
2 changes: 1 addition & 1 deletion src/private/abstractnodeparser.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//#
//# Copyright (C) 2022-2022 QuasarApp.
//# Copyright (C) 2022-2023 QuasarApp.
//# Distributed under the lgplv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
Expand Down
86 changes: 0 additions & 86 deletions src/private/abstractnodeparser_old.cpp

This file was deleted.

53 changes: 0 additions & 53 deletions src/private/abstractnodeparser_old.h

This file was deleted.

2 changes: 1 addition & 1 deletion src/private/apiversion.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//#
//# Copyright (C) 2020-2022 QuasarApp.
//# Copyright (C) 2020-2023 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
Expand Down
4 changes: 1 addition & 3 deletions src/private/apiversion.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//#
//# Copyright (C) 2020-2022 QuasarApp.
//# Copyright (C) 2020-2023 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
Expand Down Expand Up @@ -30,8 +30,6 @@ class APIVersion: public QH::PKG::AbstractData
static QString commandText(){return "PROTOCKOL_VERSION_COMMAND";}
unsigned short cmd() const override {return APIVersion::command();}

unsigned short cmdOld() const override {return APIVersion::command();}

QString cmdString() const override {return APIVersion::commandText();}

const VersionData &version() const;
Expand Down
Loading

0 comments on commit 3728e41

Please sign in to comment.