diff options
Diffstat (limited to 'utils/rbutilqt/base/bootloaderinstallbspatch.h')
-rw-r--r-- | utils/rbutilqt/base/bootloaderinstallbspatch.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/utils/rbutilqt/base/bootloaderinstallbspatch.h b/utils/rbutilqt/base/bootloaderinstallbspatch.h new file mode 100644 index 0000000000..7108820fda --- /dev/null +++ b/utils/rbutilqt/base/bootloaderinstallbspatch.h | |||
@@ -0,0 +1,47 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * | ||
9 | * Copyright (C) 2020 Solomon Peachy | ||
10 | * | ||
11 | * All files in this archive are subject to the GNU General Public License. | ||
12 | * See the file COPYING in the source tree root for full license agreement. | ||
13 | * | ||
14 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
15 | * KIND, either express or implied. | ||
16 | * | ||
17 | ****************************************************************************/ | ||
18 | #ifndef BOOTLOADERINSTALLBSPATCH_H | ||
19 | #define BOOTLOADERINSTALLBSPATCH_H | ||
20 | |||
21 | #include <QtCore> | ||
22 | #include "bootloaderinstallbase.h" | ||
23 | |||
24 | class BootloaderThreadBSPatch; | ||
25 | |||
26 | //! bootloader installation class for devices handled by mkimxboot. | ||
27 | class BootloaderInstallBSPatch : public BootloaderInstallBase | ||
28 | { | ||
29 | Q_OBJECT | ||
30 | public: | ||
31 | BootloaderInstallBSPatch(QObject *parent); | ||
32 | bool install(void); | ||
33 | bool uninstall(void); | ||
34 | BootloaderInstallBase::BootloaderType installed(void); | ||
35 | Capabilities capabilities(void); | ||
36 | QString ofHint(); | ||
37 | |||
38 | private slots: | ||
39 | void installStage2(void); | ||
40 | void installStage3(void); | ||
41 | |||
42 | private: | ||
43 | BootloaderThreadBSPatch *m_thread; | ||
44 | QTemporaryFile m_patchedFile; | ||
45 | }; | ||
46 | |||
47 | #endif | ||