summaryrefslogtreecommitdiff
path: root/noncore/net/opietooth/lib/device.h
Unidiff
Diffstat (limited to 'noncore/net/opietooth/lib/device.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opietooth/lib/device.h17
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
@@ -5,8 +5,11 @@
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
11class KProcess;
9namespace OpieTooth { 12namespace 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.
@@ -60,8 +63,22 @@ namespace OpieTooth {
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