Handle language change events in widgets.
[maemo-rb.git] / rbutil / rbutilqt / base / autodetection.h
bloba55de342f87aad96a7887315f6c1f77775cf4a8f
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
9 * Copyright (C) 2007 by Dominik Wenger
11 * This program is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License
13 * as published by the Free Software Foundation; either version 2
14 * of the License, or (at your option) any later version.
16 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
17 * KIND, either express or implied.
19 ****************************************************************************/
22 #ifndef AUTODETECTION_H_
23 #define AUTODETECTION_H_
25 #include <QtCore>
27 class Autodetection :public QObject
29 Q_OBJECT
31 public:
32 Autodetection(QObject* parent=0);
34 bool detect();
36 QString getDevice() {return m_device;}
37 QString getMountPoint() {return m_mountpoint;}
38 QString errdev(void) { return m_errdev; }
39 QString incompatdev(void) { return m_incompat; }
41 private:
42 QString resolveMountPoint(QString);
43 bool detectUsb(void);
44 bool detectAjbrec(QString);
46 QString m_device;
47 QString m_mountpoint;
48 QString m_errdev;
49 QString m_incompat;
50 QList<int> m_usbconid;
54 #endif /*AUTODETECTION_H_*/