/*! * * Copyright (c) 2019-2020 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 StorageGlobals.cpp * \author (last) Peter Lucia * \date (last) 15-Oct-2020 * \author (original) Behrouz NematiPour * \date (original) 26-Aug-2020 * */ // Qt #include // Project #include "StorageGlobals.h" /*! * \brief Storage * \details The container of the constant global variable withing Storage namespace members. * For example it currently includes USB mount root folder and SD Card mount root folder and such, * which is used by Logger, DriveWatcher, ... . */ namespace Storage { /****** TO BE CONSISTENT, ALWAYS INCLUDE '/' AT THE END OF ALL THE FOLDER/DIR/PATH IN HERE ******/ // USB #ifdef BUILD_FOR_TARGET const char *USB_Mount_Point = "/media/usb/"; #else const char *USB_Mount_Point = "/media/denali/usb-disk/"; #endif const char *USB_File_System = "vfat"; // SD-CARD const short Available_Space_Percent = 15; #ifdef BUILD_FOR_TARGET const char *SDCard_Base_Path_Name = "/media/sd-card/"; #else // should not be in the project application folder. [not tracking by git] const char *SDCard_Base_Path_Name = "/media/denali/sd-card/"; #endif // Settings #ifdef BUILD_FOR_TARGET const char *Settings_Path_Name = "/home/root/.config/"; #else // should be in the project application folder. [is tracking by git] const char *Settings_Path_Name = "/home/denali/Projects/application/resources/settings/"; #endif // Scripts #ifdef BUILD_FOR_TARGET const char *Scripts_Path_Name = "/home/root/scripts/"; #else // should be in the project application folder. [is tracking by git] const char *Scripts_Path_Name = "/home/denali/Projects/application/scripts/"; #endif // Date and Time const char *Date_Time_Set_Sh = "date_time_set.sh"; // Treatment // Please notice that is the folder not the path // and it needs to be concatenated after SDCard_Base_Path_Name for each build configuration const char *Treatment_Log_Folder = "treatment/"; }