0
|
1 |
/*
|
|
2 |
* Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description:
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
package com.nokia.s60tools.appdep.core.job;
|
|
20 |
|
|
21 |
import com.nokia.s60tools.util.exceptions.JobCancelledByUserException;
|
|
22 |
|
|
23 |
/**
|
|
24 |
* Notification interface for informing jobs progress status.
|
|
25 |
*/
|
|
26 |
public interface IJobProgressStatus {
|
|
27 |
/**
|
|
28 |
* Reports progress of a batch process like
|
|
29 |
* execution. It depends on the invoked command
|
|
30 |
* if any progress information can be gained.
|
|
31 |
* @param percentage Progress percentage.
|
|
32 |
* @param processedItem Item that is currently under processing.
|
|
33 |
* @throws JobCancelledByUserException
|
|
34 |
*/
|
|
35 |
public void progress(int percentage, String processedItem) throws JobCancelledByUserException;
|
|
36 |
|
|
37 |
/**
|
|
38 |
* Checks if job has been cancelld by the user.
|
|
39 |
* @return Returns <code>true</code> if jobs has been cancelled by user,
|
|
40 |
* otherwise <code>false</code>.
|
|
41 |
*/
|
|
42 |
public boolean isCanceled();
|
|
43 |
}
|