text: //
  //  MZOperationsController.h
  //  MetaZ
  //
  //  Created by Brian Olsen on 19/01/10.
  //  Copyright 2010 Maven-Group. All rights reserved.
  //
  
  #import <Cocoa/Cocoa.h>
  #import <MetaZKit/MZDataProviderPlugin.h>
  
  @interface MZOperationsController : NSObject <MZDataController>
  {
      NSArray* operations;
      NSError* error;
      BOOL finished;
      BOOL cancelled;
  }
  @property(readonly,copy) NSArray* operations;
  @property(retain) NSError* error;
  @property(getter=isFinished,assign) BOOL finished;
  @property(getter=isCancelled,assign) BOOL cancelled;
  
  - (void)addOperation:(NSOperation *)operation;
  - (void)removeOperation:(NSOperation *)operation;
  
  - (void)cancel;
  //- (void)waitUntilFinished;
  - (void)addOperationsToQueue:(NSOperationQueue*)queue;
  
  - (void)operationsFinished;
  
  @end
  