summaryrefslogtreecommitdiff
path: root/noncore/net/opietooth/lib/device.h
authorzecke <zecke>2002-06-01 12:36:34 (UTC)
committer zecke <zecke>2002-06-01 12:36:34 (UTC)
commitf386b95e1c9763bb9c5ea404c0824b45a744e151 (patch) (side-by-side diff)
treefb64a35e3824e3b50b93b1289a0feed50a1d3b5f /noncore/net/opietooth/lib/device.h
parent075f2ae74f328581ec0db05d633961f3baa5ed36 (diff)
downloadopie-f386b95e1c9763bb9c5ea404c0824b45a744e151.zip
opie-f386b95e1c9763bb9c5ea404c0824b45a744e151.tar.gz
opie-f386b95e1c9763bb9c5ea404c0824b45a744e151.tar.bz2
attaching and detaching
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
@@ -6,6 +6,9 @@
#include <qstring.h>
#include <qvaluelist.h>
+#include <sys/types.h>
+
+class KProcess;
namespace OpieTooth {
/**
* Device takes care of attaching serial
@@ -61,6 +64,20 @@ namespace OpieTooth {
* @return up bool, if the device is up or not.
*/
void device(const QString& device, bool up );
+ private slots:
+ virtual void slotExited( KProcess* );
+ virtual void slotStdOut(KProcess*, char*, int );
+ virtual void slotStdErr(KProcess*, char*, int );
+ private:
+ class Private;
+ Private *d;
+ QString m_device;
+ bool m_attached:1;
+ KProcess* m_hci;
+ KProcess* m_process;
+ QString m_devId;
+ QString m_mode;
+ pid_t pid;
};
};