/******************************************************************************* * Copyright (c) 2012 Zend Technologies Ltd. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html *******************************************************************************/ package org.zend.php.zendserver.monitor.core; import org.eclipse.jface.operation.IRunnableWithProgress; import org.zend.sdklib.monitor.IZendIssue; /** * Implementors should provide user interface part for notifying user about * server events. * * @author Wojciech Galanciak, 2012 * */ public interface INotificationProvider { /** * Displays notification for event retrieved from a server. * * @param issue * Zend Server issue * @param targetId * target id * @param eventSource * source of the event * @param delay * time after which notification will be closed automatically; if * <code>0</code> then it will not hide automatically * @param actionsAvailable * if <code>true</code> then "Repeat" and "Codetrace" actions * will be visible */ void showNonification(IZendIssue issue, String targetId, IEventDetails eventSource, int delay, int actionsAvailable); /** * Displays progress notification. * * @param title * notification title * @param message * initial notification message * @param runnable * process which should be run */ void showProgress(String title, String message, IRunnableWithProgress runnable); /** * Displays error message when something goes wrong during monitoring * initialization or event processing. * * @param title * error title * @param message * error message */ void showErrorMessage(String title, String message); }