Changeset 28252


Ignore:
Timestamp:
Aug 26, 2007, 9:55:14 AM (13 years ago)
Author:
rhwood@…
Message:

Add headers and methods required to use the MPAgentProtocal as well as some temporary NSDictionary objects that are storing results from MPAgentProtocal results as I get it working.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • users/rhwood/Pallet/PortAuthority.h

    r23416 r28252  
    3131#import "TaskWrapper.h"
    3232#import "AuthorizedExecutable.h"
     33#import "MPAgentProtocol.h"
     34#import "MPInterp.h"
     35#import "MPObject.h"
    3336
    3437@interface PortAuthority : NSObject <TaskWrapperController>
    3538
    3639{
     40        NSDictionary *_ports;
     41       
    3742    IBOutlet NSTableView *portsList;
    3843    IBOutlet NSTextView *portInfo;
     
    4853                                                                                                // the preference gets stored
    4954
     55        NSConnection *connection;
     56        id <MPAgentProtocol> agent;
     57        BOOL agentIsBusy;
     58       
    5059        NSMutableArray *portIndex;
    5160       
     
    5867        NSString *macPortsPath;
    5968        NSString *macPortsPort;
     69        AuthorizedExecutable *agentTask;
    6070        AuthorizedExecutable *authPortTask;
    6171        AuthorizedExecutable *killTask;
    6272        NSMutableDictionary *portSettings;
    6373        NSMutableDictionary *dependencies;
    64        
     74        NSMutableArray *operations;
    6575        NSDictionary *portIndexes;
    6676
     77        MPInterp *interpeter;
    6778}
     79
     80- (NSDictionary *)tPorts;
     81
    6882- (IBAction)installPort:(id)sender;
    6983- (IBAction)reinstallPort:(id)sender;
     
    8599- (IBAction)portAuthoritySite:(id)sender;
    86100
     101- (id <MPAgentProtocol>)agent;
     102- (void)connectionDidDie:(id)server;
     103
    87104- (void)getPortIndexes;
    88105- (NSString *)pathToPortIndexWithSource:(NSString *)source;
     
    94111- (void)parsePortIndex:(NSString *)portIndex intoIndexObject:(id)indexObject;
    95112
     113#pragma mark MACPORTS INTERPETER
     114
     115- (NSDictionary *)listPorts:(NSString *)query;
     116- (MPObject *)ui_puts:(NSArray *)array;
     117
     118#pragma mark MACPORTS AGENT
     119
     120- (oneway void)displayMessage:(in bycopy NSDictionary *)message forPortName:(in bycopy NSString *)portName;
     121- (void)executeTarget:(NSString *)target forPortName:(NSString *)portName;
     122- (BOOL)shouldPerformTarget:(in bycopy NSString *)target forPortName:(in bycopy NSString *)portName;
     123- (oneway void)willPerformTarget:(in bycopy NSString *)target forPortName:(in bycopy NSString *)portName;
     124- (oneway void)didPerformTarget:(in bycopy NSString *)target forPortName:(in bycopy NSString *)portName withResult:(in bycopy NSString *)result;
     125
    96126@end
Note: See TracChangeset for help on using the changeset viewer.