Make encoder name conversion functions static to the base class.
[Rockbox.git] / rbutil / rbutilqt / autodetection.h
blobec89dbf6cd42eec6d02e9e4023a2937e984800a3
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
9 * Copyright (C) 2007 by Dominik Wenger
10 * $Id$
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
18 ****************************************************************************/
21 #ifndef AUTODETECTION_H_
22 #define AUTODETECTION_H_
24 #include <QtCore>
26 extern "C" {
27 // Ipodpatcher
28 #include "../ipodpatcher/ipodpatcher.h"
29 #include "../sansapatcher/sansapatcher.h"
32 class Autodetection :public QObject
34 Q_OBJECT
36 public:
37 Autodetection(QObject* parent=0);
39 bool detect();
41 QString getDevice() {return m_device;}
42 QString getMountPoint() {return m_mountpoint;}
43 QString errdev(void) { return m_errdev; }
45 private:
46 QStringList getMountpoints(void);
47 QString resolveMountPoint(QString);
48 bool detectUsb(void);
49 bool detectAjbrec(QString);
51 QString m_device;
52 QString m_mountpoint;
53 QString m_errdev;
54 QList<int> m_usbconid;
58 #endif /*AUTODETECTION_H_*/