Index: sources/gui/GuiView.h =================================================================== diff -u -r8b044d8ef7db6f72c65aa6109d5f29a79bca92a2 -r142f2ddb8ce284c52c0add2acf3ac81f471b78de --- sources/gui/GuiView.h (.../GuiView.h) (revision 8b044d8ef7db6f72c65aa6109d5f29a79bca92a2) +++ sources/gui/GuiView.h (.../GuiView.h) (revision 142f2ddb8ce284c52c0add2acf3ac81f471b78de) @@ -71,8 +71,13 @@ PROPERTY(bool , exportRunning , false ) PROPERTY(quint32, exportCount , 0 ) - QMap _exportList; + PROPERTY(quint32, exportIndex , 0 ) + PROPERTY(QString, exportFile , "" ) + PROPERTY(quint64, exportPercent , 0 ) + PROPERTY(GuiStringIndexMap , exportList , {}) + READONLY(GuiUint08IndexMap , exportListPercent , {}) + public: explicit GuiView(QObject *parent = nullptr); @@ -87,6 +92,7 @@ void onUSBSpaceChange(bool vReady, qint64 vTotal, qint64 vAvailable, quint8 vPercent); void onExport (); + void onExportStat (quint32 vIndex, const QString &vFileName, quint8 vPercent); void onSDCardStateChange(bool vIsReady, bool vIsReadOnly); void onSDCardSpaceTooLow(quint8 vAvailablePercent); @@ -102,10 +108,11 @@ void doExportService (); void doExportTreatment (); - void doExportListInsert (quint32 vIndex, const QString &vFilename ) { /* DEBUG: qDebug() << vIndex; */ _exportList [vIndex] = vFilename; exportCount( _exportList.count() ); } - void doExportListDelete (quint32 vIndex ) { /* DEBUG: qDebug() << vIndex; */ _exportList.remove (vIndex) ; exportCount( _exportList.count() ); } - bool doExportListSelect (quint32 vIndex ) { /* DEBUG: qDebug() << vIndex; */ return _exportList.contains(vIndex) ; } - void doExportListRemove ( ) { _exportList.clear ( ) ; exportCount( _exportList.count() ); } + void doExportListInsert (quint32 vIndex, const QString &vFilename ); + void doExportListDelete (quint32 vIndex ); + bool doExportListSelect (quint32 vIndex ); + void doExportListRemove ( ); + quint8 doExportListPercent(quint32 vIndex ); signals: void didActionReceive (GuiActionType vAction, const QVariantList &vData); // UI <= HD/DG @@ -120,5 +127,6 @@ void didExportService (const GuiStringIndexMap &vExportList); void didExportTreatment (const GuiStringIndexMap &vExportList); void didExport (); + void didExportStat (quint32 vIndex, const QString &vFileName, quint8 vPercent); }; }