]> err.no Git - sope/blob - libFoundation/Foundation/NSTask.h
fixed some NGMail framework build issue
[sope] / libFoundation / Foundation / NSTask.h
1 /* 
2    NSTask.h
3
4    Copyright (C) 1995, 1996, 1997 Ovidiu Predescu and Mircea Oancea.
5    All rights reserved.
6
7    Author: Ovidiu Predescu <ovidiu@net-community.com>
8
9    Based on the code written by Aleksandr Savostyanov <sav@conextions.com>.
10
11    This file is part of libFoundation.
12
13    Permission to use, copy, modify, and distribute this software and its
14    documentation for any purpose and without fee is hereby granted, provided
15    that the above copyright notice appear in all copies and that both that
16    copyright notice and this permission notice appear in supporting
17    documentation.
18
19    We disclaim all warranties with regard to this software, including all
20    implied warranties of merchantability and fitness, in no event shall
21    we be liable for any special, indirect or consequential damages or any
22    damages whatsoever resulting from loss of use, data or profits, whether in
23    an action of contract, negligence or other tortious action, arising out of
24    or in connection with the use or performance of this software.
25 */
26
27 #ifndef __NSTask_h__
28 #define __NSTask_h__
29
30 #include <Foundation/NSObject.h>
31
32 @class NSString, NSArray, NSDictionary, NSFileHandle;
33
34 LF_EXPORT NSString *NSTaskDidTerminateNotification;
35
36 @interface NSTask : NSObject
37
38 + (NSTask *)launchedTaskWithLaunchPath:(NSString *)path
39   arguments:(NSArray *)arguments;
40
41 - (void)setLaunchPath:(NSString *)path;
42 - (void)setArguments:(NSArray *)arguments;
43 - (void)setEnvironment:(NSDictionary *)dict;
44 - (void)setCurrentDirectoryPath:(NSString *)path;
45
46 - (void)setStandardInput:(id)input;
47 - (void)setStandardOutput:(id)output;
48 - (void)setStandardError:(id)error;
49
50 - (NSString *)launchPath;
51 - (NSArray *)arguments;
52 - (NSDictionary *)environment;
53 - (NSString *)currentDirectoryPath;
54
55 - (id)standardInput;
56 - (id)standardOutput;
57 - (id)standardError;
58
59 - (void)launch;
60 - (void)terminate;
61 - (void)interrupt;
62 - (BOOL)isRunning;
63 - (int)terminationStatus;
64 - (void)waitUntilExit;
65
66 - (unsigned int)processId;
67
68 @end
69
70 #endif /* __NSTask_h__ */
71
72 /*
73   Local Variables:
74   c-basic-offset: 4
75   tab-width: 8
76   End:
77 */