42 import org.symbian.tools.tmw.ui.deployment.IDeploymentTargetType; |
42 import org.symbian.tools.tmw.ui.deployment.IDeploymentTargetType; |
43 |
43 |
44 import com.intel.bluetooth.BlueCoveImpl; |
44 import com.intel.bluetooth.BlueCoveImpl; |
45 |
45 |
46 /** |
46 /** |
47 * Discovers Bluetooth-enabled devices. This code is generic and will not |
47 * Discovers Bluetooth-enabled devices. This code is generic and will not |
48 * perform any checks if the discovered device can run application being |
48 * perform any checks if the discovered device can run application being |
49 * deployed. |
49 * deployed. |
50 * |
50 * |
51 * @author Eugene Ostroukhov (eugeneo@symbian.org) |
51 * @author Eugene Ostroukhov (eugeneo@symbian.org) |
52 */ |
52 */ |
53 public class BluetoothTargetType implements IDeploymentTargetType { |
53 public class BluetoothTargetType implements IDeploymentTargetType { |
54 private final class TargetDiscoveryListener implements DiscoveryListener { |
54 private final class TargetDiscoveryListener implements DiscoveryListener { |
55 final Object inquiryCompletedEvent; |
55 private final Object inquiryCompletedEvent; |
56 boolean isCanceled; |
56 private boolean isCanceled; |
57 final Map<String, BluetoothTarget> prevTargets; |
57 private final Map<String, BluetoothTarget> prevTargets; |
58 final IProgressMonitor progressMonitor; |
58 private final IProgressMonitor progressMonitor; |
59 |
59 |
60 private TargetDiscoveryListener(Map<String, BluetoothTarget> previousTargets, Object inquiryCompletedEvent, |
60 private TargetDiscoveryListener(Map<String, BluetoothTarget> previousTargets, Object inquiryCompletedEvent, |
61 IProgressMonitor progressMonitor) { |
61 IProgressMonitor progressMonitor) { |
62 this.prevTargets = previousTargets; |
62 this.prevTargets = previousTargets; |
63 this.inquiryCompletedEvent = inquiryCompletedEvent; |
63 this.inquiryCompletedEvent = inquiryCompletedEvent; |