2007-08-15 14:16:20 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* __________ __ ___.
|
|
|
|
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
* \/ \/ \/ \/ \/
|
|
|
|
*
|
2008-09-28 17:02:36 +00:00
|
|
|
* Copyright (C) 2008 by Dominik Riebeling
|
2007-08-15 14:16:20 +00:00
|
|
|
*
|
2008-09-28 17:02:36 +00:00
|
|
|
* All files in this archive are subject to the GNU General Public License.
|
|
|
|
* See the file COPYING in the source tree root for full license agreement.
|
2007-08-15 14:16:20 +00:00
|
|
|
*
|
|
|
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
* KIND, either express or implied.
|
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
|
2008-09-28 17:02:36 +00:00
|
|
|
#ifndef BOOTLOADERINSTALLSANSA_H
|
|
|
|
#define BOOTLOADERINSTALLSANSA_H
|
2007-08-15 14:16:20 +00:00
|
|
|
|
2008-09-28 17:02:36 +00:00
|
|
|
#include <QtCore>
|
|
|
|
#include "bootloaderinstallbase.h"
|
2012-12-23 22:36:00 +00:00
|
|
|
#include "sansapatcher.h"
|
2007-08-15 14:16:20 +00:00
|
|
|
|
2008-09-28 17:02:36 +00:00
|
|
|
|
|
|
|
// bootloader installation class for devices handled by sansapatcher.
|
|
|
|
class BootloaderInstallSansa : public BootloaderInstallBase
|
2007-08-15 14:16:20 +00:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2008-09-28 17:02:36 +00:00
|
|
|
BootloaderInstallSansa(QObject *parent = 0);
|
|
|
|
~BootloaderInstallSansa();
|
|
|
|
bool install(void);
|
|
|
|
bool uninstall(void);
|
|
|
|
BootloaderInstallBase::BootloaderType installed(void);
|
|
|
|
Capabilities capabilities(void);
|
2007-09-15 22:57:07 +00:00
|
|
|
|
2007-08-15 14:16:20 +00:00
|
|
|
private:
|
2009-04-30 19:14:24 +00:00
|
|
|
bool sansaInitialize(struct sansa_t *);
|
2012-12-23 22:36:00 +00:00
|
|
|
struct sansa_t sansa;
|
2007-08-15 14:16:20 +00:00
|
|
|
|
|
|
|
private slots:
|
2008-09-28 17:02:36 +00:00
|
|
|
void installStage2(void);
|
2009-11-22 22:13:25 +00:00
|
|
|
void installStage3(bool);
|
2007-08-15 14:16:20 +00:00
|
|
|
};
|
|
|
|
|
2008-09-28 17:02:36 +00:00
|
|
|
|
2007-08-15 14:16:20 +00:00
|
|
|
#endif
|
2008-09-28 17:02:36 +00:00
|
|
|
|