1 | /***************************************************************************** |
2 | * This file is part of the BlueDevil project * |
3 | * * |
4 | * Copyright (C) 2010 Rafael Fernández López <ereslibre@kde.org> * |
5 | * Copyright (C) 2010 UFO Coders <info@ufocoders.com> * |
6 | * * |
7 | * This library is free software; you can redistribute it and/or * |
8 | * modify it under the terms of the GNU Library General Public * |
9 | * License as published by the Free Software Foundation; either * |
10 | * version 2 of the License, or (at your option) any later version. * |
11 | * * |
12 | * This library is distributed in the hope that it will be useful, * |
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of * |
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * |
15 | * Library General Public License for more details. * |
16 | * * |
17 | * You should have received a copy of the GNU Library General Public License * |
18 | * along with this library; see the file COPYING.LIB. If not, write to * |
19 | * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * |
20 | * Boston, MA 02110-1301, USA. * |
21 | *****************************************************************************/ |
22 | |
23 | #ifndef BLUEDEVILUTILS_H |
24 | #define BLUEDEVILUTILS_H |
25 | |
26 | #include <bluedevil/bluedevil_export.h> |
27 | |
28 | #include <QtCore/QtGlobal> |
29 | |
30 | namespace BlueDevil { |
31 | |
32 | quint32 BLUEDEVIL_EXPORT classToType(quint32 classNum); |
33 | quint32 BLUEDEVIL_EXPORT stringToType(const QString& stringType); |
34 | |
35 | enum BluetoothType { |
36 | BLUETOOTH_TYPE_ANY = 1 << 0, |
37 | BLUETOOTH_TYPE_PHONE = 1 << 1, |
38 | BLUETOOTH_TYPE_MODEM = 1 << 2, |
39 | BLUETOOTH_TYPE_COMPUTER = 1 << 3, |
40 | BLUETOOTH_TYPE_NETWORK = 1 << 4, |
41 | BLUETOOTH_TYPE_HEADSET = 1 << 5, |
42 | BLUETOOTH_TYPE_HEADPHONES = 1 << 6, |
43 | BLUETOOTH_TYPE_OTHER_AUDIO = 1 << 7, |
44 | BLUETOOTH_TYPE_KEYBOARD = 1 << 8, |
45 | BLUETOOTH_TYPE_MOUSE = 1 << 9, |
46 | BLUETOOTH_TYPE_CAMERA = 1 << 10, |
47 | BLUETOOTH_TYPE_PRINTER = 1 << 11, |
48 | BLUETOOTH_TYPE_JOYPAD = 1 << 12, |
49 | BLUETOOTH_TYPE_TABLET = 1 << 13 |
50 | }; |
51 | |
52 | } |
53 | |
54 | #endif // BLUEDEVILUTILS_H |
55 | |