@@ -0,0 +1,1895 @@
+/**%0A * Author : Rishi Gupta%0A * %0A * This file is part of 'serial communication manager' library.%0A *%0A * The 'serial communication manager' is free software: you can redistribute it and/or modify%0A * it under the terms of the GNU Lesser General Public License as published by the Free Software %0A * Foundation, either version 3 of the License, or (at your option) any later version.%0A *%0A * The 'serial communication manager' is distributed in the hope that it will be useful, but%0A * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A %0A * PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.%0A *%0A * You should have received a copy of the GNU Lesser General Public License%0A * along with serial communication manager. If not, see %3Chttp://www.gnu.org/licenses/%3E.%0A */%0A%0Apackage com.embeddedunveiled.serial;%0A%0A/**%0A * %3Cp%3EThis interface ISerialComHotPlugListener need to be implemented by an application class who wants %0A * to get notified whenever a specified USB device is added to the system or removed from the system.%3C/p%3E%0A * %0A * %3Cp%3EApplication should call registerHotPlugEventListener method in SerialComManager class to register %0A * listener.%3C/p%3E%0A * %0A * %3Cp%3EWhenever an event occurs callback method onHotPlugEvent() gets called containing event that occurred.%3C/p%3E%0A */%0Apublic interface ISerialComHotPlugListener %7B%0A%0A%09/** %0A%09 * %3Cp%3EWhenever a USB device is plugged into system or unplugged from system, onHotPlugEvent() method will%0A%09 * be called by native layer.%3C/p%3E%0A%09 * %0A%09 * %3Cp%3EThe event value SerialComManager.USB_DEV_ADDED indicates USB device has been added to the system. %0A%09 * The event value SerialComManager.USB_DEV_REMOVED indicates USB device has been removed from system.%3C/p%3E%0A%09 * %0A%09 * @param event integer value indicating whether device was plugged or un-plugged from system%0A%09 */%0A%09public abstract void onHotPlugEvent(int event);%0A%0A%7D%0A

add new interface for usb hot plug implementaion