Diffstat (limited to 'noncore/net/opietooth/lib/manager.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/opietooth/lib/manager.h | 29 |
1 files changed, 21 insertions, 8 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 | |||
@@ -6,2 +6,3 @@ | |||
6 | #include <qstring.h> | 6 | #include <qstring.h> |
7 | #include <qmap.h> | ||
7 | #include <qvaluelist.h> | 8 | #include <qvaluelist.h> |
@@ -11,2 +12,3 @@ | |||
11 | 12 | ||
13 | class OProcess; | ||
12 | namespace OpieTooth { | 14 | namespace OpieTooth { |
@@ -16,3 +18,3 @@ namespace OpieTooth { | |||
16 | * could do from command line in a OO and asynchronus | 18 | * could do from command line in a OO and asynchronus |
17 | * way. | 19 | * way. |
18 | */ | 20 | */ |
@@ -29,3 +31,3 @@ Q_OBJECT | |||
29 | * We don't care of Device so you need to delete it | 31 | * We don't care of Device so you need to delete it |
30 | */ | 32 | */ |
31 | Manager( Device* dev ); | 33 | Manager( Device* dev ); |
@@ -50,3 +52,4 @@ Q_OBJECT | |||
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 | */ |
@@ -58,4 +61,4 @@ Q_OBJECT | |||
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 |
@@ -91,3 +94,3 @@ Q_OBJECT | |||
91 | * search for services on a remote device | 94 | * search for services on a remote device |
92 | * | 95 | * |
93 | */ | 96 | */ |
@@ -105,6 +108,16 @@ Q_OBJECT | |||
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 | }; |