Skip to content

Instantly share code, notes, and snippets.

@ELLIOTTCABLE
Created January 2, 2009 03:07
Show Gist options
  • Select an option

  • Save ELLIOTTCABLE/42456 to your computer and use it in GitHub Desktop.

Select an option

Save ELLIOTTCABLE/42456 to your computer and use it in GitHub Desktop.
//
// YRSugarRepresentation.h
// SugarManager
//
#import <Cocoa/Cocoa.h>
typedef enum {
YRDownloadFormatRaw,
YRDownloadFormatZip,
YRDownloadFormatTGZ,
YRDownloadFormatSVN,
YRDownloadFormatGit
} YRDownloadFormat;
@interface YRSugarRepresentation : NSObject {
NSString *name;
NSString *author;
NSString *identifier;
NSURL *downloadURL;
YRDownloadFormat *downloadFormat;
NSURL *homeURL;
NSArray *dependencies;
}
@property (readwrite, copy) NSString *name;
@property (readwrite, copy) NSString *author;
@property (readwrite, copy) NSString *identifier;
@property (readwrite, copy) NSURL *downloadURL;
@property (readwrite, copy) YRDownloadFormat *downloadFormat;
@property (readwrite, copy) NSURL *homeURL;
@property (readwrite, copy) NSArray *dependencies;
+ (id)sugarWithName:(NSString *)aName
author:(NSString *)anAuthor
identifier:(NSString *)anIdentifier
downloadURL:(NSURL *)aDownloadURL
downloadFormat:(YRDownloadFormat *)aDownloadFormat
homeURL:(NSURL *)aHomeURL
dependencies:(NSArray *)someDependencies;
+ (id)sugarFromURL:(NSURL *)languagesXMLURL;
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment