home *** CD-ROM | disk | FTP | other *** search
/ NOVA - For the NeXT Workstation / NOVA - For the NeXT Workstation.iso / Apps / ArchiveUtils / Freeze / ProcessControl.h < prev    next >
Encoding:
Text File  |  1992-12-20  |  2.2 KB  |  74 lines

  1. /*
  2.  *    Filename:    ProcessControl.h 
  3.  *    Created :    Sat Dec 21 00:23:43 1991 
  4.  *    Author  :    Vince DeMarco
  5.  *        <vince@whatnxt.cuc.ab.ca>
  6.  */
  7.  
  8.  
  9. /* ProcessControl.h - Object to control Background processes
  10.    Copyright (C) 1990 Free Software Foundation, Inc.
  11.  
  12.    This program is free software; you can redistribute it and/or modify
  13.    it under the terms of the GNU General Public License as published by
  14.    the Free Software Foundation; either version 2, or (at your option)
  15.    any later version.
  16.  
  17.    This program is distributed in the hope that it will be useful,
  18.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  19.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  20.    GNU General Public License for more details.
  21.  
  22.    You should have received a copy of the GNU General Public License
  23.    along with this program; if not, write to the Free Software
  24.    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  25.  
  26. /* Generated by Interface Builder */
  27.  
  28. #import <objc/Object.h>
  29. #import <appkit/graphics.h>
  30. #import <dpsclient/dpsclient.h>
  31. #import "thread.h"
  32.  
  33. @interface ProcessControl:Object
  34. {
  35.     id               browser;         //
  36.     id               circSlider;      //
  37.     id             textfield;       // file currently processing 
  38.     id             procfield;       // Weather freezeing or melting file 
  39.  
  40.     double         updatetime;
  41.     DPSTimedEntry  updateTimedEntry;// Timed entry that updates above objects
  42.  
  43.     id             window;          // Background Process Window
  44.     int            buffer_count;    // Last count of number of background procs
  45.  
  46.     buffer_t       buffer;          // Buffer where info about background proccess is kept
  47.     cthread_t      consumer_thread; // Consumer process thread
  48. }
  49.  
  50. - init;
  51. - free;
  52.  
  53. - setupdateTime:(double)value;
  54. - (double)updateTime;
  55.  
  56. - displayProcesses:sender;
  57.  
  58. - addFile:(char *)filename;
  59. - addDirectory: (char *)dirname;
  60. - (BOOL)backgroundjobs;
  61. - killBackground:sender;
  62.  
  63. /* Update the browser, circSlider, textfield, and procfield in window */
  64. - update:sender;
  65.  
  66. /* BROWSER DELEGATE METHODS */
  67. - browser:sender loadCell:cell atRow:(int)row inColumn:(int)column;
  68. - (int)browser:sender getNumRowsInColumn:(int)column;
  69.  
  70. /* WINDOW DELEGATE METHODS */
  71. - windowWillResize:sender toSize:(NXSize *)frameSize;
  72.  
  73. @end
  74.