Code improvements

Improved include guards
This commit is contained in:
Valentino Orlandi 2023-09-16 14:09:21 +02:00
parent 288981743a
commit e37f15459c
Signed by: elB4RTO
GPG Key ID: 1719E976DB2D4E71
49 changed files with 272 additions and 175 deletions

View File

@ -1,5 +1,6 @@
#ifndef CUSTOM_TREEWIDGETITEMS_H
#define CUSTOM_TREEWIDGETITEMS_H
#ifndef LOGDOCTOR__CUSTOMS__TREEWIDGETITEMS_H
#define LOGDOCTOR__CUSTOMS__TREEWIDGETITEMS_H
#include <QTreeWidgetItem>
@ -44,4 +45,4 @@ public:
};
#endif // CUSTOM_TREEWIDGETITEMS_H
#endif // LOGDOCTOR__CUSTOMS__TREEWIDGETITEMS_H

View File

@ -1,5 +1,6 @@
#ifndef WEB_SERVERS_H
#define WEB_SERVERS_H
#ifndef LOGDOCTOR__DEFINES__WEB_SERVERS_H
#define LOGDOCTOR__DEFINES__WEB_SERVERS_H
//! ID of the Apache2 Web Server
#define APACHE_ID 11u
@ -8,4 +9,5 @@
//! ID of the IIS Web Server
#define IIS_ID 13u
#endif // WEB_SERVERS_H
#endif // LOGDOCTOR__DEFINES__WEBSERVERS_H

View File

@ -1,5 +1,6 @@
#ifndef CRISSCROSS_H
#define CRISSCROSS_H
#ifndef LOGDOCTOR__GAMES__CRISSCROSS__GAME_H
#define LOGDOCTOR__GAMES__CRISSCROSS__GAME_H
#include <QIcon>
#include <QWidget>
@ -11,6 +12,7 @@ namespace Ui {
class CrissCross;
}
//! CrissCross
/*!
Player vs AI criss-cross game
@ -131,4 +133,5 @@ private:
};
#endif // CRISSCROSS_H
#endif // LOGDOCTOR__GAMES__CRISSCROSS__GAME_H

View File

@ -1,8 +1,10 @@
#ifndef GAMES_CRISSCROSS_STYLESHEETS_H
#define GAMES_CRISSCROSS_STYLESHEETS_H
#ifndef LOGDOCTOR__GAMES__CRISSCROSS__STYLESHEETS_H
#define LOGDOCTOR__GAMES__CRISSCROSS__STYLESHEETS_H
class QString;
namespace StyleSec::Games::CrissCross
{
@ -10,4 +12,5 @@ void getStyleSheet( QString& stylesheet );
} // namespace StyleSec::Games::CrissCross
#endif // GAMES_CRISSCROSS_STYLESHEETS_H
#endif // LOGDOCTOR__GAMES__CRISSCROSS__STYLESHEETS_H

View File

@ -1,5 +1,6 @@
#ifndef GAMEDIALOG_H
#define GAMEDIALOG_H
#ifndef LOGDOCTOR__GAMES__GAME_DIALOG_H
#define LOGDOCTOR__GAMES__GAME_DIALOG_H
#include <QDialog>
@ -8,6 +9,7 @@ namespace Ui {
class GameDialog;
}
//! GameDialog
/*!
A dialog message to provide informations to the user
@ -35,4 +37,5 @@ private:
QSharedPointer<Ui::GameDialog> ui;
};
#endif // GAMEDIALOG_H
#endif // LOGDOCTOR__GAMES__GAME_DIALOG_H

View File

@ -1,5 +1,6 @@
#ifndef FOOD_H
#define FOOD_H
#ifndef LOGDOCTOR__GAMES__SNAKE__FOOD_H
#define LOGDOCTOR__GAMES__SNAKE__FOOD_H
#include <QPixmap>
@ -54,4 +55,5 @@ private:
unsigned y;
};
#endif // FOOD_H
#endif // LOGDOCTOR__GAMES__SNAKE__FOOD_H

View File

@ -1,5 +1,6 @@
#ifndef SNAKE_GAME_H
#define SNAKE_GAME_H
#ifndef LOGDOCTOR__GAMES__SNAKE__GAME_H
#define LOGDOCTOR__GAMES__SNAKE__GAME_H
#include "snake.h"
#include "food.h"
@ -17,6 +18,7 @@ namespace Ui {
class SnakeGame;
}
//! Snake
/*!
A reproduction of the timeless classic game
@ -136,4 +138,5 @@ private:
};
#endif // SNAKE_GAME_H
#endif // LOGDOCTOR__GAMES__SNAKE__GAME_H

View File

@ -1,8 +1,10 @@
#ifndef GAMES_SNAKE_STYLESHEETS_H
#define GAMES_SNAKE_STYLESHEETS_H
#ifndef LOGDOCTOR__GAMES__SNAKE__STYLESHEETS_H
#define LOGDOCTOR__GAMES__SNAKE__STYLESHEETS_H
class QString;
namespace StyleSec::Games::Snake
{
@ -10,4 +12,5 @@ void getStyleSheet( QString& stylesheet );
} // namespace StyleSec::Games::Snake
#endif // GAMES_SNAKE_STYLESHEETS_H
#endif // LOGDOCTOR__GAMES__SNAKE__STYLESHEETS_H

View File

@ -1,5 +1,6 @@
#ifndef SNAKE_H
#define SNAKE_H
#ifndef LOGDOCTOR__GAMES__SNAKE__SNAKE_H
#define LOGDOCTOR__GAMES__SNAKE__SNAKE_H
#include <vector>
#include <array> // leave this here for clang
@ -118,4 +119,5 @@ private:
const Direction predictDirection( const std::array<std::array<float, 7>, 4>& data, const std::array<float, 7>& weights, const std::array<Direction, 4>& classes ) const;
};
#endif // SNAKE_H
#endif // LOGDOCTOR__GAMES__SNAKE__SNAKE_H

View File

@ -1,5 +1,6 @@
#ifndef GLOBAL_CONFIGS_H
#define GLOBAL_CONFIGS_H
#ifndef LOGDOCTOR__GLOBALS__GLOBAL_CONFIGS_H
#define LOGDOCTOR__GLOBALS__GLOBAL_CONFIGS_H
#include <QString>
@ -43,4 +44,5 @@ namespace GlobalConfigs {
} // namespace GlobalConfigs
#endif // GLOBAL_CONFIGS_H
#endif // LOGDOCTOR__GLOBALS__GLOBAL_CONFIGS_H

View File

@ -1,5 +1,6 @@
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#ifndef LOGDOCTOR__MAINWINDOW_H
#define LOGDOCTOR__MAINWINDOW_H
#include <QMainWindow>
@ -880,4 +881,4 @@ private:
};
#endif // MAINWINDOW_H
#endif // LOGDOCTOR__MAINWINDOW_H

View File

@ -1,5 +1,6 @@
#ifndef CRAPHELP_H
#define CRAPHELP_H
#ifndef LOGDOCTOR__CRAPHELP_H
#define LOGDOCTOR__CRAPHELP_H
#include <QWidget>
@ -10,6 +11,7 @@ namespace Ui {
class Craphelp;
}
//! Craphelp
/*!
Displays an help window
@ -49,4 +51,5 @@ private:
void defaultIisFormat( std::string& str ) const;
};
#endif // CRAPHELP_H
#endif // LOGDOCTOR__CRAPHELP_H

View File

@ -1,5 +1,6 @@
#ifndef CRAPINFO_H
#define CRAPINFO_H
#ifndef LOGDOCTOR__CRAPINFO_H
#define LOGDOCTOR__CRAPINFO_H
#include <QWidget>
@ -8,6 +9,7 @@ namespace Ui {
class Crapinfo;
}
//! Crapinfo
/*!
Displays informations
@ -32,4 +34,5 @@ private:
QSharedPointer<Ui::Crapinfo> ui;
};
#endif // CRAPINFO_H
#endif // LOGDOCTOR__CRAPINFO_H

View File

@ -1,8 +1,10 @@
#ifndef CRAPINFO_STYLESHEETS_H
#define CRAPINFO_STYLESHEETS_H
#ifndef LOGDOCTOR__CRAPINFO__STYLESHEETS_H
#define LOGDOCTOR__CRAPINFO__STYLESHEETS_H
class QString;
namespace StyleSec::Crapinfo
{
@ -10,4 +12,5 @@ void getStyleSheet( QString& stylesheet );
} // namespace StyleSec::Crapinfo
#endif // CRAPINFO_STYLESHEETS_H
#endif // LOGDOCTOR__CRAPINFO__STYLESHEETS_H

View File

@ -1,5 +1,6 @@
#ifndef CRAPLOG_H
#define CRAPLOG_H
#ifndef LOGDOCTOR__CRAPLOG_H
#define LOGDOCTOR__CRAPLOG_H
#include <QtCharts>
@ -591,4 +592,4 @@ private:
};
#endif // CRAPLOG_H
#endif // LOGDOCTOR__CRAPLOG_H

View File

@ -1,5 +1,6 @@
#ifndef DATETIME_H
#define DATETIME_H
#ifndef LOGDOCTOR__CRAPLOG__DATETIME_H
#define LOGDOCTOR__CRAPLOG__DATETIME_H
#include <string>
#include <vector>
@ -23,4 +24,5 @@ const std::vector<std::string> processDateTime( std::string_view datetime, std::
} // namespace DateTimeOps
#endif // DATETIME_H
#endif // LOGDOCTOR__CRAPLOG__DATETIME_H

View File

@ -1,5 +1,6 @@
#ifndef DONUTS_H
#define DONUTS_H
#ifndef LOGDOCTOR__CRAPLOG__DONUTS_H
#define LOGDOCTOR__CRAPLOG__DONUTS_H
#include <QGraphicsView>
#include <QtCharts>
@ -82,4 +83,5 @@ private:
QString m_name;
};
#endif // DONUTS_H
#endif // LOGDOCTOR__CRAPLOG__DONUTS_H

View File

@ -1,5 +1,6 @@
#ifndef FORMATS_H
#define FORMATS_H
#ifndef LOGDOCTOR__CRAPLOG__FORMATS_H
#define LOGDOCTOR__CRAPLOG__FORMATS_H
#include <QString>
@ -426,4 +427,4 @@ private:
};
#endif // FORMATS_H
#endif // LOGDOCTOR__CRAPLOG__FORMATS_H

View File

@ -1,5 +1,6 @@
#ifndef HASH_H
#define HASH_H
#ifndef LOGDOCTOR__CRAPLOG__HASH_H
#define LOGDOCTOR__CRAPLOG__HASH_H
#include "defines/web_servers.h"
@ -83,4 +84,4 @@ private:
};
#endif // HASH_H
#endif // LOGDOCTOR__CRAPLOG__HASH_H

View File

@ -1,5 +1,6 @@
#ifndef CRAPLOG_LIB_H
#define CRAPLOG_LIB_H
#ifndef LOGDOCTOR__CRAPLOG__LIB_H
#define LOGDOCTOR__CRAPLOG__LIB_H
#include <QString>
#include <QMetaType>
@ -76,4 +77,4 @@ struct BWlist {
};
#endif // CRAPLOG_LIB_H
#endif // LOGDOCTOR__CRAPLOG__LIB_H

View File

@ -1,5 +1,6 @@
#ifndef LOGS_H
#define LOGS_H
#ifndef LOGDOCTOR__CRAPLOG__LOGS_H
#define LOGDOCTOR__CRAPLOG__LOGS_H
#include "lib.h"
@ -25,4 +26,5 @@ const LogType defineFileType(
} // namespace LogOps
#endif // LOGS_H
#endif // LOGDOCTOR__CRAPLOG__LOGS_H

View File

@ -1,5 +1,6 @@
#ifndef WORKERS_LIB_H
#define WORKERS_LIB_H
#ifndef LOGDOCTOR__CRAPLOG__WORKERS__LIB_H
#define LOGDOCTOR__CRAPLOG__WORKERS__LIB_H
enum class WorkerDialog {
errGeneric,
@ -14,4 +15,5 @@ enum class WorkerDialog {
Q_DECLARE_METATYPE(WorkerDialog);
#endif // WORKERS_LIB_H
#endif // LOGDOCTOR__CRAPLOG__WORKERS__LIB_H

View File

@ -1,5 +1,6 @@
#ifndef CRAPLOGWORKER_H
#define CRAPLOGWORKER_H
#ifndef LOGDOCTOR__CRAPLOG__WORKERS__LISTER_H
#define LOGDOCTOR__CRAPLOG__WORKERS__LISTER_H
#include <QObject>
@ -61,4 +62,4 @@ private:
};
#endif // CRAPLOGWORKER_H
#endif // LOGDOCTOR__CRAPLOG__WORKERS__LISTER_H

View File

@ -1,5 +1,6 @@
#ifndef CRAPLOGPARSER_H
#define CRAPLOGPARSER_H
#ifndef LOGDOCTOR__CRAPLOG__WORKERS__PARSER_H
#define LOGDOCTOR__CRAPLOG__WORKERS__PARSER_H
#include "parser_interface.h"
@ -60,4 +61,4 @@ private:
};
#endif // CRAPLOGPARSER_H
#endif // LOGDOCTOR__CRAPLOG__WORKERS__PARSER_H

View File

@ -1,5 +1,6 @@
#ifndef CRAPLOGPARSERASYNC_H
#define CRAPLOGPARSERASYNC_H
#ifndef LOGDOCTOR__CRAPLOG__WORKERS__PARSER_ASYNC_H
#define LOGDOCTOR__CRAPLOG__WORKERS__PARSER_ASYNC_H
#include "parser_interface.h"
@ -62,4 +63,4 @@ private:
};
#endif // CRAPLOGPARSERASYNC_H
#endif // LOGDOCTOR__CRAPLOG__WORKERS__PARSER_ASYNC_H

View File

@ -1,5 +1,6 @@
#ifndef CRAPLOGPARSER_INTERFACE_H
#define CRAPLOGPARSER_INTERFACE_H
#ifndef LOGDOCTOR__CRAPLOG__WORKERS__PARSER_INTERFACE_H
#define LOGDOCTOR__CRAPLOG__WORKERS__PARSER_INTERFACE_H
#include <QObject>
@ -7,7 +8,6 @@
#include <unordered_map> // leave this here for clang
enum class WorkerDialog;
class QSqlDatabase;
@ -175,4 +175,5 @@ protected:
};
#endif // CRAPLOGPARSER_INTERFACE_H
#endif // LOGDOCTOR__CRAPLOG__WORKERS__PARSER_INTERFACE_H

View File

@ -1,5 +1,6 @@
#ifndef CRAPUP_H
#define CRAPUP_H
#ifndef LOGDOCTOR__CRAPUP_H
#define LOGDOCTOR__CRAPUP_H
#include <QWidget>
@ -83,4 +84,5 @@ private:
bool quitting{ false };
};
#endif // CRAPUP_H
#endif // LOGDOCTOR__CRAPUP_H

View File

@ -1,8 +1,10 @@
#ifndef CRAPUP_STYLESHEETS_H
#define CRAPUP_STYLESHEETS_H
#ifndef LOGDOCTOR__CRAPUP__STYLESHEETS_H
#define LOGDOCTOR__CRAPUP__STYLESHEETS_H
class QString;
namespace StyleSec::Crapup
{
@ -10,4 +12,5 @@ void getStyleSheet( QString& stylesheet );
} // namespacce StyleSec::Crapup
#endif // CRAPUP_STYLESHEETS_H
#endif // LOGDOCTOR__CRAPUP__STYLESHEETS_H

View File

@ -1,5 +1,6 @@
#ifndef CRAPVIEW_H
#define CRAPVIEW_H
#ifndef LOGDOCTOR__CRAPVIEW_H
#define LOGDOCTOR__CRAPVIEW_H
#include <QHash>
#include <QtCharts>
@ -289,35 +290,36 @@ private:
// convert log fields to log fields IDs
const QHash<QString, int> LogFields_s2i{
{QString::fromStdString(this->dbQuery.FIELDS.at( 0)), 0},
{QString::fromStdString(this->dbQuery.FIELDS.at(10)), 10},
{QString::fromStdString(this->dbQuery.FIELDS.at(11)), 11},
{QString::fromStdString(this->dbQuery.FIELDS.at(12)), 12},
{QString::fromStdString(this->dbQuery.FIELDS.at(13)), 13},
{QString::fromStdString(this->dbQuery.FIELDS.at(14)), 14},
{QString::fromStdString(this->dbQuery.FIELDS.at(15)), 15},
{QString::fromStdString(this->dbQuery.FIELDS.at(16)), 16},
{QString::fromStdString(this->dbQuery.FIELDS.at(17)), 17},
{QString::fromStdString(this->dbQuery.FIELDS.at(18)), 18},
{QString::fromStdString(this->dbQuery.FIELDS.at(20)), 20},
{QString::fromStdString(this->dbQuery.FIELDS.at(21)), 21},
{QString::fromStdString(this->dbQuery.FIELDS.at(22)), 22}};
{QString::fromStdString(this->dbQuery.FIELDS.at( 0)), 0},
{QString::fromStdString(this->dbQuery.FIELDS.at(10)), 10},
{QString::fromStdString(this->dbQuery.FIELDS.at(11)), 11},
{QString::fromStdString(this->dbQuery.FIELDS.at(12)), 12},
{QString::fromStdString(this->dbQuery.FIELDS.at(13)), 13},
{QString::fromStdString(this->dbQuery.FIELDS.at(14)), 14},
{QString::fromStdString(this->dbQuery.FIELDS.at(15)), 15},
{QString::fromStdString(this->dbQuery.FIELDS.at(16)), 16},
{QString::fromStdString(this->dbQuery.FIELDS.at(17)), 17},
{QString::fromStdString(this->dbQuery.FIELDS.at(18)), 18},
{QString::fromStdString(this->dbQuery.FIELDS.at(20)), 20},
{QString::fromStdString(this->dbQuery.FIELDS.at(21)), 21},
{QString::fromStdString(this->dbQuery.FIELDS.at(22)), 22}};
// convert months names to months numbers
const QHash<QString, int> Months_s2i{
{QString::fromStdString(this->dbQuery.MONTHS.at(1)), 1},
{QString::fromStdString(this->dbQuery.MONTHS.at(2)), 2},
{QString::fromStdString(this->dbQuery.MONTHS.at(3)), 3},
{QString::fromStdString(this->dbQuery.MONTHS.at(4)), 4},
{QString::fromStdString(this->dbQuery.MONTHS.at(5)), 5},
{QString::fromStdString(this->dbQuery.MONTHS.at(6)), 6},
{QString::fromStdString(this->dbQuery.MONTHS.at(7)), 7},
{QString::fromStdString(this->dbQuery.MONTHS.at(8)), 8},
{QString::fromStdString(this->dbQuery.MONTHS.at(9)), 9},
{QString::fromStdString(this->dbQuery.MONTHS.at(10)), 10},
{QString::fromStdString(this->dbQuery.MONTHS.at(11)), 11},
{QString::fromStdString(this->dbQuery.MONTHS.at(12)), 12}};
{QString::fromStdString(this->dbQuery.MONTHS.at(1)), 1},
{QString::fromStdString(this->dbQuery.MONTHS.at(2)), 2},
{QString::fromStdString(this->dbQuery.MONTHS.at(3)), 3},
{QString::fromStdString(this->dbQuery.MONTHS.at(4)), 4},
{QString::fromStdString(this->dbQuery.MONTHS.at(5)), 5},
{QString::fromStdString(this->dbQuery.MONTHS.at(6)), 6},
{QString::fromStdString(this->dbQuery.MONTHS.at(7)), 7},
{QString::fromStdString(this->dbQuery.MONTHS.at(8)), 8},
{QString::fromStdString(this->dbQuery.MONTHS.at(9)), 9},
{QString::fromStdString(this->dbQuery.MONTHS.at(10)), 10},
{QString::fromStdString(this->dbQuery.MONTHS.at(11)), 11},
{QString::fromStdString(this->dbQuery.MONTHS.at(12)), 12}};
};
#endif // CRAPVIEW_H
#endif // LOGDOCTOR__CRAPVIEW_H

View File

@ -1,5 +1,6 @@
#ifndef FILTERS_H
#define FILTERS_H
#ifndef LOGDOCTOR__CRAPVIEW__FILTERS_H
#define LOGDOCTOR__CRAPVIEW__FILTERS_H
#include <optional>
@ -56,4 +57,5 @@ const std::optional<QString> parseTextualFilter( const QString& filter_str );
}
#endif // FILTERS_H
#endif // LOGDOCTOR__CRAPVIEW__FILTERS_H

View File

@ -1,5 +1,6 @@
#ifndef QUERY_H
#define QUERY_H
#ifndef LOGDOCTOR__CRAPVIEW__QUERY_H
#define LOGDOCTOR__CRAPVIEW__QUERY_H
#include "modules/shared.h"
@ -357,4 +358,5 @@ private:
const int to_year, const int to_month );
};
#endif // QUERY_H
#endif // LOGDOCTOR__CRAPVIEW__QUERY_H

View File

@ -1,5 +1,6 @@
#ifndef DIALOGS_H
#define DIALOGS_H
#ifndef LOGDOCTOR__DIALOGS_H
#define LOGDOCTOR__DIALOGS_H
#include <QWidget>
@ -253,4 +254,4 @@ private:
};
#endif // DIALOGS_H
#endif // LOGDOCTOR__DIALOGS_H

View File

@ -1,5 +1,6 @@
#ifndef DIALOGBOOL_H
#define DIALOGBOOL_H
#ifndef LOGDOCTOR__DIALOGS__BOOLEAN_DIALOG_H
#define LOGDOCTOR__DIALOGS__BOOLEAN_DIALOG_H
#include <QDialog>
@ -38,4 +39,5 @@ private:
QSharedPointer<Ui::DialogBool> ui;
};
#endif // DIALOGBOOL_H
#endif // LOGDOCTOR__DIALOGS__BOOLEAN_DIALOG_H

View File

@ -1,5 +1,6 @@
#ifndef DIALOGIDA_H
#define DIALOGIDA_H
#ifndef LOGDOCTOR__DIALOGS__IDA_DIALOG_H
#define LOGDOCTOR__DIALOGS__IDA_DIALOG_H
#include <QDialog>
@ -8,6 +9,7 @@ namespace Ui {
class DialogIda;
}
//! DialogIda
/*!
IGNORE/DISCARD/ABORT choice dialog
@ -44,4 +46,5 @@ private:
QSharedPointer<Ui::DialogIda> ui;
};
#endif // DIALOGIDA_H
#endif // LOGDOCTOR__DIALOGS__IDA_DIALOG_H

View File

@ -1,5 +1,6 @@
#ifndef DIALOGMSG_H
#define DIALOGMSG_H
#ifndef LOGDOCTOR__DIALOGS__MESSAGE_DIALOG_H
#define LOGDOCTOR__DIALOGS__MESSAGE_DIALOG_H
#include <QDialog>
@ -15,6 +16,7 @@ namespace Ui {
class DialogMsg;
}
//! DialogMsg
/*!
A dialog message to provide informations to the user
@ -51,4 +53,5 @@ private:
int additional_height { 0 };
};
#endif // DIALOGMSG_H
#endif // LOGDOCTOR__DIALOGS__MESSAGE_DIALOG_H

View File

@ -1,5 +1,6 @@
#ifndef EXCEPTIONS_H
#define EXCEPTIONS_H
#ifndef LOGDOCTOR__EXCEPTIONS_H
#define LOGDOCTOR__EXCEPTIONS_H
#include <QString>
@ -89,4 +90,5 @@ private:
QString msg;*/
};
#endif // EXCEPTIONS_H
#endif // LOGDOCTOR__EXCEPTIONS_H

View File

@ -1,5 +1,6 @@
#ifndef SHARED_H
#define SHARED_H
#ifndef LOGDOCTOR__SHARED_H
#define LOGDOCTOR__SHARED_H
#include <QObject>
@ -58,4 +59,4 @@ const std::string DAYS__FRIDAY { TR::tr("Friday").toStdString() };
const std::string DAYS__SATURDAY { TR::tr("Saturday").toStdString() };
#endif // SHARED_H
#endif // LOGDOCTOR__SHARED_H

View File

@ -1,5 +1,6 @@
#ifndef LOGFILESTB_H
#define LOGFILESTB_H
#ifndef LOGDOCTOR__MODULES__TB_H
#define LOGDOCTOR__MODULES__TB_H
#include <QFont>
@ -72,4 +73,5 @@ private:
QFont font;
};
#endif // LOGFILESTB_H
#endif // LOGDOCTOR__MODULES__TB_H

View File

@ -1,13 +1,15 @@
#ifndef CRAPNOTE_H
#define CRAPNOTE_H
#ifndef LOGDOCTOR__CRAPNOTE_H
#define LOGDOCTOR__CRAPNOTE_H
#include <QWidget>
namespace Ui {
class Crapnote;
class Crapnote;
}
//! Crapnote
/*!
A simple block-note like widget
@ -44,4 +46,5 @@ private:
int font_size{ 17 };
};
#endif // CRAPNOTE_H
#endif // LOGDOCTOR__CRAPNOTE_H

View File

@ -1,5 +1,6 @@
#ifndef CHECKS_H
#define CHECKS_H
#ifndef LOGDOCTOR__UTILITIES__CHECKS_H
#define LOGDOCTOR__UTILITIES__CHECKS_H
#include <string>
@ -40,4 +41,5 @@ const bool checkHashesDatabase( const std::string& db_path );
} // namespace CheckSec
#endif // CHECKS_H
#endif // LOGDOCTOR__UTILITIES__CHECKS_H

View File

@ -1,5 +1,6 @@
#ifndef COLORS_H
#define COLORS_H
#ifndef LOGDOCTOR__UTILITIES__COLORS_H
#define LOGDOCTOR__UTILITIES__COLORS_H
#include <QtCharts>
@ -33,4 +34,5 @@ void applyChartTheme( const std::unordered_map<std::string, QFont>& fonts, QtCha
} // namespace ColorSec
#endif // COLORS_H
#endif // LOGDOCTOR__UTILITIES__COLORS_H

View File

@ -1,5 +1,6 @@
#ifndef GZIP_H
#define GZIP_H
#ifndef LOGDOCTOR__UTILITIES__GZIP_H
#define LOGDOCTOR__UTILITIES__GZIP_H
#include <string>
@ -20,4 +21,5 @@ void readFile( const std::string& path, std::string& content );
} // namespace GZutils
#endif // GZIP_H
#endif // LOGDOCTOR__UTILITIES__GZIP_H

View File

@ -1,5 +1,6 @@
#ifndef IO_H
#define IO_H
#ifndef LOGDOCTOR__UTILITIES__IO_H
#define LOGDOCTOR__UTILITIES__IO_H
#include <string>
#include <vector>
@ -92,4 +93,5 @@ void writeOnFile( const std::string& path, std::string_view content );
} // namespace IOutils
#endif // IO_H
#endif // LOGDOCTOR__UTILITIES__IO_H

View File

@ -1,5 +1,5 @@
#ifndef MEMORY_H
#define MEMORY_H
#ifndef LOGDOCTOR__UTILITIES__MEMORY_H
#define LOGDOCTOR__UTILITIES__MEMORY_H
//! MemOps
@ -19,4 +19,5 @@ const size_t availableMemory();
} // namespace MemOps
#endif // MEMORY_H
#endif // LOGDOCTOR__UTILITIES__MEMORY_H

View File

@ -1,5 +1,6 @@
#ifndef PRINTSEC_H
#define PRINTSEC_H
#ifndef LOGDOCTOR__UTILITIES__PRINTABLES_H
#define LOGDOCTOR__UTILITIES__PRINTABLES_H
class QString;
@ -93,4 +94,5 @@ const QString printableBool(
} // namespace PrintSec
#endif // PRINTSEC_H
#endif // LOGDOCTOR__UTILITIES__PRINTABLES_H

View File

@ -1,5 +1,6 @@
#ifndef RTF_H
#define RTF_H
#ifndef LOGDOCTOR__UTILITIES__RTF_H
#define LOGDOCTOR__UTILITIES__RTF_H
#include <QObject>
@ -47,4 +48,5 @@ public:
static void richLogsFailure( QString& rich_str );
};
#endif // RTF_H
#endif // LOGDOCTOR__UTILITIES__RTF_H

View File

@ -1,5 +1,6 @@
#ifndef STRINGS_H
#define STRINGS_H
#ifndef LOGDOCTOR__UTILITIES__STRINGS_H
#define LOGDOCTOR__UTILITIES__STRINGS_H
#include <string>
#include <vector>
@ -248,4 +249,5 @@ const std::string toLower( std::string_view str );
} // namespace StringOps
#endif // STRINGS_H
#endif // LOGDOCTOR__UTILITIES__STRINGS_H

View File

@ -1,5 +1,6 @@
#ifndef STYLESHEETS_H
#define STYLESHEETS_H
#ifndef LOGDOCTOR__UTILITIES__STYLESHEETS_H
#define LOGDOCTOR__UTILITIES__STYLESHEETS_H
class QString;
@ -19,4 +20,5 @@ void getStyleSheet( QString& stylesheet );
} // namespace StyleSec
#endif // STYLESHEETS_H
#endif // LOGDOCTOR__UTILITIES__STYLESHEETS_H

View File

@ -1,5 +1,6 @@
#ifndef VECOPS_H
#define VECOPS_H
#ifndef LOGDOCTOR__VECOPS_H
#define LOGDOCTOR__VECOPS_H
#include <vector>
#include <algorithm>
@ -26,6 +27,7 @@ inline const bool contains( const std::vector<T>& list, const T& flag )
{ return item == flag; } );
}
}
} // namespace VecOps
#endif // VECOPS_H
#endif // LOGDOCTOR__UTILITIES__VECOPS_H