| package org.eclipse.update.core; |
| /* |
| * (c) Copyright IBM Corp. 2000, 2002. |
| * All Rights Reserved. |
| */ |
| |
| /** |
| * Verification listener. This interface abstract the user interaction |
| * that may be required as a result of feature installation. In particular, |
| * as feature archives are downloaded and verified, the user may need to |
| * indicate whether to accept any one of the archives, or abort the |
| * installation. |
| * <p> |
| * Clients may implement this interface. |
| * </p> |
| * @see org.eclipse.update.core.IVerificationResult |
| * @see org.eclipse.update.core.IVerifier |
| * @since 2.0 |
| */ |
| |
| public interface IVerificationListener { |
| |
| /** |
| * Indicate the action that resulted in this notification should be aborted. |
| * |
| * @since 2.0 |
| */ |
| public static final int CHOICE_ABORT = 0; |
| |
| /** |
| * Indicate there was an error in processing the request. |
| * The action that resulted in this notification should be aborted. |
| * |
| * @since 2.0 |
| */ |
| public static final int CHOICE_ERROR = 1; |
| |
| /** |
| * Indicate that the target of the verification should be accepted, |
| * but the information supplied with the verification result |
| * should be trusted only for this request. |
| * |
| * @since 2.0 |
| */ |
| public static final int CHOICE_INSTALL_TRUST_ONCE = 2; |
| |
| /** |
| * Indicate that the target of the verification should be accepted, |
| * and the information supplied with the verification result |
| * should be trusted for this request, and subsequent requests. |
| * |
| * @since 2.0 |
| */ |
| public static final int CHOICE_INSTALL_TRUST_ALWAYS = 3; |
| |
| /** |
| * Determine if we should continue with the current action |
| * based on the indicated verification results. Typically, |
| * the implementation of this method will prompt the user |
| * for the appropriate answer. However, other respose |
| * implementations can be provided. |
| * |
| * @param result verification result |
| * @since 2.0 |
| */ |
| public int prompt(IVerificationResult result); |
| } |