[7] | 1 | //
|
---|
| 2 | // FSAApp.h
|
---|
| 3 | // F-Script Anywhere
|
---|
| 4 | //
|
---|
| 5 | // Created by Nicholas Riley on Fri Feb 01 2002.
|
---|
| 6 | // Copyright (c) 2002 Nicholas Riley. All rights reserved.
|
---|
| 7 | //
|
---|
| 8 |
|
---|
| 9 | /*
|
---|
| 10 |
|
---|
| 11 | F-Script Anywhere is free software; you can redistribute it and/or modify
|
---|
| 12 | it under the terms of the GNU General Public License as published by
|
---|
| 13 | the Free Software Foundation; either version 2 of the License, or
|
---|
| 14 | (at your option) any later version.
|
---|
| 15 |
|
---|
| 16 | F-Script Anywhere is distributed in the hope that it will be useful,
|
---|
| 17 | but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
| 18 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
| 19 | GNU General Public License for more details.
|
---|
| 20 |
|
---|
| 21 | You should have received a copy of the GNU General Public License
|
---|
| 22 | along with F-Script Anywhere; if not, write to the Free Software
|
---|
| 23 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
---|
| 24 |
|
---|
| 25 | */
|
---|
| 26 |
|
---|
| 27 | #import <Cocoa/Cocoa.h>
|
---|
[230] | 28 | #import <Security/Authorization.h>
|
---|
[7] | 29 | #import "FSAAppList.h"
|
---|
| 30 |
|
---|
[412] | 31 | #ifdef __cplusplus
|
---|
| 32 |
|
---|
[153] | 33 | #include "SCPatchController.h"
|
---|
| 34 |
|
---|
| 35 | @class FSAApp;
|
---|
| 36 |
|
---|
| 37 | class FSAPatchController : public SCPatchController {
|
---|
| 38 | public:
|
---|
| 39 | FSAPatchController(FSAApp *fsaApp);
|
---|
| 40 | void PatchNotification(ProcessSerialNumber *inPSN,
|
---|
| 41 | OSType inCreator, OSType type,
|
---|
| 42 | CFStringRef name, UInt32 flags);
|
---|
| 43 | void ReceiveMessage(const AppleEvent *theAE);
|
---|
| 44 | private:
|
---|
| 45 | FSAApp *mApp;
|
---|
| 46 | };
|
---|
| 47 |
|
---|
[412] | 48 | #else
|
---|
| 49 |
|
---|
| 50 | #define FSAPatchController void
|
---|
| 51 |
|
---|
| 52 | #endif /* __cplusplus */
|
---|
| 53 |
|
---|
[7] | 54 | @interface FSAApp : NSApplication
|
---|
| 55 | {
|
---|
[153] | 56 | IBOutlet NSWindow *appListWindow;
|
---|
[7] | 57 | IBOutlet FSAAppList *appList;
|
---|
[153] | 58 | FSAPatchController *patchController;
|
---|
[230] | 59 | AuthorizationRef myAuthorizationRef;
|
---|
| 60 | AuthorizationFlags myFlags;
|
---|
[7] | 61 | }
|
---|
| 62 |
|
---|
[153] | 63 | - (IBAction)installBundleInSelectedApp:(id)sender;
|
---|
[231] | 64 | - (void)installBundleInAppWithPID:(pid_t)pid;
|
---|
[230] | 65 | -(BOOL)createAuthorization;
|
---|
[7] | 66 |
|
---|
| 67 | @end
|
---|
| 68 |
|
---|
[153] | 69 | @interface FSAApp (FSAPatchControllerDelegate)
|
---|
| 70 | - (void)controllerIsPatchingApplicationWithProcessID:(pid_t)pid;
|
---|
| 71 | @end |
---|