Don't export includes unless needed.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18815 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dominik Riebeling 2008-10-15 18:37:26 +00:00
parent 51b45d5602
commit 5491273f86
2 changed files with 11 additions and 9 deletions

View file

@ -20,6 +20,9 @@
#include <QtCore>
#include "autodetection.h"
#include "../ipodpatcher/ipodpatcher.h"
#include "../sansapatcher/sansapatcher.h"
#if defined(Q_OS_LINUX) || defined(Q_OS_MACX)
#include <stdio.h>
#include <usb.h>
@ -47,7 +50,6 @@
Autodetection::Autodetection(QObject* parent): QObject(parent)
{
}
bool Autodetection::detect()
@ -190,7 +192,8 @@ bool Autodetection::detect()
free(sansa_sectorbuf);
sansa_sectorbuf = NULL;
if(m_mountpoint.isEmpty() && m_device.isEmpty() && m_errdev.isEmpty() && m_incompat.isEmpty())
if(m_mountpoint.isEmpty() && m_device.isEmpty()
&& m_errdev.isEmpty() && m_incompat.isEmpty())
return false;
return true;
}
@ -362,17 +365,17 @@ bool Autodetection::detectAjbrec(QString root)
qDebug() << "file len:" << f.size();
if((f.size() - 6) == len)
m_device = "recorder";
// size didn't match, now we need to assume we have a headerlength of 24.
switch(header[11]) {
case 2:
m_device = "recorderv2";
break;
case 4:
m_device = "fmrecorder";
break;
case 8:
m_device = "ondiofm";
break;
@ -385,7 +388,8 @@ bool Autodetection::detectAjbrec(QString root)
break;
}
f.close();
if(m_device.isEmpty()) return false;
return true;
}

View file

@ -26,9 +26,6 @@
#include <QtCore>
#include "rbsettings.h"
#include "../ipodpatcher/ipodpatcher.h"
#include "../sansapatcher/sansapatcher.h"
class Autodetection :public QObject
{
Q_OBJECT
@ -61,3 +58,4 @@ private:
#endif /*AUTODETECTION_H_*/