Fix advanced EQ menu
[maemo-rb.git] / rbutil / rbutilqt / base / bootloaderinstallhex.h
blobc971429a1083e305ed65d333d34c7007bd798d27
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
9 * Copyright (C) 2008 by Dominik Riebeling
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.
14 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
15 * KIND, either express or implied.
17 ****************************************************************************/
19 #ifndef BOOTLOADERINSTALLHEX_H
20 #define BOOTLOADERINSTALLHEX_H
22 #include <QtCore>
23 #include "bootloaderinstallbase.h"
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.
29 class BootloaderInstallHex : public BootloaderInstallBase
31 Q_OBJECT
33 public:
34 BootloaderInstallHex(QObject *parent = 0);
35 bool install(void);
36 bool uninstall(void);
37 BootloaderInstallBase::BootloaderType installed(void);
38 Capabilities capabilities(void);
39 QString ofHint();
41 private:
42 int m_hashindex;
43 int m_model;
44 QTemporaryFile m_descrambled;
45 QString scrambleError(int);
47 private slots:
48 void installStage2(void);
52 #endif