Index: main.cpp =================================================================== diff -u -rf91ee3bac4f77fc7a0fe8d122c8c49b34b6984ec -rc0b30f1fa82d0121706351057ab52b3bb1141459 --- main.cpp (.../main.cpp) (revision f91ee3bac4f77fc7a0fe8d122c8c49b34b6984ec) +++ main.cpp (.../main.cpp) (revision c0b30f1fa82d0121706351057ab52b3bb1141459) @@ -32,27 +32,30 @@ #include #include #include -#include #include #include #include -#include "Compatible.h" // Project +#include "FileHandler.h" #include "MainTimer.h" #include "CanInterface.h" #include "FrameInterface.h" #include "MessageAcknowModel.h" #include "MessageDispatcher.h" +#include "ApplicationController.h" +#include "Logger.h" +//AMIR +#include "Settings.h" + #include "Threads.h" -#include "drydemostates.h" - // kernel #include + /*! * \brief signalhandler * \details When application terminates it quits gracefully. @@ -77,14 +80,14 @@ const char *gFakeData_default = "00" ; bool gSendEmptyKeepAwake = false ; bool gFakeSeqAtBegin = false ; +bool gDisableUnhandledReport = false ; bool gDisableDialinUnhandled = false ; bool gDisableTimeout = false ; bool gDisableAlarmNoMinimize = false ; bool gDisableSDCFailLogStop = false ; bool gDisableCloudSyncFailStop = false ; bool gDisableCheckInLog = false ; -bool gDisableUnhandledReport = false ; bool gDisableAcknowLog = false ; bool gConsoleoutLogs = false ; @@ -101,6 +104,7 @@ bool gLogLongName = false ; bool gLogUpload = false ; bool gLogCompress = false ; +bool gLogUnhandledOnly = false ; QString gParserErrorText = ""; QString gStandard_tmp = QString("/%1/").arg("tmp"); @@ -113,50 +117,51 @@ * Usage: ./denali [options] * Denali * - * 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 - * _