Index: sources/device/DeviceController.h =================================================================== diff -u -r80b5e8f1ebb90c03c37d90d90cd2da3bd95d6803 -r2afdc76a7d8f97a518da0158e9bd08217de41a97 --- sources/device/DeviceController.h (.../DeviceController.h) (revision 80b5e8f1ebb90c03c37d90d90cd2da3bd95d6803) +++ sources/device/DeviceController.h (.../DeviceController.h) (revision 2afdc76a7d8f97a518da0158e9bd08217de41a97) @@ -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); @@ -264,6 +286,7 @@ void sdcardSpaceCheck(); void usbSpaceCheck(); + void settingsPartitionSpaceCheck(); SAFE_CALL_EX(doAddWatch, const QString &) };