/*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
*
* Copyright @ 2015 Atlassian Pty Ltd
*
* 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.java.sip.communicator.service.callhistory.event;
import java.util.*;
/**
* A "ProgressEvent" event gets delivered through the search process
* of CallHistoryService Service.
* The event is wrapper around the generated event from the History Service
*
* @author Damian Minkov
*/
public class ProgressEvent
extends java.util.EventObject
{
/**
* Serial version UID.
*/
private static final long serialVersionUID = 0L;
/**
* The ProgressEvent.
*/
private net.java.sip.communicator.service.history.event.ProgressEvent evt;
/**
* The current progress that we will pass.
*/
private int progress = 0;
/**
* Constructor.
*
* @param source source object
* @param evt the ProgressEvent
* @param progress initial progress value
*/
public ProgressEvent(
Object source,
net.java.sip.communicator.service.history.event.ProgressEvent evt,
int progress)
{
super(source);
this.evt = evt;
this.progress = progress;
}
/**
* Gets the current progress that will be fired.
* @return int the progress value
*/
public int getProgress()
{
return progress;
}
/**
* The end date in the search condition.
* @return Date end date value
*/
public Date getEndDate()
{
return evt.getEndDate();
}
/**
* The start date in the search condition.
* @return Date start date value
*/
public Date getStartDate()
{
return evt.getStartDate();
}
/**
* Sets the progress that will be fired
* @param progress int progress value
*/
public void setProgress(int progress)
{
this.progress = progress;
}
}