@@ -0,0 +1,1998 @@
+/**%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 class encapsulates the information associated with hot plug listener and its native part.%3C/p%3E%0A */%0Apublic final class SerialComHotPlugInfo %7B%0A%09%0A%09private int index = -1;%0A%09private ISerialComHotPlugListener mSerialComHotPlugListener = null;%0A%0A%09/**%0A%09 * %3Cp%3EAllocates a new SerialComHotPlugInfo object.%3C/p%3E%0A%09 * %0A%09 * @param mSerialComHotPlugListener listener for which info this is stored%0A%09 * @param index array index at which information about native thread is stored for this listener%0A%09 */%0A%09public SerialComHotPlugInfo(ISerialComHotPlugListener mSerialComHotPlugListener, int index) %7B%0A%09%09this.mSerialComHotPlugListener = mSerialComHotPlugListener;%0A%09%09this.index = index;%0A%09%7D%0A%09%0A%09/** %0A%09 * %3Cp%3EGives reference to ISerialComHotPlugListener object.%3C/p%3E%0A%09 * @return reference to ISerialComHotPlugListener object%0A%09 */%09%0A%09public ISerialComHotPlugListener getSerialComHotPlugListener() %7B%0A%09%09return mSerialComHotPlugListener;%0A%09%7D%0A%0A%09/** %0A%09 * %3Cp%3EGives index of information about this hot plug listener.%3C/p%3E%0A%09 * @return array index of information about hot plug listener%0A%09 */%0A%09public int getSerialComHotPlugListenerIndex() %7B%0A%09%09return index;%0A%09%7D%0A%0A%7D%0A

add class that wraps hot plug listener info