Index: sources/gui/GuiView.h =================================================================== diff -u -r4a67c01045f365be38f1a12a8572c0070d343e1e -r3caffb866d4c84ac6282dcd36fc2d8f7cad9584d --- sources/gui/GuiView.h (.../GuiView.h) (revision 4a67c01045f365be38f1a12a8572c0070d343e1e) +++ sources/gui/GuiView.h (.../GuiView.h) (revision 3caffb866d4c84ac6282dcd36fc2d8f7cad9584d) @@ -7,7 +7,7 @@ * * \file GuiView.h * \author (last) Behrouz NematiPour - * \date (last) 03-Jun-2021 + * \date (last) 18-Apr-2022 * \author (original) Behrouz NematiPour * \date (original) 26-Aug-2020 * @@ -49,15 +49,27 @@ PROPERTY(quint64, sdTotal , 0 ) PROPERTY(quint64, sdAvail , 0 ) PROPERTY(quint8 , sdPercent , 0 ) - PROPERTY(quint8 , sdIsLow , false ) + PROPERTY(bool , sdIsLow , false ) // this property will be set if the sd-card space gets lower than required amount in percent that has been defined in DeviceController. - PROPERTY(qint8 , sdTooLowPecent, -1) // -1 means the event never happened + PROPERTY(qint8 , sdTooLowPecent, -1 ) // -1 means the event never happened // disabled coco end - PROPERTY(bool , usbReady , false) - PROPERTY(bool , usbRemoved , true ) +#ifdef BUILD_FOR_DESKTOP + PROPERTY(bool , usbIsReady , true ) + PROPERTY(bool , usbIsRemoved , false ) +#else + PROPERTY(bool , usbIsReady , false ) + PROPERTY(bool , usbIsRemoved , true ) +#endif + PROPERTY(quint64, usbTotal , 0 ) + PROPERTY(quint64, usbAvail , 0 ) + PROPERTY(quint8 , usbPercent , 0 ) + PROPERTY(bool , usbIsLow , false ) + + PROPERTY(bool , exportRunning , false ) + public: explicit GuiView(QObject *parent = nullptr); @@ -76,6 +88,8 @@ void onSDCardSpaceTooLow(quint8 vAvailablePercent); void onSDCardSpaceChange(bool vReady, qint64 vTotal, qint64 vAvailable, quint8 vPercent); + void onUSBSpaceChange (bool vReady, qint64 vTotal, qint64 vAvailable, quint8 vPercent); + public slots: // is public since will be used in the UI and is in the same thread. void doActionTransmit(GuiActionType vAction, const QVariantList &vData); // UI => HD/DG void doActionTransmit(GuiActionType vAction, const QVariant &vData); // UI => HD/DG