Diffstat (limited to 'noncore/net/opietooth/lib/manager.cc') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/opietooth/lib/manager.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/noncore/net/opietooth/lib/manager.cc b/noncore/net/opietooth/lib/manager.cc index 1281116..59ade6d 100644 --- a/noncore/net/opietooth/lib/manager.cc +++ b/noncore/net/opietooth/lib/manager.cc | |||
@@ -256,22 +256,23 @@ void Manager::searchConnections() { | |||
256 | if (!proc->start(OProcess::NotifyOnExit, OProcess::AllOutput) ) { | 256 | if (!proc->start(OProcess::NotifyOnExit, OProcess::AllOutput) ) { |
257 | ConnectionState::ValueList list; | 257 | ConnectionState::ValueList list; |
258 | emit connections( list ); | 258 | emit connections( list ); |
259 | delete proc; | 259 | delete proc; |
260 | } | 260 | } |
261 | } | 261 | } |
262 | void Manager::slotConnectionExited( OProcess* /*proc*/ ) { | 262 | void Manager::slotConnectionExited( OProcess* proc ) { |
263 | qWarning("exited"); | 263 | qWarning("<<<<<<<<<<<<<<<<<exited"); |
264 | ConnectionState::ValueList list; | 264 | ConnectionState::ValueList list; |
265 | list = parseConnections( m_hcitoolCon ); | 265 | list = parseConnections( m_hcitoolCon ); |
266 | emit connections(list ); | 266 | emit connections(list ); |
267 | delete proc; | ||
267 | } | 268 | } |
268 | void Manager::slotConnectionOutput(OProcess* proc, char* cha, int len) { | 269 | void Manager::slotConnectionOutput(OProcess* proc, char* cha, int len) { |
269 | QCString str(cha, len ); | 270 | QCString str(cha, len ); |
270 | m_hcitoolCon.append( str ); | 271 | m_hcitoolCon.append( str ); |
271 | delete proc; | 272 | //delete proc; |
272 | } | 273 | } |
273 | ConnectionState::ValueList Manager::parseConnections( const QString& out ) { | 274 | ConnectionState::ValueList Manager::parseConnections( const QString& out ) { |
274 | ConnectionState::ValueList list2; | 275 | ConnectionState::ValueList list2; |
275 | QStringList list = QStringList::split('\n', out ); | 276 | QStringList list = QStringList::split('\n', out ); |
276 | QStringList::Iterator it; | 277 | QStringList::Iterator it; |
277 | for (it = list.begin(); it != list.end(); ++it ) { | 278 | for (it = list.begin(); it != list.end(); ++it ) { |