RecSubject
public class RecStatus extends java.lang.Object implements RecSubject
Modifier and Type | Field | Description |
---|---|---|
static int |
ANNOTATE |
|
static int |
CLOSE |
|
static int |
ERROR |
|
static int |
IDLE |
|
static int |
INIT |
|
static int |
ITEM_ERROR |
|
static int |
MIN_STATUS_NUMBER |
|
static int |
NAVIGATE |
|
static int |
NON_RECORDING |
|
static int |
NON_RECORDING_WAIT |
|
static int |
PLAY |
|
static int |
PLAY_BEEP |
|
static int |
PLAY_PROMPT |
|
static int |
PLAY_PROMPT_PREVIEW |
|
static int |
PLAYPAUSE |
|
static int |
POSTRECWAITING |
|
static int |
PRERECWAITING |
|
static int |
PROCESSING |
|
static int |
RECORDED |
|
static int |
RECORDING |
|
static int |
STOPPING_PLAY |
|
static int |
TERMINATE |
Modifier and Type | Method | Description |
---|---|---|
void |
attach(RecObserver ro) |
registers a recording listener for the recording status instance
|
void |
detach(RecObserver ro) |
removes a recording listener from the recording status instance
|
static RecStatus |
getInstance() |
creates a singleton RecStatus object
|
int |
getStatus() |
retrieves the current recording status
|
static java.lang.String |
getStatusName(int status) |
|
void |
notifyStatusChange(int status) |
notifies the recording listeners attached to the recording status instance
that a status change has occurred.
|
void |
setStatus(int status) |
sets the status to the given new status.
|
public static final int INIT
public static final int IDLE
public static final int NON_RECORDING
public static final int PLAY_PROMPT_PREVIEW
public static final int PLAY_PROMPT
public static final int PLAY_BEEP
public static final int NON_RECORDING_WAIT
public static final int PRERECWAITING
public static final int RECORDING
public static final int POSTRECWAITING
public static final int RECORDED
public static final int ANNOTATE
public static final int NAVIGATE
public static final int PLAY
public static final int PLAYPAUSE
public static final int STOPPING_PLAY
public static final int PROCESSING
public static final int TERMINATE
public static final int CLOSE
public static final int ERROR
public static final int ITEM_ERROR
public static final int MIN_STATUS_NUMBER
public static RecStatus getInstance()
public void setStatus(int status)
status
- new statuspublic void notifyStatusChange(int status)
notifyStatusChange
in interface RecSubject
status
- new status that is sent to all listenerspublic static java.lang.String getStatusName(int status)
public int getStatus()
public void attach(RecObserver ro)
attach
in interface RecSubject
ro
- recording listener to be notifiedpublic void detach(RecObserver ro)
detach
in interface RecSubject
ro
- recording listener to be removed