Ticket #13426: MPRegistry.h.diff
File MPRegistry.h.diff, 1.8 KB (added by kirk.kelsey@…, 17 years ago) |
---|
-
MPRegistry.h
33 33 * POSSIBILITY OF SUCH DAMAGE. 34 34 */ 35 35 36 /*! 37 @header 38 MPRegistry provides a programatic interface to the registry of installed ports. 39 The MPRegistry class is a wrapper around the Tcl Registry API. For interacting 40 with all available ports, see the @link MPIndex MPIndex @/link. 41 */ 36 42 #import <Cocoa/Cocoa.h> 37 43 #import "MPInterpreter.h" 38 44 #import "MPPort.h" 39 45 #import "MPReceipt.h" 40 46 47 /*! 48 @class MPRegistry 49 @abstract The registry of installed ports. 50 */ 41 51 @interface MPRegistry : NSObject { 42 52 43 53 MPInterpreter *interpreter; … … 47 57 + (MPRegistry *)sharedRegistry; 48 58 49 59 /* 50 * Call[self installed:@""]60 @brief Calls [self installed:@""] 51 61 */ 52 62 - (NSDictionary *)installed; 53 63 /* 54 * Call [self installed:name version:@""] 64 @brief Calls [self installed:name version:@""] 65 @param name Text to match the port name 55 66 */ 56 67 - (NSDictionary *)installed:(NSString *)name; 57 /* 58 * Returns a NSDictionary of MPReciepts keyed by port name 68 /*! 69 @brief Returns an NSDictionary of MPReciepts keyed by port name 70 @param name Text to match the port name 71 @param version Text to match the port version 59 72 */ 60 73 - (NSDictionary *)installed:(NSString *)name withVersion:(NSString *)version; 61 /* 62 * Return an array of installed port names 74 /*! 75 @brief Returns an array of installed port names 76 @param name Text to match the port name 77 @param version Text to march the port version 63 78 */ 64 79 - (NSArray *)installedAsArray:(NSString *)name withVersion:(NSString *)version; 65 /* 66 * Returnan array of the files in the (installed and active) port80 /*! 81 @brief Returns an array of the files in the (installed and active) port 67 82 */ 68 83 - (NSArray *)filesForPort:(NSString *)name; 69 84