summaryrefslogtreecommitdiff
path: root/noncore/net/opietooth/lib/connection.h
Side-by-side diff
Diffstat (limited to 'noncore/net/opietooth/lib/connection.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opietooth/lib/connection.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/noncore/net/opietooth/lib/connection.h b/noncore/net/opietooth/lib/connection.h
index 76e5dad..a0c50f2 100644
--- a/noncore/net/opietooth/lib/connection.h
+++ b/noncore/net/opietooth/lib/connection.h
@@ -4,9 +4,40 @@
#include <qstring.h>
#include <qvaluelist.h>
+#include <qobject.h>
namespace OpieTooth {
+
+
+
+ /**
+ * Parent class for all kinds of starting connection
+ * subclasses
+ *
+ */
+ class StartConnection : public QObject {
+
+ protected:
+
+ enum ConnectionType{
+ Pan = 0,
+ Rfcomm,
+ Obex,
+ Hci
+ };
+
+ virtual ~StartConnection() {};
+
+ virtual QString name() = 0;
+ virtual void setName( QString name ) = 0;
+ virtual ConnectionType type() = 0;
+ virtual void setConnectionType() = 0;
+ virtual void start() = 0;
+ virtual void stop() = 0;
+
+ };
+
enum LinkDirection { Incoming= true, Outgoing = false };
enum LinkMode { Master =0, Client };