diff options
author | Thomas Preud'homme <robotux@celest.fr> | 2022-06-26 21:42:44 +0100 |
---|---|---|
committer | Thomas Preud'homme <robotux@celest.fr> | 2022-06-26 21:42:44 +0100 |
commit | cec2190aa2a5d65d3e09ae26dd5aafeaa5007862 (patch) | |
tree | 3adfa5ef0125e39dc1d388bdf885c0529c6fceb1 /DebugEngine.h | |
parent | 08b0288421b2cd69bbfd8a8a109572f04df69bbe (diff) |
New upstream version 2.2.6.0
Diffstat (limited to 'DebugEngine.h')
-rwxr-xr-x | DebugEngine.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/DebugEngine.h b/DebugEngine.h index 7a75264..586e6a8 100755 --- a/DebugEngine.h +++ b/DebugEngine.h @@ -12,8 +12,8 @@ #include <string> #include <QFile> #include <QMutex> -#include <QTime> #include <QTimer> +#include <QElapsedTimer> #include <QList> #include <QCoreApplication> #include <QAbstractTableModel> @@ -54,6 +54,7 @@ public: void addDebugInformation(const int &time, const DebugLevel_custom &level, const std::string& function, const std::string& text, const std::string &file="", const unsigned int& ligne=0, const std::string& location="Core"); void setupTheTimer(); + QString toString(); QTimer *updateDisplayTimer; bool displayed; bool inWaitOfDisplay; @@ -90,6 +91,7 @@ class DebugEngine : public QObject std::string getTheDebugEnd(); /** \brief For add message info, this function \note This function is reentrant */ + static std::string debugInformationToHtml(const unsigned int &t,const DebugLevel_custom &level, const std::string& fonction, const std::string& text, std::string file="", const int& ligne=-1, const std::string& location="Core"); static void addDebugInformationStatic(const Ultracopier::DebugLevel &level,const std::string& function,const std::string& text,const std::string& file="",const int& ligne=-1,const std::string& location="Core"); static void addDebugNote(const std::string& text); static DebugEngine *debugEngine; @@ -110,13 +112,14 @@ class DebugEngine : public QObject QMutex mutex; QMutex mutexList; /// \brief For record the start time - QTime startTime; + QElapsedTimer startTime; /// \brief String for the end of log file std::string endOfLogFile; /// \brief Drop the html entities - std::string htmlEntities(const std::string &text); + static std::string htmlEntities(const std::string &text); /// \brief To store the debug informations std::string debugHtmlContent; + std::string htmlHeaderContent; /// \brief The current backend Backend currentBackend; /// try connect to send to the current running instance the arguements |