quicktime.streaming
Class SourcerCallbackParams

java.lang.Object
  |
  +--quicktime.QTObject
        |
        +--quicktime.util.QTPointerRef
              |
              +--quicktime.util.QTPointer
                    |
                    +--quicktime.streaming.SourcerCallbackParams
All Implemented Interfaces:
java.lang.Cloneable, InterfaceLib, PrimitivesLib, QuickTimeLib, SharedLibrary, com.apple.jdirect.SharedLibrary

public final class SourcerCallbackParams
extends QTPointer

This class provides a representation the native QTSSourcerCallbackProcParams structure that provides callback registration services for the Sourcer


Field Summary
static int kNativeSize
          This is the size of this class
 
Fields inherited from interface quicktime.jdirect.QuickTimeLib
JDirect_MacOSX, libraryInstance, name
 
Constructor Summary
SourcerCallbackParams(int vers, int flags, StreamNotifyProc proc)
          Constructs an SourcerCallbackParams object based on the native SourcerCallbackParams structure
SourcerCallbackParams(int flags, StreamNotifyProc proc)
          Constructs an SourcerCallbackParams object based on the native SourcerCallbackParams structure
 
Method Summary
 int getFlags()
          Gets the flags
 int getVersion()
          Gets the version of the sourcer callback params object
 void setFlags(int flags)
          Sets the flags of the sourcer callback object
 void setProc(StreamNotifyProc proc)
          Sets the callback procedure for the Sourcer object.
 void setVersion(int vers)
          Sets the version of the sourcer callback params object
 java.lang.String toString()
          Returns a string representation of this object.
 
Methods inherited from class quicktime.util.QTPointer
clone, concatenate, fromEncodedImage, fromGraphicsExporter, fromSCData, setSize
 
Methods inherited from class quicktime.util.QTPointerRef
copyFromArray, copyFromArray, copyFromArray, copyFromArray, copyFromArray, copyFromArray, copyFromArray, copyToArray, copyToArray, copyToArray, copyToArray, copyToArray, copyToArray, copyToArray, getBytes, getSize
 
Methods inherited from class quicktime.QTObject
disposeQTObject, equals, ID
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

kNativeSize

public static final int kNativeSize
This is the size of this class
Constructor Detail

SourcerCallbackParams

public SourcerCallbackParams(int flags,
                             StreamNotifyProc proc)
                      throws QTException
Constructs an SourcerCallbackParams object based on the native SourcerCallbackParams structure
Parameters:
proc - the notify proc to be registered with the sourcer

SourcerCallbackParams

public SourcerCallbackParams(int vers,
                             int flags,
                             StreamNotifyProc proc)
                      throws QTException
Constructs an SourcerCallbackParams object based on the native SourcerCallbackParams structure
Parameters:
vers - version of the callback params structure
proc - the notify proc to be registered with the sourcer
Method Detail

setVersion

public void setVersion(int vers)
Sets the version of the sourcer callback params object
Parameters:
vers - version

getVersion

public int getVersion()
Gets the version of the sourcer callback params object
Returns:
version

setFlags

public void setFlags(int flags)
Sets the flags of the sourcer callback object
Parameters:
flags - sourcer callback flags

getFlags

public int getFlags()
Gets the flags

setProc

public void setProc(StreamNotifyProc proc)
Sets the callback procedure for the Sourcer object. If the proc is null, the current callback proc will be removed
Parameters:
proc - StreamNotify Proc

toString

public java.lang.String toString()
Returns a string representation of this object.
Overrides:
toString in class QTPointerRef
Returns:
a String