usb.jphoto
Class Event

java.lang.Object
  |
  +--usb.jphoto.Buffer
        |
        +--usb.jphoto.Container
              |
              +--usb.jphoto.ParamVector
                    |
                    +--usb.jphoto.Event

public class Event
extends ParamVector

Events are sent spontaneously from responders to initiators. Event codes, described in chapter 12 of the PTP specification, identify what happened. Some events have a parameter, and additional data (for vendor extensions) may be available using the class control request "Get Extended Event Data".


Field Summary
static int CancelTransaction
          EventCode:
static int CaptureComplete
          EventCode:
static int DeviceInfoChanged
          EventCode:
static int DevicePropChanged
          EventCode:
static int DeviceReset
          EventCode:
static int ObjectAdded
          EventCode:
static int ObjectInfoChanged
          EventCode:
static int ObjectRemoved
          EventCode:
static int RequestObjectTransfer
          EventCode:
static int StorageInfoChanged
          EventCode:
static int StoreAdded
          EventCode:
static int StoreFull
          EventCode:
static int StoreRemoved
          EventCode:
static int Undefined
          EventCode:
static int UnreportedStatus
          EventCode: a status event was dropped (missed an interrupt)
 
Method Summary
 java.lang.String getCodeName(int code)
          Subclasses override this to map PTP codes to their names; the results are always interned strings, so that they can be efficiently compared ("=", "!=") against constants.
 
Methods inherited from class usb.jphoto.ParamVector
getNumParams, getParam1, getParam2, getParam3
 
Methods inherited from class usb.jphoto.Container
getBlockType, getBlockTypeName, getCode, getCodeString, getCodeString, getCodeType, getLength, getXID, toString
 
Methods inherited from class usb.jphoto.Buffer
getS16, getS32, getS64, getS8, getString, getU16, getU8, nextS16, nextS16Array, nextS32, nextS32Array, nextS64, nextS64Array, nextS8, nextS8Array, nextString, nextU16, nextU16Array, nextU8, nextU8Array, put16, put32, put64, put8, putString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

Undefined

public static final int Undefined
EventCode:

CancelTransaction

public static final int CancelTransaction
EventCode:

ObjectAdded

public static final int ObjectAdded
EventCode:

ObjectRemoved

public static final int ObjectRemoved
EventCode:

StoreAdded

public static final int StoreAdded
EventCode:

StoreRemoved

public static final int StoreRemoved
EventCode:

DevicePropChanged

public static final int DevicePropChanged
EventCode:

ObjectInfoChanged

public static final int ObjectInfoChanged
EventCode:

DeviceInfoChanged

public static final int DeviceInfoChanged
EventCode:

RequestObjectTransfer

public static final int RequestObjectTransfer
EventCode:

StoreFull

public static final int StoreFull
EventCode:

DeviceReset

public static final int DeviceReset
EventCode:

StorageInfoChanged

public static final int StorageInfoChanged
EventCode:

CaptureComplete

public static final int CaptureComplete
EventCode:

UnreportedStatus

public static final int UnreportedStatus
EventCode: a status event was dropped (missed an interrupt)
Method Detail

getCodeName

public java.lang.String getCodeName(int code)
Description copied from class: Container
Subclasses override this to map PTP codes to their names; the results are always interned strings, so that they can be efficiently compared ("=", "!=") against constants. Such per-instance methods permit type-specific subclasses (and vendor extensions) to name their code values, invoking superclass methods to name all other codes.
Overrides:
getCodeName in class Container


Associated source code is licenced under the GPL.
See http://jphoto.sourceforge.net
This documentation was derived from that source code on 2001-04-12.