Diffstat (limited to 'noncore/net/opietooth/lib/device.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/opietooth/lib/device.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/noncore/net/opietooth/lib/device.h b/noncore/net/opietooth/lib/device.h index d23f24c..010db40 100644 --- a/noncore/net/opietooth/lib/device.h +++ b/noncore/net/opietooth/lib/device.h | |||
@@ -1,16 +1,19 @@ | |||
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 | #include <sys/types.h> | ||
10 | |||
11 | class KProcess; | ||
9 | namespace OpieTooth { | 12 | namespace OpieTooth { |
10 | /** | 13 | /** |
11 | * Device takes care of attaching serial | 14 | * Device takes care of attaching serial |
12 | * devices to the blueZ stack. | 15 | * devices to the blueZ stack. |
13 | * After attaching it hciconfig ups it | 16 | * After attaching it hciconfig ups it |
14 | */ | 17 | */ |
15 | class Device : public QObject { | 18 | class Device : public QObject { |
16 | Q_OBJECT | 19 | Q_OBJECT |
@@ -56,12 +59,26 @@ namespace OpieTooth { | |||
56 | signals: | 59 | signals: |
57 | 60 | ||
58 | /** | 61 | /** |
59 | * Signals devicename and up status | 62 | * Signals devicename and up status |
60 | * @return &device QString, Devicename | 63 | * @return &device QString, Devicename |
61 | * @return up bool, if the device is up or not. | 64 | * @return up bool, if the device is up or not. |
62 | */ | 65 | */ |
63 | void device(const QString& device, bool up ); | 66 | void device(const QString& device, bool up ); |
67 | private slots: | ||
68 | virtual void slotExited( KProcess* ); | ||
69 | virtual void slotStdOut(KProcess*, char*, int ); | ||
70 | virtual void slotStdErr(KProcess*, char*, int ); | ||
71 | private: | ||
72 | class Private; | ||
73 | Private *d; | ||
74 | QString m_device; | ||
75 | bool m_attached:1; | ||
76 | KProcess* m_hci; | ||
77 | KProcess* m_process; | ||
78 | QString m_devId; | ||
79 | QString m_mode; | ||
80 | pid_t pid; | ||
64 | }; | 81 | }; |
65 | }; | 82 | }; |
66 | 83 | ||
67 | #endif | 84 | #endif |