summaryrefslogtreecommitdiff
path: root/noncore/net/opietooth/lib/manager.h
authorzecke <zecke>2002-06-28 20:41:55 (UTC)
committer zecke <zecke>2002-06-28 20:41:55 (UTC)
commit545d7b51d67e4c1fa6be40436103b0a6b237a3a7 (patch) (side-by-side diff)
tree7a40a66ef8798e51a23ac362254788609f818f17 /noncore/net/opietooth/lib/manager.h
parent8a34a47d873d8d767d0a84a828e6724b73295b8d (diff)
downloadopie-545d7b51d67e4c1fa6be40436103b0a6b237a3a7.zip
opie-545d7b51d67e4c1fa6be40436103b0a6b237a3a7.tar.gz
opie-545d7b51d67e4c1fa6be40436103b0a6b237a3a7.tar.bz2
hcitool con additions ( not done yet )
Diffstat (limited to 'noncore/net/opietooth/lib/manager.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/net/opietooth/lib/manager.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/noncore/net/opietooth/lib/manager.h b/noncore/net/opietooth/lib/manager.h
index 415ec72..2589e9b 100644
--- a/noncore/net/opietooth/lib/manager.h
+++ b/noncore/net/opietooth/lib/manager.h
@@ -14,7 +14,7 @@ class OProcess;
namespace OpieTooth {
class Device;
/** Manager manages a blueZ device (hci0 for example)
- * with Manager you can control the things you
+ * without Manager you can control the things you
* could do from command line in a OO and asynchronus
* way.
*/
@@ -26,25 +26,30 @@ Q_OBJECT
*
*/
Manager( const QString &device );
+
/** c'tor
* @param dev The Device to be managed
* We don't care of Device so you need to delete it
*/
Manager( Device* dev );
+
/**
* c'tor
*/
Manager();
+
~Manager();
/** Set the manager to control a new device
* @param device the new device to control (hci0 )
*/
void setDevice( const QString& device );
+
/**
* Convience functions for setting a new device
*/
void setDevice( Device *dev );
+
/**
* Wether or not a device is connected. The function
* is asynchron
@@ -54,6 +59,7 @@ Q_OBJECT
* @param either mac or hciX
*/
void isAvailable(const QString& device= QString::null );
+
/**
* same as above
*/
@@ -75,16 +81,19 @@ Q_OBJECT
* It will start the daemon if necessary
*/
void addService(const QString &name );
+
/**
* This will add the services @param names
* to the sdpd daemon
* It will start the daemon if necessary
*/
void addServices( const QStringList& names );
+
/**
* This removes a service from the sdps
*/
void removeService(const QString &name );
+
/**
* Removes a list from the sdpd
*/
@@ -95,6 +104,7 @@ Q_OBJECT
*
*/
void searchServices( const QString& remDevice );
+
/**
* search for services on a remote device
*/
@@ -110,13 +120,19 @@ Q_OBJECT
void removedService( const QString& service, bool removed );
void foundServices( const QString& device, Services::ValueList );
void foundDevices( const QString& device, RemoteDevice::ValueList );
+ void connections( Connection::ValueList );
private slots:
void slotProcessExited(OProcess* );
+
void slotSDPExited(OProcess*);
void slotSDPOut(OProcess*, char*, int);
+
void slotHCIExited(OProcess* );
void slotHCIOut(OProcess*, char*, int );
+
+ void slotConnectionExited(OProcess* );
+ void slotConnectionOutput(OProcess*, char*, int );
private:
Services::ValueList parseSDPOutput( const QString& );
RemoteDevice::ValueList parseHCIOutput( const QString& );
@@ -125,6 +141,7 @@ private slots:
QString m_device;
QMap<QString, QString> m_out;
QMap<QString, QString> m_devices;
+ QString m_hcitoolCon;
};
};