org.symbian.tools.mtw.ui/src/org/symbian/tools/tmw/ui/deployment/bluetooth/BluetoothTarget.java
changeset 468 a05c6e5cc7d9
parent 462 cdc4995b1677
equal deleted inserted replaced
467:5a2901872fcf 468:a05c6e5cc7d9
    49 import org.eclipse.core.runtime.PlatformObject;
    49 import org.eclipse.core.runtime.PlatformObject;
    50 import org.eclipse.core.runtime.Status;
    50 import org.eclipse.core.runtime.Status;
    51 import org.eclipse.core.runtime.SubProgressMonitor;
    51 import org.eclipse.core.runtime.SubProgressMonitor;
    52 import org.eclipse.ui.IMemento;
    52 import org.eclipse.ui.IMemento;
    53 import org.symbian.tools.tmw.core.TMWCore;
    53 import org.symbian.tools.tmw.core.TMWCore;
    54 import org.symbian.tools.tmw.core.projects.IMTWProject;
    54 import org.symbian.tools.tmw.core.projects.ITMWProject;
    55 import org.symbian.tools.tmw.core.runtimes.IPackager;
    55 import org.symbian.tools.tmw.core.runtimes.IPackager;
    56 import org.symbian.tools.tmw.ui.deployment.IDeploymentTarget;
    56 import org.symbian.tools.tmw.ui.deployment.IDeploymentTarget;
    57 
    57 
    58 public class BluetoothTarget extends PlatformObject implements IDeploymentTarget {
    58 public class BluetoothTarget extends PlatformObject implements IDeploymentTarget {
    59     private static final UUID OBEX_OBJECT_PUSH = new UUID(0x1105);
    59     private static final UUID OBEX_OBJECT_PUSH = new UUID(0x1105);
    69         this.name = name;
    69         this.name = name;
    70         this.device = device;
    70         this.device = device;
    71         this.provider = provider;
    71         this.provider = provider;
    72     }
    72     }
    73 
    73 
    74     public IStatus deploy(IMTWProject project, IPackager packager, IProgressMonitor monitor) throws CoreException {
    74     public IStatus deploy(ITMWProject project, IPackager packager, IProgressMonitor monitor) throws CoreException {
    75         message = "Deployment was successful. Please follow on-screen instructions to complete application deployment on your device.";
    75         message = "Deployment was successful. Please follow on-screen instructions to complete application deployment on your device.";
    76         statuses.clear();
    76         statuses.clear();
    77         monitor.beginTask(String.format("Deploying application %s to %s", project.getName(), name),
    77         monitor.beginTask(String.format("Deploying application %s to %s", project.getName(), name),
    78                 IProgressMonitor.UNKNOWN);
    78                 IProgressMonitor.UNKNOWN);
    79         if (packager == null) {
    79         if (packager == null) {
   300             TMWCore.log("Error in Bluetooth service discovery", e);
   300             TMWCore.log("Error in Bluetooth service discovery", e);
   301         }
   301         }
   302         return serviceURL;
   302         return serviceURL;
   303     }
   303     }
   304 
   304 
   305     public void init(IMTWProject project, IPackager packager, IMemento memento) {
   305     public void init(ITMWProject project, IPackager packager, IMemento memento) {
   306         // nothing
   306         // nothing
   307     }
   307     }
   308 
   308 
   309     public void save(IMemento memento) {
   309     public void save(IMemento memento) {
   310         // nothing
   310         // nothing