From 7ae21709bb6dbdc092052acb5098bfa5cb316d9e Mon Sep 17 00:00:00 2001
From: kenneth_suter <kenneth_suter@localhost>
Date: Thu, 29 Mar 2007 15:09:14 +0000
Subject: [PATCH] These refactorings are essential in anticipation of a new quicksetup application for the upgrader feature (issue 598).  These changes were reviewed by Josu. 

---
 opends/src/quicksetup/org/opends/quicksetup/ProgressStep.java |   27 ++++++++++++++++-----------
 1 files changed, 16 insertions(+), 11 deletions(-)

diff --git a/opends/src/quicksetup/org/opends/quicksetup/event/UninstallProgressUpdateListener.java b/opends/src/quicksetup/org/opends/quicksetup/ProgressStep.java
similarity index 67%
rename from opends/src/quicksetup/org/opends/quicksetup/event/UninstallProgressUpdateListener.java
rename to opends/src/quicksetup/org/opends/quicksetup/ProgressStep.java
index 39a41ee..8d2243c 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/event/UninstallProgressUpdateListener.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/ProgressStep.java
@@ -25,20 +25,25 @@
  *      Portions Copyright 2006-2007 Sun Microsystems, Inc.
  */
 
-package org.opends.quicksetup.event;
+package org.opends.quicksetup;
 
 /**
- * Interface that implement the objects that want to receive notifications of
- * updates in the uninstallation progress.
- *
+ * Interface describing the different installation steps in which we can
+ * be.
  */
-public interface UninstallProgressUpdateListener
-{
+public interface ProgressStep {
+
   /**
-   * Method called when an update in the uninstallation progress occurs.
-   *
-   * @param ev the UninstallProgressUpdateEvent describing the update that
-   * occurred in the installation progress.
+   * Indicates whether this Progress step is a final step.
+   * @return true if this is a final step
    */
-  public void progressUpdate(UninstallProgressUpdateEvent ev);
+  boolean isLast();
+
+  /**
+   * Indicates whether this Progress step is arrived at
+   * through an error in the application.
+   * @return true if this is an error step
+   */
+  boolean isError();
+
 }

--
Gitblit v1.10.0