Index: sources/device/DeviceController.h =================================================================== diff -u -ra9b3b248a786b93bf6dfd8c29946d708d18dde9a -rb043c5b9919a9a435e50907772ec8346823b05d6 --- sources/device/DeviceController.h (.../DeviceController.h) (revision a9b3b248a786b93bf6dfd8c29946d708d18dde9a) +++ sources/device/DeviceController.h (.../DeviceController.h) (revision b043c5b9919a9a435e50907772ec8346823b05d6) @@ -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 ();