-rw-r--r-- | noncore/net/opietooth/lib/device.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/noncore/net/opietooth/lib/device.h b/noncore/net/opietooth/lib/device.h index b2d277e..d6cf049 100644 --- a/noncore/net/opietooth/lib/device.h +++ b/noncore/net/opietooth/lib/device.h | |||
@@ -1,22 +1,26 @@ | |||
1 | 1 | ||
2 | #ifndef OpieToothDevice_H | 2 | #ifndef OpieToothDevice_H |
3 | #define OpieToothDevice_H | 3 | #define OpieToothDevice_H |
4 | 4 | ||
5 | #include <qobject.h> | 5 | #include <qobject.h> |
6 | #include <qstring.h> | 6 | #include <qstring.h> |
7 | #include <qvaluelist.h> | 7 | #include <qvaluelist.h> |
8 | 8 | ||
9 | namespace OpieTooth { | 9 | namespace OpieTooth { |
10 | 10 | /** | |
11 | * Device takes care of attaching serial | ||
12 | * devices to the blueZ stack. | ||
13 | * After attaching it hciconfig ups it | ||
14 | */ | ||
11 | class Device : public QObject { | 15 | class Device : public QObject { |
12 | Q_OBJECT | 16 | Q_OBJECT |
13 | 17 | ||
14 | public: | 18 | public: |
15 | 19 | ||
16 | /** | 20 | /** |
17 | * Brings up an device. | 21 | * Brings up an device. |
18 | * Usage example: new Device(/dev/ttySB0, csr) | 22 | * Usage example: new Device(/dev/ttySB0, csr) |
19 | * | 23 | * |
20 | * @param &device QString the device name | 24 | * @param &device QString the device name |
21 | * @param &mode QString the mode | 25 | * @param &mode QString the mode |
22 | */ | 26 | */ |
@@ -31,25 +35,25 @@ namespace OpieTooth { | |||
31 | * attach the device | 35 | * attach the device |
32 | */ | 36 | */ |
33 | void attach(); | 37 | void attach(); |
34 | 38 | ||
35 | /** | 39 | /** |
36 | * detach the device | 40 | * detach the device |
37 | */ | 41 | */ |
38 | void detach(); | 42 | void detach(); |
39 | 43 | ||
40 | /** | 44 | /** |
41 | * Is the device loaded? | 45 | * Is the device loaded? |
42 | * @return bool, if the device is loaded | 46 | * @return bool, if the device is loaded |
43 | 47 | */ | |
44 | bool isLoaded()const; | 48 | bool isLoaded()const; |
45 | 49 | ||
46 | /** | 50 | /** |
47 | * Returns the device name | 51 | * Returns the device name |
48 | * @return QString, the device name | 52 | * @return QString, the device name |
49 | */ | 53 | */ |
50 | QString devName()const ; // hci0 | 54 | QString devName()const ; // hci0 |
51 | 55 | ||
52 | signals: | 56 | signals: |
53 | 57 | ||
54 | /** | 58 | /** |
55 | * Signals devicename and up status | 59 | * Signals devicename and up status |