Index: sources/device/DeviceController.h =================================================================== diff -u -rdff4ac319c6619a1ccb894c7d6079e8e4a46b776 -r20fd0f6c963bc4dedc81ecb3258a2a4c52295a0f --- sources/device/DeviceController.h (.../DeviceController.h) (revision dff4ac319c6619a1ccb894c7d6079e8e4a46b776) +++ sources/device/DeviceController.h (.../DeviceController.h) (revision 20fd0f6c963bc4dedc81ecb3258a2a4c52295a0f) @@ -6,8 +6,8 @@ * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. * * \file DeviceController.h - * \author (last) Behrouz NematiPour - * \date (last) 18-Jul-2023 + * \author (last) Vy + * \date (last) 10-Aug-2023 * \author (original) Behrouz NematiPour * \date (original) 03-Jun-2021 * @@ -228,8 +228,30 @@ * is less than minimum required percentage defined in _minRequiredAvailableSpacePercent. * \param vAvailablePercent */ + //TODO need to rename to be more generic, being used for SD card and settings partition space low void didSDCardSpaceTooLow(quint8 vAvailablePercent); + /*! + * \brief didSettingsPartitionSpaceChange + * \param vReady - Device is mounted and ready + * \note if device ejected manually system assumes it's still ready. + * \param vTotal - Returns the total volume size in bytes. + * Returns -1 if QStorageInfo object is not valid + * \param vAvailable - Returns the size (in bytes) available for the current user. + * It returns the total size available if the user is the root user or a system administrator. + * This size can be less than or equal to the free size returned by bytesFree() function. + * Returns -1 if QStorageInfo object is not valid. + * \param vPercent - The percentage of available space. + * \note Will emitted if only one of the publishing parameter changes. + */ + void didSettingsPartitionSpaceChange(bool vReady, qint64 vTotal, qint64 vAvailable, quint8 vPercent); + + /*! + * \brief didSettingsPartitionStateChange + * \details If the settings partition state changes like removed or is not present this signal will emit. + */ + void didSettingsPartitionStateChange(bool vIsReady, bool vIsReadOnly); + void didActionReceive( const DeviceBrightnessResponseData &vBrightness ); void didActionReceive( const DeviceRootSSHAccessResponseData &vRootSSHAccess); @@ -271,6 +293,7 @@ void sdcardSpaceCheck(); void usbSpaceCheck(); + void settingsPartitionSpaceCheck(); SAFE_CALL_EX(doAddWatch, const QString &) };