summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opietooth/lib/device.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/noncore/net/opietooth/lib/device.h b/noncore/net/opietooth/lib/device.h
index 3798e0d..b2d277e 100644
--- a/noncore/net/opietooth/lib/device.h
+++ b/noncore/net/opietooth/lib/device.h
@@ -1,58 +1,63 @@
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
9namespace OpieTooth { 9namespace OpieTooth {
10 10
11 class Device : public QObject { 11 class Device : public QObject {
12 Q_OBJECT 12 Q_OBJECT
13 13
14 public: 14 public:
15 15
16 /** 16 /**
17 * Brings up an device. 17 * Brings up an device.
18 * Usage example: new Device(/dev/ttySB0, csr) 18 * Usage example: new Device(/dev/ttySB0, csr)
19 * 19 *
20 * @param &device QString the device name 20 * @param &device QString the device name
21 * @param &mode QString the mode 21 * @param &mode QString the mode
22 */ 22 */
23 Device(const QString &device, const QString& mode); 23 Device(const QString &device, const QString& mode);
24 24
25 /** 25 /**
26 * unloads the device 26 * unloads the device
27 */ 27 */
28 ~Device(); 28 ~Device();
29 29
30 /** 30 /**
31 * attach the device 31 * attach the device
32 */ 32 */
33 void attach(); 33 void attach();
34 34
35 /** 35 /**
36 * detach the device 36 * detach the device
37 */ 37 */
38 void detach(); 38 void detach();
39 39
40 /** 40 /**
41 * Is the device loaded? 41 * Is the device loaded?
42 * @return bool, if the device is loaded 42 * @return bool, if the device is loaded
43 43
44 bool isLoaded()const; 44 bool isLoaded()const;
45 45
46 /** 46 /**
47 * Returns the device name 47 * Returns the device name
48 * @return QString, the device name 48 * @return QString, the device name
49 */ 49 */
50 QString devName()const ; // hci0 50 QString devName()const ; // hci0
51 51
52 signals: 52 signals:
53 53
54 /**
55 * Signals devicename and up status
56 * @return &device QString, Devicename
57 * @return up bool, if the device is up or not.
58 */
54 device(const QString& device, bool up ); 59 device(const QString& device, bool up );
55 }; 60 };
56}; 61};
57 62
58#endif 63#endif