summaryrefslogtreecommitdiff
path: root/rbutil/rbutilqt/base/bootloaderinstalls5l.h
diff options
context:
space:
mode:
authorCástor Muñoz <cmvidal@gmail.com>2016-02-05 00:25:31 +0100
committerFranklin Wei <franklin@rockbox.org>2019-10-28 00:09:35 -0400
commite43ef1f3e7630a112378773e0ba9c6c020b2e65f (patch)
treec02dd7f577631810039a7f5a77b7355628cd91a8 /rbutil/rbutilqt/base/bootloaderinstalls5l.h
parentc353bef3d1902229be40118ce6b52770e5346787 (diff)
downloadrockbox-e43ef1f3e7630a112378773e0ba9c6c020b2e65f.tar.gz
rockbox-e43ef1f3e7630a112378773e0ba9c6c020b2e65f.zip
rbutil: add support for iPod Classic 6G bootloader
Change-Id: I0e237a81098a2d4df8d9f5d6deaaab3863a84fc6
Diffstat (limited to 'rbutil/rbutilqt/base/bootloaderinstalls5l.h')
-rw-r--r--rbutil/rbutilqt/base/bootloaderinstalls5l.h71
1 files changed, 71 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/base/bootloaderinstalls5l.h b/rbutil/rbutilqt/base/bootloaderinstalls5l.h
new file mode 100644
index 0000000000..a59e5d378b
--- /dev/null
+++ b/rbutil/rbutilqt/base/bootloaderinstalls5l.h
@@ -0,0 +1,71 @@
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 BOOTLOADERINSTALLS5L_H
20#define BOOTLOADERINSTALLS5L_H
21
22#include <QtCore>
23#include "bootloaderinstallbase.h"
24
25
26//! bootloader installation derivate based on mks5lboot
27class BootloaderInstallS5l : public BootloaderInstallBase
28{
29 Q_OBJECT
30
31 public:
32 BootloaderInstallS5l(QObject *parent);
33 bool install(void);
34 bool uninstall(void);
35 BootloaderInstallBase::BootloaderType installed(void);
36 Capabilities capabilities(void);
37
38 private slots:
39 bool installStage1(void);
40 void installStageMkdfu(void);
41 void installStageWaitForEject(void);
42 void installStageWaitForSpindown(void);
43 void installStageWaitForProcs(void);
44 void installStageWaitForDfu(void);
45 void installStageSendDfu(void);
46 void installStageWaitForRemount(void);
47 void abortInstall(void);
48 void installDone(bool);
49
50 private:
51 bool doInstall;
52 QString mntpoint;
53 unsigned char* dfu_buf;
54 int dfu_size;
55 QList<int> suspendedPids;
56 bool aborted;
57 bool abortDetected(void);
58 QTime scanTimer;
59 bool scanSuccess;
60 // progress
61 QTime progressTimer;
62 int progressTimeout;
63 int progCurrent;
64 int progOrigin;
65 int progTarget;
66 bool actionShown;
67 void setProgress(int, int=0);
68 bool updateProgress(void);
69};
70
71#endif