#import "AqLibraryController.h"


@implementation AqLibraryController

/* Initialization */

    + (id) instance; {
        static id instance = nil;
        if (!instance) instance = [[AqLibraryController alloc] init];
        return instance;
    }
    
    - (id) init; {
        self = [super init];
        files = [[NSMutableSet alloc] init];
        return self;
    }
    

/* API */    

    - (void) addSharedFile: (id) theInfo; {
        id sha1 = [theInfo objectAtIndex: 1];
        id name = [theInfo objectAtIndex: 2];
        id size = [theInfo objectAtIndex: 3];

        [files addObject: sha1];
        [files addObject: [NSString stringWithFormat: @"%@%@", name, size]];
    }

@end