com.morpho.android.usb
Class USBDeviceAttributes

java.lang.Object
  extended by com.morpho.android.usb.USBDeviceAttributes
All Implemented Interfaces:
android.os.Parcelable

public class USBDeviceAttributes
extends java.lang.Object
implements android.os.Parcelable


Nested Class Summary
 
Nested classes/interfaces inherited from interface android.os.Parcelable
android.os.Parcelable.ClassLoaderCreator<T>, android.os.Parcelable.Creator<T>
 
Field Summary
static android.os.Parcelable.Creator<USBDeviceAttributes> CREATOR
          Creator method from a parcel
 
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
 
Constructor Summary
protected USBDeviceAttributes(int vendorId, int productId)
           
  USBDeviceAttributes(java.lang.String path, int vendorId, int productId, int interfaceNumber)
          Constructs an USBDeviceAttributes object (called by the JNI)
 
Method Summary
 int describeContents()
           
 java.lang.String getFreindlyName()
           
 int getInterfaceNumber()
           
 java.lang.String getManufacturer()
           
 java.lang.String getPath()
           
 java.lang.String getProduct()
           
 int getProductId()
           
 int getVendorId()
           
 void setFreindlyName(java.lang.String freindlyName)
           
 void setProduct(java.lang.String product)
           
 void writeToParcel(android.os.Parcel dest, int flags)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CREATOR

public static android.os.Parcelable.Creator<USBDeviceAttributes> CREATOR
Creator method from a parcel

Constructor Detail

USBDeviceAttributes

protected USBDeviceAttributes(int vendorId,
                              int productId)

USBDeviceAttributes

public USBDeviceAttributes(java.lang.String path,
                           int vendorId,
                           int productId,
                           int interfaceNumber)
Constructs an USBDeviceAttributes object (called by the JNI)

Parameters:
path -
vendorId -
productId -
interfaceNumber -
Method Detail

getVendorId

public int getVendorId()
Returns:
the vendorId

getProduct

public java.lang.String getProduct()
Returns:
the product

getInterfaceNumber

public int getInterfaceNumber()
Returns:
the interfaceNumber

getProductId

public int getProductId()
Returns:
the productId

getManufacturer

public java.lang.String getManufacturer()
Returns:
the manufacturer

getPath

public java.lang.String getPath()
Returns:
the path

setProduct

public void setProduct(java.lang.String product)
Parameters:
product - the product to set

describeContents

public int describeContents()
Specified by:
describeContents in interface android.os.Parcelable

writeToParcel

public void writeToParcel(android.os.Parcel dest,
                          int flags)
Specified by:
writeToParcel in interface android.os.Parcelable

getFreindlyName

public java.lang.String getFreindlyName()

setFreindlyName

public void setFreindlyName(java.lang.String freindlyName)