Diffstat (limited to 'noncore/net/opietooth/lib/device.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/opietooth/lib/device.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/noncore/net/opietooth/lib/device.h b/noncore/net/opietooth/lib/device.h index c0e2658..ce7fccc 100644 --- a/noncore/net/opietooth/lib/device.h +++ b/noncore/net/opietooth/lib/device.h | |||
@@ -8,29 +8,31 @@ | |||
8 | 8 | ||
9 | #include <sys/types.h> | 9 | #include <sys/types.h> |
10 | 10 | ||
11 | class OProcess; | 11 | class OProcess; |
12 | namespace OpieTooth { | 12 | namespace OpieTooth { |
13 | /** | 13 | /** |
14 | * Device takes care of attaching serial | 14 | * Device takes care of attaching serial |
15 | * devices to the blueZ stack. | 15 | * devices to the blueZ stack. |
16 | * After attaching it hciconfig ups it | 16 | * After attaching it hciconfig ups it |
17 | */ | 17 | */ |
18 | class Device : public QObject { | 18 | class Device : public QObject { |
19 | Q_OBJECT | 19 | |
20 | Q_OBJECT | ||
20 | 21 | ||
21 | public: | 22 | public: |
22 | 23 | ||
23 | /** | 24 | /** |
24 | * Brings up an device. | 25 | * Brings up an device. |
25 | * Usage example: new Device(/dev/ttySB0, csr) | 26 | * Usage example: new Device(/dev/ttySB0, csr) |
26 | * | 27 | * |
27 | * @param &device QString the device name | 28 | * @param &device QString the device name |
28 | * @param &mode QString the mode | 29 | * @param &mode QString the mode |
30 | * @param &speed QString the speed of the device, can be left blank | ||
29 | */ | 31 | */ |
30 | Device(const QString &device, const QString& mode); | 32 | Device(const QString &device, const QString& mode, const QString& speed); |
31 | 33 | ||
32 | /** | 34 | /** |
33 | * unloads the device | 35 | * unloads the device |
34 | */ | 36 | */ |
35 | ~Device(); | 37 | ~Device(); |
36 | 38 | ||
@@ -74,12 +76,13 @@ namespace OpieTooth { | |||
74 | QString m_device; | 76 | QString m_device; |
75 | bool m_attached:1; | 77 | bool m_attached:1; |
76 | OProcess* m_hci; | 78 | OProcess* m_hci; |
77 | OProcess* m_process; | 79 | OProcess* m_process; |
78 | QString m_devId; | 80 | QString m_devId; |
79 | QString m_mode; | 81 | QString m_mode; |
82 | QString m_speed; | ||
80 | pid_t pid; | 83 | pid_t pid; |
81 | QCString m_output; | 84 | QCString m_output; |
82 | }; | 85 | }; |
83 | }; | 86 | }; |
84 | 87 | ||
85 | #endif | 88 | #endif |