// // SoftwareList.h // Ample // // Created by Kelvin Sherlock on 3/28/2021. // Copyright © 2021 Kelvin Sherlock. All rights reserved. // #ifndef SoftwareList_h #define SoftwareList_h #import #import "AutocompleteControl.h" @interface SoftwareList : NSObject @property NSString *name; @property NSString *title; @property NSArray *items; @property NSString *notes; -(SoftwareList *)filter: (NSString *)filter; @end @interface Software : NSObject @property NSString *name; @property NSString *title; @property NSString *compatibility; @property NSString *list; @property NSString *notes; -(NSString *)fullName; @property NSString *searchTitle; @end @interface SoftwareSet : NSObject +(instancetype)softwareSetForMachine: (NSString *)machine; +(void)invalidate; -(BOOL)nameIsUnique: (NSString *)name; -(NSString *)nameForSoftware: (Software *)software; -(Software *)softwareForName: (NSString *)name; -(BOOL)hasSoftware: (Software *)software; @end //NSArray *SoftwareListForMachine(NSString *machine); #endif /* SoftwareList_h */