author | zecke <zecke> | 2002-05-30 19:49:01 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-05-30 19:49:01 (UTC) |
commit | 6a7ea9fd0496d48f05e78ad4afc527e01568eb92 (patch) (unidiff) | |
tree | 3ac818c1d557a9a811fd5d7044a5a7d5bf0e89e1 | |
parent | c6badea27eb3057c6971f3a756f4bef17996cfa9 (diff) | |
download | opie-6a7ea9fd0496d48f05e78ad4afc527e01568eb92.zip opie-6a7ea9fd0496d48f05e78ad4afc527e01568eb92.tar.gz opie-6a7ea9fd0496d48f05e78ad4afc527e01568eb92.tar.bz2 |
API doc update
-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,63 +1,67 @@ | |||
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 | */ |
23 | Device(const QString &device, const QString& mode); | 27 | Device(const QString &device, const QString& mode); |
24 | 28 | ||
25 | /** | 29 | /** |
26 | * unloads the device | 30 | * unloads the device |
27 | */ | 31 | */ |
28 | ~Device(); | 32 | ~Device(); |
29 | 33 | ||
30 | /** | 34 | /** |
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 |
56 | * @return &device QString, Devicename | 60 | * @return &device QString, Devicename |
57 | * @return up bool, if the device is up or not. | 61 | * @return up bool, if the device is up or not. |
58 | */ | 62 | */ |
59 | device(const QString& device, bool up ); | 63 | device(const QString& device, bool up ); |
60 | }; | 64 | }; |
61 | }; | 65 | }; |
62 | 66 | ||
63 | #endif | 67 | #endif |