// Path: src/main/java/de/bayern/gdi/processor/ProcessorListener.java
// public interface ProcessorListener extends EventListener {
// 
//     /**
//      * Called if a message was sent during job execution.
//      * @param pe The event. pe.getMessage() returns the
//      * message.
//      */
//     void receivedMessage(ProcessorEvent pe);
// 
//     /**
//      * Called if the processing of a DownloadJob failed.
//      * @param pe The event. pe.getException() returns the
//      * thrown exception.
//      */
//     void processingFailed(ProcessorEvent pe);
// 
//     /**
//      * Called if the processing of a DownloadJob finished.
//      */
//     void processingFinished();
// }


import de.bayern.gdi.processor.ProcessorEvent;
import de.bayern.gdi.processor.ProcessorListener;
import de.bayern.gdi.utils.I18n;
import javafx.application.Platform;
import javax.inject.Inject;
import javax.inject.Named;
import javax.inject.Singleton;
/*
 * DownloadClient Geodateninfrastruktur Bayern
 *
 * (c) 2016 GSt. GDI-BY (gdi.bayern.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 de.bayern.gdi.gui.controller;



/**
 * Keeps track of download progression and errors.
 */
@Named
@Singleton
// Path: src/main/java/de/bayern/gdi/processor/ProcessorListener.java
// public interface ProcessorListener extends EventListener {
// 
//     /**
//      * Called if a message was sent during job execution.
//      * @param pe The event. pe.getMessage() returns the
//      * message.
//      */
//     void receivedMessage(ProcessorEvent pe);
// 
//     /**
//      * Called if the processing of a DownloadJob failed.
//      * @param pe The event. pe.getException() returns the
//      * thrown exception.
//      */
//     void processingFailed(ProcessorEvent pe);
// 
//     /**
//      * Called if the processing of a DownloadJob finished.
//      */
//     void processingFinished();
// }


// Path: src/main/java/de/bayern/gdi/gui/controller/DownloadListener.java
import de.bayern.gdi.processor.ProcessorEvent;
import de.bayern.gdi.processor.ProcessorListener;
import de.bayern.gdi.utils.I18n;
import javafx.application.Platform;
import javax.inject.Inject;
import javax.inject.Named;
import javax.inject.Singleton;

/*
 * DownloadClient Geodateninfrastruktur Bayern
 *
 * (c) 2016 GSt. GDI-BY (gdi.bayern.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 de.bayern.gdi.gui.controller;



/**
 * Keeps track of download progression and errors.
 */
@Named
@Singleton
public class DownloadListener implements ProcessorListener {