Update of /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/manager/event
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10878/src/java/net/sf/asterisk/manager/event
Added Files:
HoldEvent.java UnholdEvent.java
Log Message:
Added HoldEvent and UnholdEvent (AJ-8)
--- NEW FILE: HoldEvent.java ---
/*
* Copyright 2004-2005 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 net.sf.asterisk.manager.event;
/**
* A HoldEvent is triggered by the SIP channel driver when a channel is put on
* hold.<br>
* It is implemented in <code>channels/chan_sip.c</code>.<br>
* Available since Asterisk 1.2
*
* @see net.sf.asterisk.manager.event.UnholdEvent
* @author srt
* @version $Id: HoldEvent.java,v 1.1 2005/08/27 11:20:24 srt Exp $
* @since 0.2
*/
public abstract class HoldEvent extends ManagerEvent
{
/**
* Serializable version identifier
*/
static final long serialVersionUID = 5906599407896179295L;
/**
* The name of the channel.
*/
private String channel;
/**
* The unique id of the channel.
*/
private String uniqueId;
/**
* Creates a new HoldEvent.
*
* @param source
*/
public HoldEvent(Object source)
{
super(source);
}
/**
* Returns the name of the channel.
*/
public String getChannel()
{
return channel;
}
/**
* Sets the name of the channel.
*/
public void setChannel(String channel)
{
this.channel = channel;
}
/**
* Returns the unique id of the channel.
*/
public String getUniqueId()
{
return uniqueId;
}
/**
* Sets the unique id of the channel.
*/
public void setUniqueId(String uniqueId)
{
this.uniqueId = uniqueId;
}
}
--- NEW FILE: UnholdEvent.java ---
/*
* Copyright 2004-2005 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 net.sf.asterisk.manager.event;
/**
* An UnholdEvent is triggered by the SIP channel driver when a channel is no
* longer put on hold.<br>
* It is implemented in <code>channels/chan_sip.c</code>.<br>
* Available since Asterisk 1.2
*
* @see net.sf.asterisk.manager.event.HoldEvent
* @author srt
* @version $Id: UnholdEvent.java,v 1.1 2005/08/27 11:20:24 srt Exp $
* @since 0.2
*/
public abstract class UnholdEvent extends ManagerEvent
{
/**
* Serializable version identifier
*/
static final long serialVersionUID = 5906599407896179295L;
/**
* The name of the channel.
*/
private String channel;
/**
* The unique id of the channel.
*/
private String uniqueId;
/**
* Creates a new UnholdEvent.
*
* @param source
*/
public UnholdEvent(Object source)
{
super(source);
}
/**
* Returns the name of the channel.
*/
public String getChannel()
{
return channel;
}
/**
* Sets the name of the channel.
*/
public void setChannel(String channel)
{
this.channel = channel;
}
/**
* Returns the unique id of the channel.
*/
public String getUniqueId()
{
return uniqueId;
}
/**
* Sets the unique id of the channel.
*/
public void setUniqueId(String uniqueId)
{
this.uniqueId = uniqueId;
}
}
|