/*
 *  Copyright 2004-2006 Stefan Reuter
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 *
 */
package org.asteriskjava.manager.event;

/**
 * A VarSetEvent is triggered when a channel or global variable is set in Asterisk.<p>
 * Available since Asterisk 1.6<p>
 * It is implemented in <code>main/pbx.c</code>
 *
 * @author srt
 * @version $Id$
 * @since 1.0.0
 */
public class VarSetEvent extends ManagerEvent
{
    static final long serialVersionUID = 1L;

    private String channel;
    private String uniqueId;
    private String variable;
    private String value;

    public VarSetEvent(Object source)
    {
        super(source);
    }

    /**
     * Returns the name of the channel or <code>null</code> for global variables.
     *
     * @return the name of the channel or <code>null</code> for global variables.
     */
    public String getChannel()
    {
        return channel;
    }

    public void setChannel(String channel)
    {
        this.channel = channel;
    }

    /**
     * Returns the unique id of the channel or <code>null</code> for global variables.
     *
     * @return the unique id of the channel or <code>null</code> for global variables.
     */
    public String getUniqueId()
    {
        return uniqueId;
    }

    public void setUniqueId(String uniqueId)
    {
        this.uniqueId = uniqueId;
    }

    /**
     * Returns the name of the variable that has been set.
     *
     * @return the name of the variable that has been set.
     */
    public String getVariable()
    {
        return variable;
    }

    public void setVariable(String variable)
    {
        this.variable = variable;
    }

    /**
     * Returns the new value of the variable.
     *
     * @return the new value of the variable.
     */
    public String getValue()
    {
        return value;
    }

    public void setValue(String value)
    {
        this.value = value;
    }
}
@@ -1084,16 +1084,344 @@
  value;%0A
+    private String channelstatedesc;%0A    private String calleridname;%0A    private String language;%0A    private String exten;%0A    private String calleridnum;%0A    private String context;%0A    private String connectedlinenum;%0A    private String connectedlinename;%0A    private Integer priority;%0A    private Integer channelstate;%0A    
 %0A    pub
@@ -2749,10 +2749,1746 @@
 e;%0A    %7D
+%0A%0A    public String getChannelstatedesc() %7B%0A        return channelstatedesc;%0A    %7D%0A%0A    public void setChannelstatedesc(String channelstatedesc) %7B%0A        this.channelstatedesc = channelstatedesc;%0A    %7D%0A%0A    public String getCalleridname() %7B%0A        return calleridname;%0A    %7D%0A%0A    public void setCalleridname(String calleridname) %7B%0A        this.calleridname = calleridname;%0A    %7D%0A%0A    public String getLanguage() %7B%0A        return language;%0A    %7D%0A%0A    public void setLanguage(String language) %7B%0A        this.language = language;%0A    %7D%0A%0A    public String getExten() %7B%0A        return exten;%0A    %7D%0A%0A    public void setExten(String exten) %7B%0A        this.exten = exten;%0A    %7D%0A%0A    public String getCalleridnum() %7B%0A        return calleridnum;%0A    %7D%0A%0A    public void setCalleridnum(String calleridnum) %7B%0A        this.calleridnum = calleridnum;%0A    %7D%0A%0A    public String getContext() %7B%0A        return context;%0A    %7D%0A%0A    public void setContext(String context) %7B%0A        this.context = context;%0A    %7D%0A%0A    public String getConnectedlinenum() %7B%0A        return connectedlinenum;%0A    %7D%0A%0A    public void setConnectedlinenum(String connectedlinenum) %7B%0A        this.connectedlinenum = connectedlinenum;%0A    %7D%0A%0A    public String getConnectedlinename() %7B%0A        return connectedlinename;%0A    %7D%0A%0A    public void setConnectedlinename(String connectedlinename) %7B%0A        this.connectedlinename = connectedlinename;%0A    %7D%0A%0A    public Integer getPriority() %7B%0A        return priority;%0A    %7D%0A%0A    public void setPriority(Integer priority) %7B%0A        this.priority = priority;%0A    %7D%0A%0A    public Integer getChannelstate() %7B%0A        return channelstate;%0A    %7D%0A%0A    public void setChannelstate(Integer channelstate) %7B%0A        this.channelstate = channelstate;%0A    %7D
 %0A%7D

changes for asterisk 13