Index: sources/device/DeviceController.h =================================================================== diff -u -r2ef03b2ce51b4dc507f66e9671953a8e0824bde9 -ra7c8f14c6d5420ea15cdbd8fc6e3c46bae1052cb --- sources/device/DeviceController.h (.../DeviceController.h) (revision 2ef03b2ce51b4dc507f66e9671953a8e0824bde9) +++ sources/device/DeviceController.h (.../DeviceController.h) (revision a7c8f14c6d5420ea15cdbd8fc6e3c46bae1052cb) @@ -104,7 +104,10 @@ bool _mounted = false; bool _umounted = false; bool _removed = false; - const int _interval = 1000; // in ms + const int _interval = 1000; // in ms = 1s + const int _pendingInterval = 60 ; // 1m + int _pendingCounter = 0 ; // + QString _pendingLog = ""; const qint8 _minRequiredAvailableSpacePercent = 10; @@ -157,6 +160,9 @@ void onPOSTBluetoothData (const QString &vMacAddress); void onPOSTCloudSyncData (const QString &vNetAddress); + void onLogBackup (const QString &vFileName ); + void onLogUpload (const QString &vFileName ); + protected: void timerEvent(QTimerEvent *) override; @@ -178,6 +184,8 @@ void checkConfugurationMountReady(); + void findPendingLogs(); + signals: /*! * \brief didScreenshot @@ -290,6 +298,13 @@ */ void didFactoryReset ( bool vPass ); + /*! + * \brief didPendingLog + * \details will be emitted when a log file is pending to be uploaded. + * \param vFileName - the pending log file name + */ + void didPendingLog (const QString &vFileName, const QString vChecksum ); + private: // ----- USB void usbCheck ();