Ignore:
Timestamp:
02/13/04 21:01:06 (20 years ago)
Author:
Nicholas Riley
Message:

Integrates SCPatch and mach_inject; unfinished, buggy.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cocoa/F-Script Anywhere/Source/FSAApp.h

    r7 r153  
    2828#import "FSAAppList.h"
    2929
     30#include "SCPatchController.h"
     31
     32@class FSAApp;
     33
     34class FSAPatchController : public SCPatchController {
     35public:
     36    FSAPatchController(FSAApp *fsaApp);
     37    void PatchNotification(ProcessSerialNumber *inPSN,
     38                           OSType inCreator, OSType type,
     39                           CFStringRef name, UInt32 flags);
     40    void ReceiveMessage(const AppleEvent *theAE);
     41private:
     42    FSAApp *mApp;
     43};
     44
    3045@interface FSAApp : NSApplication
    3146{
    32     IBOutlet NSPanel *appListPanel;
     47    IBOutlet NSWindow *appListWindow;
    3348    IBOutlet FSAAppList *appList;
     49    FSAPatchController *patchController;
    3450}
    3551
    36 - (void) finishLaunching;
     52- (IBAction)installBundleInSelectedApp:(id)sender;
    3753
    38 - (IBAction)installBundleInSelectedApp:(id)sender;
    39 - (void)unloadBundles:(id)sender;
    4054@end
    4155
    42 @interface FSAApp (PatchControllerDelegate)
    43 
    44 - (void) notifyProcessLaunch:(pid_t)pid info:(NSDictionary*)info;
    45 - (void) notifyProcessDeath:(pid_t)pid info:(NSDictionary*)info;
    46 
     56@interface FSAApp (FSAPatchControllerDelegate)
     57- (void)controllerIsPatchingApplicationWithProcessID:(pid_t)pid;
    4758@end
Note: See TracChangeset for help on using the changeset viewer.