org.gstreamer.message
Class StateChangedMessage

java.lang.Object
  extended by org.gstreamer.lowlevel.NativeValue
      extended by org.gstreamer.lowlevel.Handle
          extended by org.gstreamer.lowlevel.NativeObject
              extended by org.gstreamer.lowlevel.RefCountedObject
                  extended by org.gstreamer.MiniObject
                      extended by org.gstreamer.Message
                          extended by org.gstreamer.message.StateChangedMessage

public class StateChangedMessage
extends Message

A state change message.

This message is posted whenever an element changes its state.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.gstreamer.lowlevel.NativeObject
NativeObject.Initializer
 
Field Summary
 
Fields inherited from class org.gstreamer.Message
messageStruct
 
Fields inherited from class org.gstreamer.lowlevel.NativeObject
defaultInit, LIFECYCLE, ownsHandle
 
Constructor Summary
StateChangedMessage(GstObject src, State old, State current, State pending)
          Creates a new state-changed message.
StateChangedMessage(NativeObject.Initializer init)
          Creates a new Buffering message.
 
Method Summary
 State getNewState()
          Gets the new (current) state.
 State getOldState()
          Gets the previous state.
 State getPendingState()
          Gets the pending (target) state.
 
Methods inherited from class org.gstreamer.Message
copy, getSource, getStructure, getType, makeWritable
 
Methods inherited from class org.gstreamer.MiniObject
disposeNativeHandle, isWritable, makeWritable, ref, unref
 
Methods inherited from class org.gstreamer.lowlevel.NativeObject
classFor, disown, dispose, equals, finalize, getNativeAddress, handle, hashCode, initializer, initializer, instanceFor, invalidate, isDisposed, nativeValue, objectFor, objectFor, objectFor, objectFor, toString
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StateChangedMessage

public StateChangedMessage(NativeObject.Initializer init)
Creates a new Buffering message.

Parameters:
init - internal initialization data.

StateChangedMessage

public StateChangedMessage(GstObject src,
                           State old,
                           State current,
                           State pending)
Creates a new state-changed message.

Parameters:
src - the source object emitting this message.
old - the previous state.
current - the new (current) state.
pending - the pending (target) state.
Method Detail

getOldState

public State getOldState()
Gets the previous state.

Returns:
the previous state.

getNewState

public State getNewState()
Gets the new (current) state.

Returns:
the new state.

getPendingState

public State getPendingState()
Gets the pending (target) state.

Returns:
the pending state.