summaryrefslogtreecommitdiff
path: root/utils/rbutilqt/base/bootloaderinstallhex.h
diff options
context:
space:
mode:
Diffstat (limited to 'utils/rbutilqt/base/bootloaderinstallhex.h')
-rw-r--r--utils/rbutilqt/base/bootloaderinstallhex.h53
1 files changed, 53 insertions, 0 deletions
diff --git a/utils/rbutilqt/base/bootloaderinstallhex.h b/utils/rbutilqt/base/bootloaderinstallhex.h
new file mode 100644
index 0000000000..700d77447a
--- /dev/null
+++ b/utils/rbutilqt/base/bootloaderinstallhex.h
@@ -0,0 +1,53 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 *
9 * Copyright (C) 2008 by Dominik Riebeling
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
19#ifndef BOOTLOADERINSTALLHEX_H
20#define BOOTLOADERINSTALLHEX_H
21
22#include <QtCore>
23#include "bootloaderinstallbase.h"
24
25
26// bootloader installation derivate based on fwpatcher
27// This will patch a given hex file using (de)scramble / mkboot
28// and put it on the player.
29class BootloaderInstallHex : public BootloaderInstallBase
30{
31 Q_OBJECT
32
33 public:
34 BootloaderInstallHex(QObject *parent = nullptr);
35 bool install(void);
36 bool uninstall(void);
37 BootloaderInstallBase::BootloaderType installed(void);
38 Capabilities capabilities(void);
39 QString ofHint();
40
41 private:
42 int m_hashindex;
43 int m_model;
44 QTemporaryFile m_descrambled;
45 QString scrambleError(int);
46
47 private slots:
48 void installStage2(void);
49};
50
51
52#endif
53