예제 #1
0
 /** {@inheritDoc} */
 public void telephonyMediaEvent(final TelephonyEvent event) {
   LOGGER.debug("event :" + event);
   final Collection<TelephonyListener> tmp =
       new java.util.ArrayList<TelephonyListener>(callControlListeners);
   for (TelephonyListener listener : tmp) {
     listener.telephonyCallAnswered(event);
   }
 }
예제 #2
0
 /** Inform the {@link TelephonyListener} about a hangup event. */
 protected void fireHangedUpEvent() {
   final Collection<TelephonyListener> tmp =
       new java.util.ArrayList<TelephonyListener>(callControlListeners);
   final TelephonyEvent event = new TelephonyEvent(this, TelephonyEvent.HUNGUP);
   for (TelephonyListener listener : tmp) {
     listener.telephonyCallHungup(event);
   }
 }
예제 #3
0
 /** Inform the {@link TelephonyListener} about a record stopped event. */
 protected void fireRecordStoppedEvent() {
   final Collection<TelephonyListener> tmp =
       new java.util.ArrayList<TelephonyListener>(callControlListeners);
   final TelephonyEvent event = new TelephonyEvent(this, TelephonyEvent.RECORD_STOPPED);
   for (TelephonyListener listener : tmp) {
     listener.telephonyMediaEvent(event);
   }
 }
예제 #4
0
 /** Inform the {@link TelephonyListener} about a play started event. */
 protected void firePlayEvent() {
   final Collection<TelephonyListener> tmp =
       new java.util.ArrayList<TelephonyListener>(callControlListeners);
   final TelephonyEvent event = new TelephonyEvent(this, TelephonyEvent.PLAY_STARTED);
   for (TelephonyListener listener : tmp) {
     listener.telephonyMediaEvent(event);
   }
 }
예제 #5
0
 /**
  * Inform the {@link TelephonyListener} about a play stopped event.
  *
  * @param uri destination URI of the trasfer.
  */
 protected void fireTransferEvent(final String uri) {
   final Collection<TelephonyListener> tmp =
       new java.util.ArrayList<TelephonyListener>(callControlListeners);
   final TelephonyEvent event = new TelephonyEvent(this, TelephonyEvent.TRANSFERRED, uri);
   for (TelephonyListener listener : tmp) {
     listener.telephonyCallTransferred(event);
   }
 }
예제 #6
0
 /** Inform the {@link TelephonyListener} about an answered event. */
 protected void fireAnswerEvent() {
   final Collection<TelephonyListener> tmp =
       new java.util.ArrayList<TelephonyListener>(callControlListeners);
   final TelephonyEvent event = new TelephonyEvent(this, TelephonyEvent.ANSWERED);
   for (TelephonyListener listener : tmp) {
     listener.telephonyCallAnswered(event);
   }
 }
예제 #7
0
 /** {@inheritDoc} */
 @Override
 public void telephonyError(final ErrorEvent error) {
   LOGGER.debug("ErrorEvent :" + error);
   final Collection<TelephonyListener> tmp =
       new java.util.ArrayList<TelephonyListener>(callControlListeners);
   for (TelephonyListener listener : tmp) {
     listener.telephonyError(error);
   }
 }