mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-12 14:42:31 -05:00
rbutil: move bootloaderInstall object creation switches to bootloaderInstallBase .
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25882 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
e919b5d5b9
commit
26826b5ae5
3 changed files with 62 additions and 57 deletions
|
|
@ -21,6 +21,14 @@
|
|||
#include <QtCore>
|
||||
|
||||
#include "bootloaderinstallbase.h"
|
||||
#include "bootloaderinstallmi4.h"
|
||||
#include "bootloaderinstallhex.h"
|
||||
#include "bootloaderinstallipod.h"
|
||||
#include "bootloaderinstallsansa.h"
|
||||
#include "bootloaderinstallfile.h"
|
||||
#include "bootloaderinstallchinachip.h"
|
||||
#include "bootloaderinstallams.h"
|
||||
#include "bootloaderinstalltcc.h"
|
||||
#include "utils.h"
|
||||
|
||||
#if defined(Q_OS_MACX)
|
||||
|
|
@ -29,6 +37,39 @@
|
|||
#include <sys/mount.h>
|
||||
#endif
|
||||
|
||||
|
||||
BootloaderInstallBase* BootloaderInstallBase::createBootloaderInstaller(QObject* parent,QString type)
|
||||
{
|
||||
if(type == "mi4") {
|
||||
return new BootloaderInstallMi4(parent);
|
||||
}
|
||||
else if(type == "hex") {
|
||||
return new BootloaderInstallHex(parent);
|
||||
}
|
||||
else if(type == "sansa") {
|
||||
return new BootloaderInstallSansa(parent);
|
||||
}
|
||||
else if(type == "ipod") {
|
||||
return new BootloaderInstallIpod(parent);
|
||||
}
|
||||
else if(type == "file") {
|
||||
return new BootloaderInstallFile(parent);
|
||||
}
|
||||
else if(type == "chinachip") {
|
||||
return new BootloaderInstallChinaChip(parent);
|
||||
}
|
||||
else if(type == "ams") {
|
||||
return new BootloaderInstallAms(parent);
|
||||
}
|
||||
else if(type == "tcc") {
|
||||
return new BootloaderInstallTcc(parent);
|
||||
}
|
||||
else {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
BootloaderInstallBase::BootloaderType BootloaderInstallBase::installed(void)
|
||||
{
|
||||
return BootloaderUnknown;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue