/**
 * Copyright 2008-2009 DRIVER PROJECT (Bielefeld University)
 * Original author: Marek Imialek <marek.imialek at uni-bielefeld.de>
 *
 * 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 eu.dnetlib.data.utility.download.constants;

/**
 * The Class DownloadServiceConstants.
 * 
 * @author <a href="mailto:marek.imialek at uni-bielefeld.de">Marek Imialek</a>
 * 
 */
public class DownloadServiceConstants {

	/** The Constant TEMPORARY_DOWNLOADED_FILE_SUFFIX. */
	public static final String TEMPORARY_DOWNLOADED_FILE_SUFFIX = 
		"-DOWNLOADING-NOT-COMPLETE";
	
	/** The Constant TEMPORARY_DOWNLOADED_ERROR_FILE_SUFFIX. */
	public static final String DOWNLOAD_ERROR_FILE_SUFFIX = 
		"-DOWNLOADING-ERROR";
	
	/** The Constant TEMPORARY_DOWNLOADED_CANCEL_FILE_SUFFIX. */
	public static final String DOWNLOAD_CANCEL_FILE_SUFFIX = 
		"-DOWNLOADING-CANCEL";
	
	/** The Constant TEMPORARY_DOWNLOADED_FILE_SUFFIX. */
	public static final String DOWNLOAD_XML_FILE_SUFFIX = 
		"-DOWNLOADING-XML";
	
	/** The status nams. */
	public static final String STATUS_NAMES[] = { "Downloading", "Paused",
			"Complete", "Cancelled", "Error" };

	/** The download status code */
	public static final int STATUS_DOWNLOADING = 0;
	
	/** The pause status code. */
	public static final int STATUS_PAUSED = 1;
	
	/** The complete status code. */
	public static final int STATUS_COMPLETE = 2;
	
	/** The cancell status code. */
	public static final int STATUS_CANCELLED = 3;
	
	/** The Constant ERROR. */
	public static final int STATUS_ERROR = 4;
	
	/** The duplication status code. */
	public static final int STATUS_DUPLICATION = 5;
	
	
}
