Diffstat (limited to 'noncore/net/opietooth/lib/device.h') (more/less context) (show 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 @@ -3,12 +3,15 @@ #define OpieToothDevice_H #include <qobject.h> #include <qstring.h> #include <qvaluelist.h> +#include <sys/types.h> + +class KProcess; namespace OpieTooth { /** * Device takes care of attaching serial * devices to the blueZ stack. * After attaching it hciconfig ups it */ @@ -58,10 +61,24 @@ namespace OpieTooth { /** * Signals devicename and up status * @return &device QString, Devicename * @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; }; }; #endif |