net.sf.asterisk.manager.event
Class MessageWaitingEvent

java.lang.Object
  extended by java.util.EventObject
      extended by net.sf.asterisk.manager.event.ManagerEvent
          extended by net.sf.asterisk.manager.event.MessageWaitingEvent
All Implemented Interfaces:
java.io.Serializable

public class MessageWaitingEvent
extends ManagerEvent

A MessageWaitingEvent is triggered when someone leaves voicemail.
It is implemented in apps/app_voicemail.c

Version:
$Id: MessageWaitingEvent.java,v 1.3 2005/08/27 03:33:34 srt Exp $
Author:
srt
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
MessageWaitingEvent(java.lang.Object source)
           
 
Method Summary
 java.lang.String getMailbox()
          Returns the name of the mailbox that has waiting messages.
The name of the mailbox is of the form numberOfMailbox@context, e.g.
 java.lang.Integer getNew()
          Returns the number of new messages in this mailbox.
 java.lang.Integer getOld()
          Returns the number of old messages in this mailbox.
 java.lang.Integer getWaiting()
          Returns the number of new messages in the mailbox.
 void setMailbox(java.lang.String mailbox)
          Sets the name of the mailbox that has waiting messages.
 void setNew(java.lang.Integer newMessages)
          Sets the number of new messages in this mailbox.
 void setOld(java.lang.Integer oldMessages)
          Sets the number of old messages in this mailbox.
 void setWaiting(java.lang.Integer waiting)
          Sets the number of new messages in the mailbox.
 
Methods inherited from class net.sf.asterisk.manager.event.ManagerEvent
getDateReceived, getPrivilege, setDateReceived, setPrivilege, toString
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MessageWaitingEvent

public MessageWaitingEvent(java.lang.Object source)
Parameters:
source -
Method Detail

getMailbox

public java.lang.String getMailbox()
Returns the name of the mailbox that has waiting messages.
The name of the mailbox is of the form numberOfMailbox@context, e.g. 1234@default.

Returns:
the name of the mailbox that has waiting messages

setMailbox

public void setMailbox(java.lang.String mailbox)
Sets the name of the mailbox that has waiting messages.

Parameters:
mailbox - the name of the mailbox that has waiting messages

getWaiting

public java.lang.Integer getWaiting()
Returns the number of new messages in the mailbox.

Returns:
the number of new messages in the mailbox

setWaiting

public void setWaiting(java.lang.Integer waiting)
Sets the number of new messages in the mailbox.

Parameters:
waiting - the number of new messages in the mailbox

getNew

public java.lang.Integer getNew()
Returns the number of new messages in this mailbox.

Returns:
the number of new messages in this mailbox.
Since:
0.2

setNew

public void setNew(java.lang.Integer newMessages)
Sets the number of new messages in this mailbox.

Parameters:
newMessages - the number of new messages in this mailbox.
Since:
0.2

getOld

public java.lang.Integer getOld()
Returns the number of old messages in this mailbox.

Returns:
the number of old messages in this mailbox.
Since:
0.2

setOld

public void setOld(java.lang.Integer oldMessages)
Sets the number of old messages in this mailbox.

Parameters:
oldMessages - the number of old messages in this mailbox.
Since:
0.2


Copyright © 2004-2005 Stefan Reuter. All Rights Reserved.