Index: main.cpp =================================================================== diff -u -rc73feffa73c7fe073a7a7581144f5806dfc91beb -ra2b150e7b398bbfbb51c8a11e35a029ba03e906f --- main.cpp (.../main.cpp) (revision c73feffa73c7fe073a7a7581144f5806dfc91beb) +++ main.cpp (.../main.cpp) (revision a2b150e7b398bbfbb51c8a11e35a029ba03e906f) @@ -1,13 +1,13 @@ /*! * - * Copyright (c) 2019-2023 Diality Inc. - All Rights Reserved. + * Copyright (c) 2019-2024 Diality Inc. - All Rights Reserved. * \copyright * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. * * \file main.cpp * \author (last) Behrouz NematiPour - * \date (last) 14-Apr-2023 + * \date (last) 10-Mar-2024 * \author (original) Behrouz NematiPour * \date (original) 24-Sep-2019 * @@ -41,6 +41,7 @@ #include "Compatible.h" // Project +#include "FileHandler.h" #include "MainTimer.h" #include "CanInterface.h" #include "FrameInterface.h" @@ -101,43 +102,69 @@ QString gActiveCANBus = "can0"; bool gEnableManufacturing = false ; +bool gEnableUpdating = false ; +bool gUseRootHome = false ; +bool gLogLongName = false ; +bool gLogUpload = false ; +bool gLogCompress = false ; + QString gParserErrorText = ""; +QString gStandard_tmp = QString("/%1/").arg("tmp"); + /*! * \page CommandLineSwitches Denali Command Line Switches * \verbatim * Usage: ./denali [options] * Denali * - * Options: - * -h, --help Displays this help. - * -v, --version Displays version information. - * -c, --canOut Show the Can Frame Output - * -m, --msgOut Show the Message Output - * -l, --logOut Show the Logs Output - * -0, --enable-keep-awake Enable send low priority, empty message - * on the CANBus just to keep UI board CAN - * driver awake - * -i, --fake-interval Test fake message interval(ms) - * -f, --fake-message Test fake message data - * will use default sequenced long fake - * message if set to 00(default) - * will used only if correct integer value - * assigned for interval option - * -b, --fake-message-seq-at-begin Test fake message sequence at the - * beginning of the frame - * -u, --disable-unhandled-report Disable unhandled messages report as an - * error in the log - * -d, --disable-dialin-unhandled Disable the Dialin messages logged as - * unhandled - * -q, --disable-timeout Disables HD communication timeout - * -a, --disable-alarm-no-minimize Disables alarm no minimize - * -S, --disable-sd-card-fail-log-stop disable-sd-card-fail-log-stop - * -C, --disable-cloudsync-fail-stop disable-cloudsync-fail-stop - * -k, --enable-check-in-log Enables Check-In Log - * -K, --enable-acknow-log Enables Acknowledgment Log + * Options: + * -h, --help Displays help on commandline options. + * --help-all Displays help including Qt specific + * options. + * -v, --version Displays version information. + * -c, --canOut Show the Can Frame Output + * -m, --msgOut Show the Message Output + * -l, --logOut Show the Logs Output + * -0, --enable-keep-awake Enable send low priority, empty message + * on the CANBus just to keep UI board CAN + * driver awake + * -i, --fake-interval Test fake message interval(ms) + * -f, --fake-message Test fake message data + * will use default sequenced long fake + * message if set to 00(default) + * will used only if correct integer value + * assigned for interval option + * -b, --fake-message-seq-at-begin Test fake message sequence at the + * beginning of the frame + * -u, --disable-unhandled-report Disable unhandled messages report as an + * error in the log + * -d, --disable-dialin-unhandled Disable the Dialin messages logged as + * unhandled + * -q, --disable-timeout Disables HD communication timeout + * -a, --disable-alarm-no-minimize Disables alarm no minimize + * -S, --disable-sd-card-fail-log-stop disable-sd-card-fail-log-stop + * -C, --disable-cloudsync-fail-stop disable-cloudsync-fail-stop + * -k, --disable-check-in-log Disables Check-In Log + * -K, --disable-acknow-log Disables Acknowledgment Log + * -D, --enable-dry-demo Enables Dry-Demo Mode + * -A, --active-can-bus Sets the Active CANBus [Shall start with + * 'can' or 'vcan] + * -E, --enable-manufacturing Enables the manufacturing mode to + * configure the system for the first time. + * -R, --use-root-home In case the application is not in + * Manufacturing Setup but needs to use root + * home folder for configurations. + * -U, --enable-update-mode Enables the update mode to update only + * necessary files during the update and + * keep the rest. + * -x, --use-log-long-name Use the log long file name format + * _