Move some helper functions out of Autodetection.

Those functions are rather general, so put them into the Utils class instead.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30146 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dominik Riebeling 2011-07-17 08:08:58 +00:00
parent b7fe90aa36
commit 9c9bc1216c
8 changed files with 231 additions and 241 deletions

View file

@ -22,7 +22,7 @@
#include "bootloaderinstallipod.h"
#include "../ipodpatcher/ipodpatcher.h"
#include "autodetection.h"
#include "utils.h"
BootloaderInstallIpod::BootloaderInstallIpod(QObject *parent)
@ -226,7 +226,7 @@ BootloaderInstallBase::Capabilities BootloaderInstallIpod::capabilities(void)
bool BootloaderInstallIpod::ipodInitialize(struct ipod_t *ipod)
{
if(!m_blfile.isEmpty()) {
QString devicename = Autodetection::resolveDevicename(m_blfile);
QString devicename = Utils::resolveDevicename(m_blfile);
if(devicename.isEmpty()) {
emit logItem(tr("Error: could not retrieve device name"), LOGERROR);
return false;