source: trunk/Cocoa/F-Script Anywhere/Source/DeVercruesseProcess.h@ 7

Last change on this file since 7 was 7, checked in by Nicholas Riley, 20 years ago

F-Script Anywhere 1.1.2a1

File size: 2.0 KB
Line 
1//
2// DeVercruesseProcess.h
3//
4// Created by Frank Vercruesse on Wed Apr 04 2001.
5// Copyright (c) 2001 Frank Vercruesse.
6//
7//
8// This program is free software; you can redistribute it and/or
9// modify it under the terms of the GNU General Public License
10// as published by the Free Software Foundation; either version 2
11// of the License, or (at your option) any later version.
12//
13// This program is distributed in the hope that it will be useful,
14// but WITHOUT ANY WARRANTY; without even the implied warranty of
15// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16// GNU General Public License for more details.
17//
18// You should have received a copy of the GNU General Public License
19// along with this program; if not, write to the Free Software
20// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
21// 02111-1307, USA.
22
23#import <Cocoa/Cocoa.h>
24#import <Carbon/Carbon.h>
25#import "CPS.h"
26
27
28@interface DeVercruesseProcess : NSObject
29{
30 ProcessSerialNumber psn;
31
32 UInt32 pid,
33 flavour,
34 attributes,
35 type,
36 creator;
37
38 NSString *bundleIdentifier;
39 NSString *identifier;
40 NSString *loc;
41 NSString *name;
42 NSImage *img;
43 NSImage *cachedImage;
44}
45
46+ (id)processWithPSN:(ProcessSerialNumber*)sn;
47
48- (id)initWithPSN:(ProcessSerialNumber*)sn;
49
50- (NSString *)executableLoc;
51- (NSString*)loc;
52- (NSString*)name;
53- (NSImage*)img;
54- (NSImage *)cachedImage;
55- (void)setCachedImage:(NSImage *)anImage;
56
57- (ProcessSerialNumber*)psn;
58- (UInt32)pid;
59- (UInt32)flavour;
60- (UInt32)attributes;
61- (UInt32)type;
62- (UInt32)creator;
63- (NSString*)bundleIdentifier;
64- (NSString*)identifier;
65
66- (BOOL)isEqualToCurrent;
67- (BOOL)isEqualToFront;
68
69- (BOOL)isStillRunning;
70
71- (BOOL)isBackgroundOnly;
72- (BOOL)isHidden;
73
74- (BOOL)isClassic;
75- (BOOL)isCarbon;
76- (BOOL)isCocoa;
77
78- (void)show;
79- (void)hide;
80
81- (void)makeFront;
82
83- (void)kill;
84- (void)kill:(BOOL)hard;
85
86@end
Note: See TracBrowser for help on using the repository browser.