|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--usb.jphoto.Buffer | +--usb.jphoto.Container | +--usb.jphoto.ParamVector | +--usb.jphoto.Command
Command messages start PTP transactions, and are sent from initiator to responder. They include an operation code, either conform to chapter 10 of the PTP specification or are vendor-specific commands.
Create these objects in helper routines which package intelligence about a given Operation. That is, it'll know the command code, how many command and response parameters may be used, particularly significant response code, and whether the transaction has a data phase (and its direction).
Field Summary | |
static int |
CloseSession
OperationCode: |
static int |
CopyObject
OperationCode: |
static int |
DeleteObject
OperationCode: |
static int |
FormatStore
OperationCode: |
static int |
GetDeviceInfo
OperationCode: |
static int |
GetDevicePropDesc
OperationCode: |
static int |
GetDevicePropValue
OperationCode: |
static int |
GetNumObjects
OperationCode: |
static int |
GetObject
OperationCode: |
static int |
GetObjectHandles
OperationCode: |
static int |
GetObjectInfo
OperationCode: |
static int |
GetPartialObject
OperationCode: |
static int |
GetStorageIDs
OperationCode: |
static int |
GetStorageInfo
OperationCode: |
static int |
GetThumb
OperationCode: |
static int |
InitiateCapture
OperationCode: |
static int |
InitiateOpenCapture
OperationCode: |
static int |
MoveObject
OperationCode: |
static int |
OpenSession
OperationCode: |
static int |
PowerDown
OperationCode: |
static int |
ResetDevice
OperationCode: |
static int |
ResetDevicePropValue
OperationCode: |
static int |
SelfTest
OperationCode: |
static int |
SendObject
OperationCode: |
static int |
SendObjectInfo
OperationCode: |
static int |
SetDevicePropValue
OperationCode: |
static int |
SetObjectProtection
OperationCode: |
static int |
TerminateOpenCapture
OperationCode: |
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 |
public static final int GetDeviceInfo
public static final int OpenSession
public static final int CloseSession
public static final int GetStorageIDs
public static final int GetStorageInfo
public static final int GetNumObjects
public static final int GetObjectHandles
public static final int GetObjectInfo
public static final int GetObject
public static final int GetThumb
public static final int DeleteObject
public static final int SendObjectInfo
public static final int SendObject
public static final int InitiateCapture
public static final int FormatStore
public static final int ResetDevice
public static final int SelfTest
public static final int SetObjectProtection
public static final int PowerDown
public static final int GetDevicePropDesc
public static final int GetDevicePropValue
public static final int SetDevicePropValue
public static final int ResetDevicePropValue
public static final int TerminateOpenCapture
public static final int MoveObject
public static final int CopyObject
public static final int GetPartialObject
public static final int InitiateOpenCapture
Method Detail |
public java.lang.String getCodeName(int code)
Container
getCodeName
in class Container
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |