Remove tabs (I wonder why Anjuta decided to insert them there)
[maemo-rb.git] / rbutil / autodetection.h
blobcfd0dbab96b39e19d51a58e06d767026e7f2f807
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * Module: rbutil
9 * File: autodetection.h
11 * Copyright (C) 2008 Dominik Wenger
13 * All files in this archive are subject to the GNU General Public License.
14 * See the file COPYING in the source tree root for full license agreement.
16 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
17 * KIND, either express or implied.
19 ****************************************************************************/
21 #ifndef AUTODETECTION_H_INCLUDED
22 #define AUTODETECTION_H_INCLUDED
25 /**************************************
26 * General code for USB Device detection
27 ***************************************/
28 #include "rbutil.h"
30 #define TOMANYDEVICES 2
31 #define NODEVICE 1
32 #define DEVICEFOUND 0
34 struct UsbDeviceInfo
36 int device_index;
37 wxString path;
38 int status;
42 bool detectDevices(UsbDeviceInfo* tempdevice);
44 wxArrayString getPossibleMountPoints(); /* this funktion has to be implemented for every OS */
47 /********************************
48 * Windows header for USB Device detection and information
49 **************************************/
51 #if defined( __WXMSW__ )
54 #endif /*__WXMSW__ */
57 /************************************************************************+
58 *Linux header for autodetection
59 **************************************************************************/
62 #if !(defined( __WXMSW__ ) || defined( __DARWIN__))
64 wxString resolve_mount_point( const wxString device );
67 #endif /* Linux Code */
72 /************************************************************************+
73 *MAc header for autodetection
74 **************************************************************************/
77 #if defined( __DARWIN__)
81 #endif /* MAc Code */
90 #endif