summaryrefslogtreecommitdiff
path: root/noncore
authorharlekin <harlekin>2002-05-30 19:25:30 (UTC)
committer harlekin <harlekin>2002-05-30 19:25:30 (UTC)
commit7a1f23afd000bb8b061545053f2b1cfeb095dcb8 (patch) (side-by-side diff)
tree72b2e687285ba40f2b3e3d54a157e5305fa87e8f /noncore
parentde93428a4984c5cae7c1cc1e6cbf84139cb9a09d (diff)
downloadopie-7a1f23afd000bb8b061545053f2b1cfeb095dcb8.zip
opie-7a1f23afd000bb8b061545053f2b1cfeb095dcb8.tar.gz
opie-7a1f23afd000bb8b061545053f2b1cfeb095dcb8.tar.bz2
docu
Diffstat (limited to 'noncore') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opietooth/lib/device.h56
1 files changed, 43 insertions, 13 deletions
diff --git a/noncore/net/opietooth/lib/device.h b/noncore/net/opietooth/lib/device.h
index 47e09c0..3798e0d 100644
--- a/noncore/net/opietooth/lib/device.h
+++ b/noncore/net/opietooth/lib/device.h
@@ -7,22 +7,52 @@
#include <qvaluelist.h>
namespace OpieTooth {
- class Device : public QObject {
+
+ class Device : public QObject {
Q_OBJECT
- public:
+
+ public:
+
+ /**
+ * Brings up an device.
+ * Usage example: new Device(/dev/ttySB0, csr)
+ *
+ * @param &device QString the device name
+ * @param &mode QString the mode
+ */
Device(const QString &device, const QString& mode);
- // unloads the device
- ~Device();
- // was the device loaded?
- void attach();
- void detach();
- bool up()const;
- QString devName()const ; // hci0
- signals:
- device(const QString& device, bool up );
- };
-};
+ /**
+ * unloads the device
+ */
+ ~Device();
+
+ /**
+ * attach the device
+ */
+ void attach();
+
+ /**
+ * detach the device
+ */
+ void detach();
+ /**
+ * Is the device loaded?
+ * @return bool, if the device is loaded
+
+ bool isLoaded()const;
+
+ /**
+ * Returns the device name
+ * @return QString, the device name
+ */
+ QString devName()const ; // hci0
+
+ signals:
+
+ device(const QString& device, bool up );
+ };
+};
#endif