Bug 11222 RCL_2_4
authordadubrow
Mon, 28 Jun 2010 08:58:35 -0500
branchRCL_2_4
changeset 1550 d666d0a984db
parent 1549 84e4ca0e2d58
child 1551 e848131666c1
Bug 11222
connectivity/com.nokia.carbide.remoteConnections.discovery.pccs/src/com/nokia/carbide/remoteconnections/discovery/pccs/agent/PCCSDiscoveryAgent.java
connectivity/com.nokia.carbide.remoteConnections.discovery.pccs/src/com/nokia/carbide/remoteconnections/discovery/pccs/messages.properties
connectivity/com.nokia.carbide.remoteConnections.discovery.pccs/src/com/nokia/carbide/remoteconnections/discovery/pccs/pccsnative/PCCSConnection.java
--- a/connectivity/com.nokia.carbide.remoteConnections.discovery.pccs/src/com/nokia/carbide/remoteconnections/discovery/pccs/agent/PCCSDiscoveryAgent.java	Mon Jun 28 08:58:26 2010 -0500
+++ b/connectivity/com.nokia.carbide.remoteConnections.discovery.pccs/src/com/nokia/carbide/remoteconnections/discovery/pccs/agent/PCCSDiscoveryAgent.java	Mon Jun 28 08:58:35 2010 -0500
@@ -350,4 +350,12 @@
 		
 		return loadStatus;
 	}
+
+	public boolean isRunning() {
+		return pccsConnection != null && pccsConnection.isOpen();
+	}
+
+	public String getId() {
+		return getClass().getName();
+	}
 }
--- a/connectivity/com.nokia.carbide.remoteConnections.discovery.pccs/src/com/nokia/carbide/remoteconnections/discovery/pccs/messages.properties	Mon Jun 28 08:58:26 2010 -0500
+++ b/connectivity/com.nokia.carbide.remoteConnections.discovery.pccs/src/com/nokia/carbide/remoteconnections/discovery/pccs/messages.properties	Mon Jun 28 08:58:35 2010 -0500
@@ -1,4 +1,4 @@
-Activator_Agent_Name=PC Suite Device Discovery Agent
+Activator_Agent_Name=PC Suite Device Discovery
 Activator_PCCS_Location=http://www2.connecting.nokia.com/nmp/swp/pcsuite.nsf/document/ES336ZAHVY?OpenDocument
 Activator_PCSuite_Location=https://tools.ext.nokia.com/PCsuite
 ConnAPILibrary_PCCS_Not_Found_Error=Carbide could not find the PC Connectivity Solution (PCCS) installation. For more information go to: 
--- a/connectivity/com.nokia.carbide.remoteConnections.discovery.pccs/src/com/nokia/carbide/remoteconnections/discovery/pccs/pccsnative/PCCSConnection.java	Mon Jun 28 08:58:26 2010 -0500
+++ b/connectivity/com.nokia.carbide.remoteConnections.discovery.pccs/src/com/nokia/carbide/remoteconnections/discovery/pccs/pccsnative/PCCSConnection.java	Mon Jun 28 08:58:35 2010 -0500
@@ -1300,4 +1300,11 @@
     		throw new CoreException(new Status(IStatus.ERROR, Activator.PLUGIN_ID, PCCS_WRONG_VERSION, msg, null));
     	}
 	}
+	
+	/**
+	 * @return whether we have a valid handle
+	 */
+	public boolean isOpen() {
+		return dmHandle != APIHANDLE.INVALID_HANDLE_VALUE;
+	}
 }