# HG changeset patch # User Chad Peckham # Date 1269297919 18000 # Node ID 07b11b189a25ced0d98709c4a0d7fec6de8930e2 # Parent f68b7751b40828cd153e5cc6923fa22ada7bdaf9 remove unused classes diff -r f68b7751b408 -r 07b11b189a25 connectivity/com.nokia.carbide.remoteConnections.discovery.pccs/src/com/nokia/carbide/remoteconnections/discovery/pccs/pccsnative/ConnAPILibrary.java --- a/connectivity/com.nokia.carbide.remoteConnections.discovery.pccs/src/com/nokia/carbide/remoteconnections/discovery/pccs/pccsnative/ConnAPILibrary.java Mon Mar 22 17:42:44 2010 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,296 +0,0 @@ -/* -* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of the License "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ -package com.nokia.carbide.remoteconnections.discovery.pccs.pccsnative; - -import java.nio.IntBuffer; -import java.nio.ShortBuffer; - -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IStatus; -import org.eclipse.core.runtime.Status; - -import com.nokia.carbide.remoteconnections.discovery.pccs.Activator; -import com.nokia.carbide.remoteconnections.discovery.pccs.Messages; -import com.sun.jna.Native; -import com.sun.jna.Pointer; -import com.sun.jna.WString; -import com.sun.jna.ptr.IntByReference; -import com.sun.jna.ptr.PointerByReference; - -public class ConnAPILibrary implements IConnAPILibrary { - - private static IConnAPILibrary Instance; - - /** - * - */ - public ConnAPILibrary() { - } - - /* (non-Javadoc) - * @see com.nokia.carbide.remoteconnections.discovery.pccs.pccsnative.ConnAPILibrary#getInstance() - */ - public static IConnAPILibrary getInstance() throws CoreException { - if (Instance == null) - loadConnAPILibrary(); - return Instance; - } - - /* (non-Javadoc) - * @see com.nokia.carbide.remoteconnections.discovery.pccs.pccsnative.ConnAPILibrary#loadConnAPILibrary() - */ - private static void loadConnAPILibrary() throws CoreException { - try { - Instance = (IConnAPILibrary) Native.loadLibrary("ConnAPI", IConnAPILibrary.class); //$NON-NLS-1$ - } catch (UnsatisfiedLinkError e) { - String msg; - if (Activator.isSymSEELayout()) { - msg = Messages.ConnAPILibrary_PCCS_Not_Found_Error + Activator.getLoadErrorURL(); - } else { - msg = Messages.ConnAPILibrary_PCSuite_Not_Found_Error + Activator.getLoadErrorURL(); - } - throw new CoreException(new Status(IStatus.ERROR, Activator.PLUGIN_ID, PCCSConnection.PCCS_NOT_FOUND, msg, e)); - } - } - - // these calls are here just to satisfy the interface - // the real calls are marshalled through jna to the native library - public int CFAPI_Initialize(int dwAPIVersion, IntByReference pdwParam) { - // TODO Auto-generated method stub - return 0; - } - - public int CFAPI_Terminate(IntByReference pdwParam) { - // TODO Auto-generated method stub - return 0; - } - - public int CONACloseDM(APIHANDLE mHDMHandle) { - // TODO Auto-generated method stub - return 0; - } - - public int CONAFreeDeviceStructure(int dwCount, CONAPI_DEVICE[] pDevices) { - // TODO Auto-generated method stub - return 0; - } - - public int CONAGetDeviceCount(APIHANDLE hDMHandle, IntByReference pdwCount) { - // TODO Auto-generated method stub - return 0; - } - - public int CONAGetDevices(APIHANDLE hDMHandle, IntByReference pdwCount, - CONAPI_DEVICE[] pDevices) { - // TODO Auto-generated method stub - return 0; - } - - public int CONAOpenDM(LPAPIHANDLE mHDMHandle) { - // TODO Auto-generated method stub - return 0; - } - - public int CONARegisterNotifyCallback(APIHANDLE hDMHandle, int dwState, - IConnAPIDeviceCallback pfnNotify) { - // TODO Auto-generated method stub - return 0; - } - - public int DMAPI_GetAPIVersion() { - // TODO Auto-generated method stub - return 0; - } - - public int DMAPI_Initialize(int dwAPIVersion, IntByReference pdwParam) { - // TODO Auto-generated method stub - return 0; - } - - public int DMAPI_Terminate(IntByReference pdwParam) { - // TODO Auto-generated method stub - return 0; - } - - public int CONACloseMM(APIHANDLE hMCHandle) { - // TODO Auto-generated method stub - return 0; - } - - public int CONAMMFreeMediaStructures(int dwCountOfMedia, CONAPI_MEDIA[] pMedia) { - // TODO Auto-generated method stub - return 0; - } - public int CONAMMFreeMediaStructures(int dwCountOfMedia, Pointer pMedia) { - // TODO Auto-generated method stub - return 0; - } - - - public int CONAMMGetMedia(APIHANDLE hMCHandle, IntBuffer pdwCountOfMedia, - CONAPI_MEDIA.ByReference[] ppMedia) { - // TODO Auto-generated method stub - return 0; - } - public int CONAMMGetMedia(APIHANDLE hMCHandle, IntBuffer pdwCountOfMedia, - CONAPI_MEDIA.ByReference ppMedia) { - // TODO Auto-generated method stub - return 0; - } - public int CONAMMGetMedia(APIHANDLE hMCHandle, IntBuffer pdwCountOfMedia, - PointerByReference ppMedia) { - // TODO Auto-generated method stub - return 0; - } - public int CONAMMSetMedia(APIHANDLE hMCHandle, CONAPI_MEDIA[] pMedia) { - // TODO Auto-generated method stub - return 0; - } - - public int CONAOpenMM(LPAPIHANDLE phMCHandle, int dwValue) { - // TODO Auto-generated method stub - return 0; - } - - public int CONARegisterMMNotifyCallback(APIHANDLE hMCHandle, int dwState, - IConnAPIMediaCallback pfnNotify) { - // TODO Auto-generated method stub - return 0; - } - - public int MCAPI_FreeMediaInfo(CONAPI_MEDIA_INFO[] pMediaInfo) { - // TODO Auto-generated method stub - return 0; - } - - public int MCAPI_GetAPIVersion() { - // TODO Auto-generated method stub - return 0; - } - - public int MCAPI_GetMediaInfo(APIHANDLE hMCHandle, ShortBuffer pstrMediaID, - CONAPI_MEDIA_INFO[] pMediaInfo) { - // TODO Auto-generated method stub - return 0; - } - - public int MCAPI_Initialize(int dwAPIVersion, IntBuffer pdwParam) { - // TODO Auto-generated method stub - return 0; - } - - public int MCAPI_Terminate(IntBuffer pdwParam) { - // TODO Auto-generated method stub - return 0; - } - - public int UPAPI_CloseUSBPersonality(APIHANDLE hUPHandle) { - // TODO Auto-generated method stub - return 0; - } - - public int UPAPI_FreeDeviceDescriptor(int dwDeviceCount, - UP_DEVICE_DESCRIPTOR[] pDeviceDescriptor) { - // TODO Auto-generated method stub - return 0; - } - - public int UPAPI_FreePersonalityDescriptors( - UP_PERSONALITY_DESCRIPTORS[] pPersonalityDescriptors) { - // TODO Auto-generated method stub - return 0; - } - - public int UPAPI_FreeStringDescriptor( - UP_STRING_DESCRIPTOR pStringDescriptor) { - // TODO Auto-generated method stub - return 0; - } - - public int UPAPI_GetAPIVersion() { - // TODO Auto-generated method stub - return 0; - } - - public int UPAPI_GetConfigurationDescriptor(APIHANDLE hUPHandle, - WString pstrDeviceId, - UP_CONFIGURATION_DESCRIPTOR[] pConfigurationDescriptor) { - // TODO Auto-generated method stub - return 0; - } - - public int UPAPI_GetPersonalityDescriptors(APIHANDLE hUPHandle, - WString pstrDeviceId, - UP_PERSONALITY_DESCRIPTORS[] pPersonalityDescriptors) { - // TODO Auto-generated method stub - return 0; - } - - public int UPAPI_GetStringDescriptor(APIHANDLE hUPHandle, - WString pstrDeviceId, int dwDescriptorIndex, int dwLanguageID, - UP_STRING_DESCRIPTOR pStringDescriptor) { - // TODO Auto-generated method stub - return 0; - } - - public int UPAPI_Initialize(int dwAPIVersion, IntBuffer pdwParam) { - // TODO Auto-generated method stub - return 0; - } - - public int UPAPI_OpenUSBPersonality(int dwVendorId, LPAPIHANDLE phUPHandle) { - // TODO Auto-generated method stub - return 0; - } - - public int UPAPI_QueryDeviceCount(APIHANDLE hUPHandle, - IntBuffer pdwDeviceCount) { - // TODO Auto-generated method stub - return 0; - } - - public int UPAPI_QueryDevices(APIHANDLE hUPHandle, IntBuffer pdwDeviceCount, - UP_DEVICE_DESCRIPTOR[] pDeviceDescriptor) { - // TODO Auto-generated method stub - return 0; - } - - public int UPAPI_SendCommandToDevice(APIHANDLE hUPHandle, - WString pstrDeviceId, int dwDataDirection, - UP_DATA_BUFFER[] pDataBuffer) { - // TODO Auto-generated method stub - return 0; - } - - public int UPAPI_SetPersonality(APIHANDLE hUPHandle, - WString pstrDeviceId, int dwPersonalityCode) { - // TODO Auto-generated method stub - return 0; - } - - public int UPAPI_Terminate(IntBuffer pdwParam) { - // TODO Auto-generated method stub - return 0; - } - - public int CONAMMSetMedia(APIHANDLE hMCHandle, Pointer pMedia) { - // TODO Auto-generated method stub - return 0; - } - - -} diff -r f68b7751b408 -r 07b11b189a25 connectivity/com.nokia.carbide.remoteConnections.discovery.pccs/src/com/nokia/carbide/remoteconnections/discovery/pccs/pccsnative/DMHANDLE.java --- a/connectivity/com.nokia.carbide.remoteConnections.discovery.pccs/src/com/nokia/carbide/remoteconnections/discovery/pccs/pccsnative/DMHANDLE.java Mon Mar 22 17:42:44 2010 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,42 +0,0 @@ -/* -* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of the License "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ -package com.nokia.carbide.remoteconnections.discovery.pccs.pccsnative; - -import com.sun.jna.FromNativeContext; -import com.sun.jna.Pointer; -import com.sun.jna.PointerType; - -public class DMHANDLE extends PointerType { - // Constant value representing an invalid HANDLE. - public static DMHANDLE INVALID_HANDLE_VALUE = new DMHANDLE(Pointer.createConstant(-1)); - - private boolean immutable; - public DMHANDLE() { } - public DMHANDLE(Pointer p) { setPointer(p); immutable = true; } - /** Override to the appropriate object for INVALID_HANDLE_VALUE. */ - public Object fromNative(Object nativeValue, FromNativeContext context) { - Object o = super.fromNative(nativeValue, context); - if (INVALID_HANDLE_VALUE.equals(o)) - return INVALID_HANDLE_VALUE; - return o; - } - public void setPointer(Pointer p) { - if (immutable) - throw new UnsupportedOperationException("immutable reference"); //$NON-NLS-1$ - super.setPointer(p); - } -} diff -r f68b7751b408 -r 07b11b189a25 connectivity/com.nokia.carbide.remoteConnections.discovery.pccs/src/com/nokia/carbide/remoteconnections/discovery/pccs/pccsnative/LPDMHANDLE.java --- a/connectivity/com.nokia.carbide.remoteConnections.discovery.pccs/src/com/nokia/carbide/remoteconnections/discovery/pccs/pccsnative/LPDMHANDLE.java Mon Mar 22 17:42:44 2010 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,43 +0,0 @@ -/* -* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of the License "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ -package com.nokia.carbide.remoteconnections.discovery.pccs.pccsnative; - -import com.sun.jna.Pointer; -import com.sun.jna.ptr.ByReference; - -public class LPDMHANDLE extends ByReference { - public LPDMHANDLE() { - this(null); - } - public LPDMHANDLE(DMHANDLE h) { - super(Pointer.SIZE); - setValue(h); - } - public void setValue(DMHANDLE h) { - getPointer().setPointer(0, h != null ? h.getPointer() : null); - } - public DMHANDLE getValue() { - Pointer p = getPointer().getPointer(0); - if (p == null) - return null; - if (DMHANDLE.INVALID_HANDLE_VALUE.getPointer().equals(p)) - return DMHANDLE.INVALID_HANDLE_VALUE; - DMHANDLE h = new DMHANDLE(); - h.setPointer(p); - return h; - } -} diff -r f68b7751b408 -r 07b11b189a25 connectivity/com.nokia.carbide.remoteConnections.discovery.pccs/src/com/nokia/carbide/remoteconnections/discovery/pccs/pccsnative/LPMCHANDLE.java --- a/connectivity/com.nokia.carbide.remoteConnections.discovery.pccs/src/com/nokia/carbide/remoteconnections/discovery/pccs/pccsnative/LPMCHANDLE.java Mon Mar 22 17:42:44 2010 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,36 +0,0 @@ -/* -* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of the License "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ -package com.nokia.carbide.remoteconnections.discovery.pccs.pccsnative; - -public class LPMCHANDLE extends LPDMHANDLE { - - /** - * - */ - public LPMCHANDLE() { - // TODO Auto-generated constructor stub - } - - /** - * @param h - */ - public LPMCHANDLE(DMHANDLE h) { - super(h); - // TODO Auto-generated constructor stub - } - -} diff -r f68b7751b408 -r 07b11b189a25 connectivity/com.nokia.carbide.remoteConnections.discovery.pccs/src/com/nokia/carbide/remoteconnections/discovery/pccs/pccsnative/LPUPHANDLE.java --- a/connectivity/com.nokia.carbide.remoteConnections.discovery.pccs/src/com/nokia/carbide/remoteconnections/discovery/pccs/pccsnative/LPUPHANDLE.java Mon Mar 22 17:42:44 2010 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,21 +0,0 @@ -/* -* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of the License "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ -package com.nokia.carbide.remoteconnections.discovery.pccs.pccsnative; - -public class LPUPHANDLE extends LPDMHANDLE { - -} diff -r f68b7751b408 -r 07b11b189a25 connectivity/com.nokia.carbide.remoteConnections.discovery.pccs/src/com/nokia/carbide/remoteconnections/discovery/pccs/pccsnative/MCHANDLE.java --- a/connectivity/com.nokia.carbide.remoteConnections.discovery.pccs/src/com/nokia/carbide/remoteconnections/discovery/pccs/pccsnative/MCHANDLE.java Mon Mar 22 17:42:44 2010 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,38 +0,0 @@ -/* -* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of the License "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ -package com.nokia.carbide.remoteconnections.discovery.pccs.pccsnative; - -import com.sun.jna.Pointer; - -public class MCHANDLE extends DMHANDLE { - - /** - * - */ - public MCHANDLE() { - // TODO Auto-generated constructor stub - } - - /** - * @param p - */ - public MCHANDLE(Pointer p) { - super(p); - // TODO Auto-generated constructor stub - } - -} diff -r f68b7751b408 -r 07b11b189a25 connectivity/com.nokia.carbide.remoteConnections.discovery.pccs/src/com/nokia/carbide/remoteconnections/discovery/pccs/pccsnative/UPHANDLE.java --- a/connectivity/com.nokia.carbide.remoteConnections.discovery.pccs/src/com/nokia/carbide/remoteconnections/discovery/pccs/pccsnative/UPHANDLE.java Mon Mar 22 17:42:44 2010 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,21 +0,0 @@ -/* -* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of the License "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ -package com.nokia.carbide.remoteconnections.discovery.pccs.pccsnative; - -public class UPHANDLE extends DMHANDLE { - -}