forked from len0rd/rockbox
rbutil: add abort signal for bootloader install/uninstall
During the bootloader install/uninstall process, a signal is emitted when "Abort" button is pressed, the installers can attach this signal and cancel the process. Change-Id: I7f297b8031d7a2d93da0022081aaef03ef041baf
This commit is contained in:
parent
e4af97300d
commit
40ce2b4133
4 changed files with 13 additions and 0 deletions
|
|
@ -103,6 +103,13 @@ void BootloaderInstallBase::installBlfile(void)
|
|||
}
|
||||
|
||||
|
||||
void BootloaderInstallBase::progressAborted(void)
|
||||
{
|
||||
LOG_INFO() << "progressAborted(void)";
|
||||
emit installAborted();
|
||||
}
|
||||
|
||||
|
||||
//! @brief backup OF file.
|
||||
//! @param to folder to write backup file to. Folder will get created.
|
||||
//! @return true on success, false on error.
|
||||
|
|
|
|||
|
|
@ -73,6 +73,7 @@ class BootloaderInstallBase : public QObject
|
|||
void downloadReqFinished(int id, bool error);
|
||||
void downloadBlFinish(bool error);
|
||||
void installBlfile(void);
|
||||
void progressAborted(void);
|
||||
|
||||
// NOTE: we need to keep this slot even on targets that don't need it
|
||||
// -- using the preprocessor here confused moc.
|
||||
|
|
@ -101,6 +102,7 @@ class BootloaderInstallBase : public QObject
|
|||
|
||||
signals:
|
||||
void downloadDone(void); //! internal signal sent when download finished.
|
||||
void installAborted(void); //! internal signal sent on abort button click.
|
||||
void done(bool);
|
||||
void logItem(QString, int); //! set logger item
|
||||
void logProgress(int, int); //! set progress bar.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue