Move C linkage binding for c++ to exporting header files instead of includes.
[Rockbox.git] / rbutil / rbutilqt / autodetection.h
blobe960305ea6603abc2f4e6340726b7bbf1efe555d
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>
25 #include "rbsettings.h"
27 #include "../ipodpatcher/ipodpatcher.h"
28 #include "../sansapatcher/sansapatcher.h"
30 class Autodetection :public QObject
32 Q_OBJECT
34 public:
35 Autodetection(QObject* parent=0);
37 void setSettings(RbSettings* sett) {settings = sett;}
39 bool detect();
41 QString getDevice() {return m_device;}
42 QString getMountPoint() {return m_mountpoint;}
43 QString errdev(void) { return m_errdev; }
44 QString incompatdev(void) { return m_incompat; }
46 private:
47 QStringList getMountpoints(void);
48 QString resolveMountPoint(QString);
49 bool detectUsb(void);
50 bool detectAjbrec(QString);
52 QString m_device;
53 QString m_mountpoint;
54 QString m_errdev;
55 QString m_incompat;
56 QList<int> m_usbconid;
57 RbSettings* settings;
61 #endif /*AUTODETECTION_H_*/