[28252] users/rhwood/Pallet/PortAuthority.h

source_changes at macosforge.org source_changes at macosforge.org
Sun Aug 26 02:55:14 PDT 2007


Revision: 28252
          http://trac.macosforge.org/projects/macports/changeset/28252
Author:   rhwood at macports.org
Date:     2007-08-26 02:55:14 -0700 (Sun, 26 Aug 2007)

Log 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.

Modified Paths:
--------------
    users/rhwood/Pallet/PortAuthority.h

Modified: users/rhwood/Pallet/PortAuthority.h
===================================================================
--- users/rhwood/Pallet/PortAuthority.h	2007-08-26 09:52:15 UTC (rev 28251)
+++ users/rhwood/Pallet/PortAuthority.h	2007-08-26 09:55:14 UTC (rev 28252)
@@ -30,10 +30,15 @@
 #import "PAStatusTransformer.h"
 #import "TaskWrapper.h"
 #import "AuthorizedExecutable.h"
+#import "MPAgentProtocol.h"
+#import "MPInterp.h"
+#import "MPObject.h"
 
 @interface PortAuthority : NSObject <TaskWrapperController>
 
 {
+	NSDictionary *_ports;
+	
     IBOutlet NSTableView *portsList;
     IBOutlet NSTextView *portInfo;
     IBOutlet NSProgressIndicator *progressIndicator;
@@ -47,6 +52,10 @@
 //	IBOutlet NSTextField *portInstallationPath; // this needs to be set correctly first run to ensure that
 												// the preference gets stored
 
+	NSConnection *connection;
+	id <MPAgentProtocol> agent;
+	BOOL agentIsBusy;
+	
 	NSMutableArray *portIndex;
 	
 	NSMutableArray *taskQueue;
@@ -57,14 +66,19 @@
 	NSString *launcher;
 	NSString *macPortsPath;
 	NSString *macPortsPort;
+	AuthorizedExecutable *agentTask;
 	AuthorizedExecutable *authPortTask;
 	AuthorizedExecutable *killTask;
 	NSMutableDictionary *portSettings;
 	NSMutableDictionary *dependencies;
-	
+	NSMutableArray *operations;
 	NSDictionary *portIndexes;
 
+	MPInterp *interpeter;
 }
+
+- (NSDictionary *)tPorts;
+
 - (IBAction)installPort:(id)sender;
 - (IBAction)reinstallPort:(id)sender;
 - (IBAction)removePort:(id)sender;
@@ -84,6 +98,9 @@
 - (IBAction)macPortsSite:(id)sender;
 - (IBAction)portAuthoritySite:(id)sender;
 
+- (id <MPAgentProtocol>)agent;
+- (void)connectionDidDie:(id)server;
+
 - (void)getPortIndexes;
 - (NSString *)pathToPortIndexWithSource:(NSString *)source;
 - (void)populatePortIndex;
@@ -93,4 +110,17 @@
 
 - (void)parsePortIndex:(NSString *)portIndex intoIndexObject:(id)indexObject;
 
+#pragma mark MACPORTS INTERPETER
+
+- (NSDictionary *)listPorts:(NSString *)query;
+- (MPObject *)ui_puts:(NSArray *)array;
+
+#pragma mark MACPORTS AGENT
+
+- (oneway void)displayMessage:(in bycopy NSDictionary *)message forPortName:(in bycopy NSString *)portName;
+- (void)executeTarget:(NSString *)target forPortName:(NSString *)portName;
+- (BOOL)shouldPerformTarget:(in bycopy NSString *)target forPortName:(in bycopy NSString *)portName;
+- (oneway void)willPerformTarget:(in bycopy NSString *)target forPortName:(in bycopy NSString *)portName;
+- (oneway void)didPerformTarget:(in bycopy NSString *)target forPortName:(in bycopy NSString *)portName withResult:(in bycopy NSString *)result;
+
 @end

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070826/83ad7316/attachment.html


More information about the macports-changes mailing list