Update of /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/manager
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30600/src/java/net/sf/asterisk/manager
Modified Files:
Channel.java
Log Message:
added wasLinked attribute
Index: Channel.java
===================================================================
RCS file: /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/manager/Channel.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -p -r1.10 -r1.11
--- Channel.java 15 Aug 2005 12:34:13 -0000 1.10
+++ Channel.java 16 Aug 2005 00:43:58 -0000 1.11
@@ -77,6 +77,11 @@ public class Channel implements Serializ
private Channel linkedChannel;
/**
+ * Indicates if this channel was linked to another channel at least once.
+ */
+ private boolean wasLinked;
+
+ /**
* Creates a new Channel.
*
* @param name name of this channel, for example "SIP/1310-20da".
@@ -354,6 +359,21 @@ public class Channel implements Serializ
public final void setLinkedChannel(final Channel linkedChannel)
{
this.linkedChannel = linkedChannel;
+ if (linkedChannel != null)
+ {
+ this.wasLinked = true;
+ }
+ }
+
+ /**
+ * Indicates if this channel was linked to another channel at least once.
+ *
+ * @return <code>true</code> if this channel was linked to another channel
+ * at least once, <code>false</code> otherwise.
+ */
+ public final boolean getWasLinked()
+ {
+ return wasLinked;
}
public String toString()
|