CatNiP -test sprint-4-interim
catnip
|
00001 // 00002 // FileOperations.h 00003 // CatNiP 00004 // 00005 // Created by Simo M Linkola, tkol on 6/10/11. 00006 // Copyright 2011 __MyCompanyName__. All rights reserved. 00007 // 00008 00009 #import <Foundation/Foundation.h> 00010 #import "Playlist.h" 00011 #import "LocalScoreData.h" 00012 #import "IMSLPCompositionData.h" 00013 #import "IMSLPScoreData.h" 00014 00015 00016 @interface LocalDataHandler : NSObject { 00017 00018 } 00019 00020 00021 +(void)deleteFiles:(NSArray *)filepaths; 00022 +(void)deleteFileAtFilePath:(NSString *)filepath; 00023 +(void)saveScoresToDefaultFile:(NSMutableArray *)scores; 00024 +(void)savePlaylistsToDefaultFile:(NSMutableArray *)playlists; 00025 +(NSMutableArray *)loadLocalScoresFromDefaultFile; 00026 +(NSMutableArray *)loadPlaylistsFromDefaultFile; 00027 +(LocalScoreData *)createLocalScoreData:(NSArray *)fileNameParams ofIMSLPComposition:(IMSLPCompositionData *)comp localScores:(NSArray *)scores; 00028 +(NSInteger)searchFreeIndexForScore:(NSArray *)scores; 00029 +(NSMutableDictionary *)createComposerDictionary:(NSArray *)scores; 00030 00031 @end