Diffstat (limited to 'noncore/net/opietooth/lib/manager.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/opietooth/lib/manager.h | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/noncore/net/opietooth/lib/manager.h b/noncore/net/opietooth/lib/manager.h index 6c5e27f..03375c5 100644 --- a/noncore/net/opietooth/lib/manager.h +++ b/noncore/net/opietooth/lib/manager.h | |||
@@ -4,11 +4,13 @@ | |||
4 | 4 | ||
5 | #include <qobject.h> | 5 | #include <qobject.h> |
6 | #include <qstring.h> | 6 | #include <qstring.h> |
7 | #include <qmap.h> | ||
7 | #include <qvaluelist.h> | 8 | #include <qvaluelist.h> |
8 | 9 | ||
9 | #include "remotedevice.h" | 10 | #include "remotedevice.h" |
10 | #include "services.h" | 11 | #include "services.h" |
11 | 12 | ||
13 | class OProcess; | ||
12 | namespace OpieTooth { | 14 | namespace OpieTooth { |
13 | class Device; | 15 | class Device; |
14 | /** Manager manages a blueZ device (hci0 for example) | 16 | /** Manager manages a blueZ device (hci0 for example) |
@@ -48,7 +50,8 @@ Q_OBJECT | |||
48 | * is asynchron | 50 | * is asynchron |
49 | * If device is empty it will take the currently managed | 51 | * If device is empty it will take the currently managed |
50 | * device and see if it's up | 52 | * device and see if it's up |
51 | * for Remote devices it will ping and see | 53 | * for Remote devices it will ping and see. |
54 | * @param either mac or hciX | ||
52 | */ | 55 | */ |
53 | void isConnected(const QString& device= QString::null ); | 56 | void isConnected(const QString& device= QString::null ); |
54 | /** | 57 | /** |
@@ -56,7 +59,7 @@ Q_OBJECT | |||
56 | */ | 59 | */ |
57 | void isConnected(Device *dev ); | 60 | void isConnected(Device *dev ); |
58 | 61 | ||
59 | /** this search for devices reachable from the | 62 | /** this searchs for devices reachable from the |
60 | * currently managed device | 63 | * currently managed device |
61 | * or from device if @param device is not empty | 64 | * or from device if @param device is not empty |
62 | */ | 65 | */ |
@@ -103,10 +106,20 @@ Q_OBJECT | |||
103 | // device either mac or dev name | 106 | // device either mac or dev name |
104 | // the first device is the device which you access | 107 | // the first device is the device which you access |
105 | void connected( const QString& device, bool connected ); | 108 | void connected( const QString& device, bool connected ); |
106 | void addedService( const QString& device, const QString& service, bool added ); | 109 | void addedService( const QString& service, bool added ); |
107 | void removedService( const QString& device, const QString& service, bool removed ); | 110 | void removedService( const QString& service, bool removed ); |
108 | void foundServices( const QString& device, Services::ValueList ); | 111 | void foundServices( const QString& device, Services::ValueList ); |
109 | void foundDevices( const QString& device, RemoteDevices::ValueList ); | 112 | void foundDevices( const QString& device, RemoteDevices::ValueList ); |
113 | void foundNothing( const QString& device ); | ||
114 | private slots: | ||
115 | void slotProcessExited(OProcess* ); | ||
116 | void slotSDPExited(OProcess*); | ||
117 | void slotSDPOut(OProcess*, char*, int); | ||
118 | private: | ||
119 | OProcess *m_hcitool; | ||
120 | OProcess *m_sdp; // not only one | ||
121 | QString m_device; | ||
122 | QMap<QString, QString> m_out; | ||
110 | }; | 123 | }; |
111 | }; | 124 | }; |
112 | 125 | ||