home *** CD-ROM | disk | FTP | other *** search
- /*
- * Filename: ProcessControl.h
- * Created : Sat Dec 21 00:23:43 1991
- * Author : Vince DeMarco
- * <vince@whatnxt.cuc.ab.ca>
- */
-
-
- /* ProcessControl.h - Object to control Background processes
- Copyright (C) 1990 Free Software Foundation, Inc.
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2, or (at your option)
- any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
-
- /* Generated by Interface Builder */
-
- #import <objc/Object.h>
- #import <appkit/graphics.h>
- #import <dpsclient/dpsclient.h>
- #import "thread.h"
-
- @interface ProcessControl:Object
- {
- id browser; //
- id circSlider; //
- id textfield; // file currently processing
- id procfield; // Weather freezeing or melting file
-
- double updatetime;
- DPSTimedEntry updateTimedEntry;// Timed entry that updates above objects
-
- id window; // Background Process Window
- int buffer_count; // Last count of number of background procs
-
- buffer_t buffer; // Buffer where info about background proccess is kept
- cthread_t consumer_thread; // Consumer process thread
- }
-
- - init;
- - free;
-
- - setupdateTime:(double)value;
- - (double)updateTime;
-
- - displayProcesses:sender;
-
- - addFile:(char *)filename;
- - addDirectory: (char *)dirname;
- - (BOOL)backgroundjobs;
- - killBackground:sender;
-
- /* Update the browser, circSlider, textfield, and procfield in window */
- - update:sender;
-
- /* BROWSER DELEGATE METHODS */
- - browser:sender loadCell:cell atRow:(int)row inColumn:(int)column;
- - (int)browser:sender getNumRowsInColumn:(int)column;
-
- /* WINDOW DELEGATE METHODS */
- - windowWillResize:sender toSize:(NXSize *)frameSize;
-
- @end
-