+ QString type = args.value(7).toString();
+
+ if(type == "GPRS")
+ {
+ if(searchType_ == WLAN)
+ {
+ return;
+ }
+
+ connection.type = GPRS;
+ }
+ else if(type == "WLAN_INFRA" || type == "WLAN_ADHOC")
+ {
+ if(searchType_ == GPRS)
+ {
+ return;
+ }
+
+ connection.type = WLAN;
+ }
+ else
+ {
+ qDebug() << "Unknown connection type: " << type;
+ return;
+ }
+
+ connection.id = QString(args.value(10).toByteArray());
+ connection.name = args.value(8).toString();
+ connection.strength = args.value(11).toInt();
+
+ for(int i = 0; i < connections_->size(); i++)
+ {
+ if(connections_->at(i).id == connection.id)
+ {
+ if(status == ICD_SCAN_NEW)
+ {
+ connections_->replace(i, connection);
+ }
+
+ return;
+ }
+ }