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 @@ #include <qstring.h> +#include <qmap.h> #include <qvaluelist.h> @@ -11,2 +12,3 @@ +class OProcess; namespace OpieTooth { @@ -16,3 +18,3 @@ namespace OpieTooth { * could do from command line in a OO and asynchronus - * way. + * way. */ @@ -29,3 +31,3 @@ Q_OBJECT * We don't care of Device so you need to delete it - */ + */ Manager( Device* dev ); @@ -50,3 +52,4 @@ Q_OBJECT * device and see if it's up - * for Remote devices it will ping and see + * for Remote devices it will ping and see. + * @param either mac or hciX */ @@ -58,4 +61,4 @@ Q_OBJECT - /** this search for devices reachable from the - * currently managed device + /** this searchs for devices reachable from the + * currently managed device * or from device if @param device is not empty @@ -91,3 +94,3 @@ Q_OBJECT * search for services on a remote device - * + * */ @@ -105,6 +108,16 @@ Q_OBJECT void connected( const QString& device, bool connected ); - void addedService( const QString& device, const QString& service, bool added ); - void removedService( const QString& device, const QString& service, bool removed ); + void addedService( const QString& service, bool added ); + void removedService( const QString& service, bool removed ); void foundServices( const QString& device, Services::ValueList ); void foundDevices( const QString& device, RemoteDevices::ValueList ); + void foundNothing( const QString& device ); +private slots: + void slotProcessExited(OProcess* ); + void slotSDPExited(OProcess*); + void slotSDPOut(OProcess*, char*, int); + private: + OProcess *m_hcitool; + OProcess *m_sdp; // not only one + QString m_device; + QMap<QString, QString> m_out; }; |