Add Ipod detection using ipodpatcher.
[Rockbox.git] / rbutil / rbutilqt / autodetection.h
blobe950ab714936d38febf705ce7cf8663231db8fb9
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
9 * Copyright (C) 2007 by Dominik Wenger
10 * $Id: autodetection.h 14027 2007-07-27 17:42:49Z domonoky $
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 <QtGui>
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;}
44 private:
45 QStringList getMountpoints(void);
46 QString resolveMountPoint(QString);
48 QString m_device;
49 QString m_mountpoint;
54 #endif /*AUTODETECTION_H_*/