Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2007-06-21 19:00:57 -0400
committerslewis2007-06-21 19:00:57 -0400
commit274463ce20c484b594ba227f2dc1078215afcb17 (patch)
tree60712056af13c20e22055aefdcf6725698bc03c1
parent21ac517971b14394ad99c1285802302d2acda1fc (diff)
downloadorg.eclipse.ecf-274463ce20c484b594ba227f2dc1078215afcb17.tar.gz
org.eclipse.ecf-274463ce20c484b594ba227f2dc1078215afcb17.tar.xz
org.eclipse.ecf-274463ce20c484b594ba227f2dc1078215afcb17.zip
Added to telephony.call API the getCallSessionState method on ICallSessionRequestEvent.
-rw-r--r--framework/bundles/org.eclipse.ecf.telephony.call/src/org/eclipse/ecf/telephony/call/CallException.java24
-rw-r--r--framework/bundles/org.eclipse.ecf.telephony.call/src/org/eclipse/ecf/telephony/call/events/ICallSessionRequestEvent.java12
2 files changed, 36 insertions, 0 deletions
diff --git a/framework/bundles/org.eclipse.ecf.telephony.call/src/org/eclipse/ecf/telephony/call/CallException.java b/framework/bundles/org.eclipse.ecf.telephony.call/src/org/eclipse/ecf/telephony/call/CallException.java
index 2b173cdc9..55726f160 100644
--- a/framework/bundles/org.eclipse.ecf.telephony.call/src/org/eclipse/ecf/telephony/call/CallException.java
+++ b/framework/bundles/org.eclipse.ecf.telephony.call/src/org/eclipse/ecf/telephony/call/CallException.java
@@ -20,6 +20,7 @@ import org.eclipse.ecf.core.util.ECFException;
public class CallException extends ECFException {
private static final long serialVersionUID = -4189098435363433141L;
+ private CallSessionState callSessionState;
public CallException() {
}
@@ -31,6 +32,10 @@ public class CallException extends ECFException {
super(message);
}
+ public CallException(String message, CallSessionState state) {
+ super(message);
+ this.callSessionState = state;
+ }
/**
* @param cause
*/
@@ -38,6 +43,11 @@ public class CallException extends ECFException {
super(cause);
}
+ public CallException(Throwable cause, CallSessionState state) {
+ super(cause);
+ this.callSessionState = state;
+ }
+
/**
* @param message
* @param cause
@@ -46,7 +56,21 @@ public class CallException extends ECFException {
super(message, cause);
}
+ public CallException(String message, Throwable cause, CallSessionState state) {
+ super(message, cause);
+ this.callSessionState = state;
+ }
+
public CallException(IStatus status) {
super(status);
}
+
+ public CallException(IStatus status, CallSessionState state) {
+ super(status);
+ this.callSessionState = state;
+ }
+
+ public CallSessionState getCallSessionState() {
+ return this.callSessionState;
+ }
}
diff --git a/framework/bundles/org.eclipse.ecf.telephony.call/src/org/eclipse/ecf/telephony/call/events/ICallSessionRequestEvent.java b/framework/bundles/org.eclipse.ecf.telephony.call/src/org/eclipse/ecf/telephony/call/events/ICallSessionRequestEvent.java
index 09119327f..2c5a62503 100644
--- a/framework/bundles/org.eclipse.ecf.telephony.call/src/org/eclipse/ecf/telephony/call/events/ICallSessionRequestEvent.java
+++ b/framework/bundles/org.eclipse.ecf.telephony.call/src/org/eclipse/ecf/telephony/call/events/ICallSessionRequestEvent.java
@@ -15,6 +15,7 @@ import java.util.Map;
import org.eclipse.ecf.core.identity.ID;
import org.eclipse.ecf.telephony.call.CallException;
+import org.eclipse.ecf.telephony.call.CallSessionState;
import org.eclipse.ecf.telephony.call.ICallSession;
import org.eclipse.ecf.telephony.call.ICallSessionListener;
@@ -54,6 +55,17 @@ public interface ICallSessionRequestEvent {
public Map getProperties();
/**
+ * Get CallSessionState for this request. Typically, the returned
+ * CallSessionState instance will be {@link CallSessionState#PENDING},
+ * meaning that the call is pending subsequent acceptance by this request
+ * listener (via athe {@link #accept(ICallSessionListener, Map)} call. Can
+ * be other values, however, depending upon the actual call state.
+ *
+ * @return CallSessionState the
+ */
+ public CallSessionState getCallSessionState();
+
+ /**
* Accept the incoming call request. If the call is to be answered,
* receivers of this event should call this method and provide the
* appropriate listener and optional properties. Either this method or the

Back to the top