summaryrefslogtreecommitdiff
path: root/noncore/net/opietooth/lib/manager.h
authorzecke <zecke>2002-05-30 18:06:48 (UTC)
committer zecke <zecke>2002-05-30 18:06:48 (UTC)
commitf117abbfaf2c17c5af700433d181266b4c8d5a7b (patch) (unidiff)
tree8fb6d6beb166ffb582f3ef6207fdda56a744a7f9 /noncore/net/opietooth/lib/manager.h
parent738c08d921cc12c9f6f7846e80889908dce06cc8 (diff)
downloadopie-f117abbfaf2c17c5af700433d181266b4c8d5a7b.zip
opie-f117abbfaf2c17c5af700433d181266b4c8d5a7b.tar.gz
opie-f117abbfaf2c17c5af700433d181266b4c8d5a7b.tar.bz2
Ok here are some bits of a lib and interfaces
Diffstat (limited to 'noncore/net/opietooth/lib/manager.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opietooth/lib/manager.h56
1 files changed, 56 insertions, 0 deletions
diff --git a/noncore/net/opietooth/lib/manager.h b/noncore/net/opietooth/lib/manager.h
new file mode 100644
index 0000000..dcae02b
--- a/dev/null
+++ b/noncore/net/opietooth/lib/manager.h
@@ -0,0 +1,56 @@
1
2#ifndef OpieToothManager_H
3#define OpieToothManager_H
4
5#include <qobject.h>
6#include <qstring.h>
7#include <qvaluelist.h>
8
9namespace OpieTooth {
10 class Device;
11 class Manager : public QObject {
12Q_OBJECT
13 public:
14 // Manage MAC device or by name (hci0)
15 Manager( const QString &device );
16 // Manage a with Device attached device
17 Manager( Device* dev );
18 // manage nothing ;)
19 Manager();
20 ~Manager();
21
22 // setDevice either MAC or hci0
23 // ups it
24 void setDevice( const QString& device );
25 void setDevice( Device *dev );
26 // asynchron connect to signal
27 void isConnected(const QString& device );
28 void isConnected(Device *dev );
29
30 // if c'tor with device or setDevice everythning is ok
31 void searchDevices();
32 // use an alternate device
33 void searchDevices(const QString& device);
34 void searchDevices(Device *d );
35
36 void addService(const QString &name );
37 void addServices( const QStringList& names );
38 void removeService(const QString &name );
39 void removeServices(const QStringList& );
40
41 void searchServices( const QString& remDevice );
42 /*static*/ QString toDevice( const QString& mac );
43 /*static*/ QString toMac( const QString &device );
44
45 signals:
46 // device either mac or dev name
47 // the first device is the device which you access
48 void connected( const QString& device, bool connected );
49 void addedService( const QString& device, const QString& service, bool added );
50 void removedService( const QString& device, const QString& service, bool removed );
51 void foundServices( const QString& device, Services::ValueList );
52 void foundDevices( const QString& device, RemoteDevices::ValueList );
53 };
54};
55
56#endif