Fix a typo in SUAtomFeedParser.
[sparkle2.git] / BLAuthentication / BLAuthentication.h
blobbddb88a388f4f4269d31723cc9d7c8454fa60793
1 // ====================================================================== //
2 // BLAuthentication.h //
3 // //
4 // Last Modified on Tuesday April 24 2001 //
5 // Copyright 2001 Ben Lachman //
6 // //
7 // Thanks to Brian R. Hill <http://personalpages.tds.net/~brian_hill/> //
8 // ====================================================================== //
10 #import <Cocoa/Cocoa.h>
11 #import <Security/Authorization.h>
13 @interface BLAuthentication : NSObject
15 AuthorizationRef authorizationRef;
17 // returns a shared instance of the class
18 + sharedInstance;
19 // checks if user is authentcated forCommands
20 - (BOOL)isAuthenticated:(NSArray *)forCommands;
21 // authenticates user forCommands
22 - (BOOL)authenticate:(NSArray *)forCommands;
23 // deauthenticates user
24 - (void)deauthenticate;
25 // gets the pid forProcess
26 - (int)getPID:(NSString *)forProcess;
27 // executes pathToCommand with privileges
28 - (BOOL)executeCommand:(NSString *)pathToCommand withArgs:(NSArray *)arguments;
29 // kills the process specified by commandFromPS
30 - (BOOL)killProcess:(NSString *)commandFromPS;
31 @end
33 // strings for notification center
34 extern NSString* BLAuthenticatedNotification;
35 extern NSString* BLDeauthenticatedNotification;