JAL-3878 Separate gui elements from operations.
[jalview.git] / src / jalview / ws2 / WebServiceWorkerI.java
index 22b4c73..38c82a2 100644 (file)
@@ -3,11 +3,13 @@ package jalview.ws2;
 import java.io.IOException;
 import java.util.List;
 
+import jalview.ws2.utils.WSJobList;
+
 public interface WebServiceWorkerI extends PollableTaskI
-{
+{  
   long getUID();
 
-  List<WSJob> getJobs();
+  WSJobList getJobs();
 
   void start() throws IOException;
 
@@ -32,4 +34,6 @@ public interface WebServiceWorkerI extends PollableTaskI
    * either normally or exceptionally.
    */
   void done();
+  
+  public void addListener(WebServiceWorkerListener listener);
 }