summaryrefslogtreecommitdiff
path: root/rbutil/rbutilqt/bootloaderinstallhex.h
diff options
context:
space:
mode:
Diffstat (limited to 'rbutil/rbutilqt/bootloaderinstallhex.h')
-rw-r--r--rbutil/rbutilqt/bootloaderinstallhex.h57
1 files changed, 57 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/bootloaderinstallhex.h b/rbutil/rbutilqt/bootloaderinstallhex.h
new file mode 100644
index 0000000000..2fa5246c7f
--- /dev/null
+++ b/rbutil/rbutilqt/bootloaderinstallhex.h
@@ -0,0 +1,57 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 *
9 * Copyright (C) 2008 by Dominik Riebeling
10 * $Id:$
11 *
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
14 *
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
17 *
18 ****************************************************************************/
19
20#ifndef BOOTLOADERINSTALLHEX_H
21#define BOOTLOADERINSTALLHEX_H
22
23#include <QtCore>
24#include "bootloaderinstallbase.h"
25
26
27// bootloader installation derivate based on fwpatcher
28// This will patch a given hex file using (de)scramble / mkboot
29// and put it on the player.
30class BootloaderInstallHex : public BootloaderInstallBase
31{
32 Q_OBJECT
33
34 public:
35 BootloaderInstallHex(QObject *parent = 0);
36 bool install(void);
37 bool uninstall(void);
38 BootloaderInstallBase::BootloaderType installed(void);
39 Capabilities capabilities(void);
40
41 void setHexfile(QString h)
42 { m_hex = h; }
43
44 private:
45 QString m_hex;
46 int m_hashindex;
47 int m_model;
48 QTemporaryFile m_descrambled;
49 QString scrambleError(int);
50
51 private slots:
52 void installStage2(void);
53};
54
55
56#endif
57