CatNiP docutest
Sähköinen nuottikirja, HY-TKTKL-OHTUPROJ KESÄ11
/Users/awniemel/Notepad-SVN/svn/trunk/CatNiP/CatNiP/LocalDataHandler.h
Go to the documentation of this file.
00001 
00011 #import <Foundation/Foundation.h>
00012 #import "CatNiPViewController.h"
00013 #import "Playlist.h"
00014 #import "LocalScoreData.h"
00015 #import "CompositionData.h"
00016 #import "ScoreData.h"
00017 
00018 
00019 @interface LocalDataHandler : NSObject {
00020     
00021 }
00022 
00023 +(void)deleteFiles:(NSArray *)filepaths;
00024 +(void)deleteFile:(NSString *)filepath;
00025 
00026 +(void)saveScoresToDefaultFile:(NSMutableArray *)scores;
00027 +(NSMutableArray *)loadLocalScoresFromDefaultFile;
00028 
00029 +(void)savePlaylistsToDefaultFile:(NSMutableArray *)playlists;
00030 +(NSMutableArray *)loadPlaylistsFromDefaultFile:(NSArray *)allScores;
00031 
00032 // NOT IN USE
00033 //+(void)saveDictionaryToDefaultFile:(NSMutableDictionary *)dict;
00034 //+(NSMutableDictionary *)loadDictionaryFromDefaultFile;
00035 
00036 +(LocalScoreData *)createLocalScoreData:(NSArray *)fileNameParams ofComposition:(CompositionData *)comp localScores:(NSArray *)scores;
00037 +(NSInteger)searchFreeIndexForScore:(NSArray *)scores;
00038 +(NSMutableDictionary *)createComposerDictionary:(NSArray *)scores;
00039 
00040 // only removes references
00041 +(void)removeLocalScoreData:(LocalScoreData *)score fromScoreArray:(NSMutableArray *)sarray;
00042 +(void)removeLocalScoreData:(LocalScoreData *)score fromDictionary:(NSMutableDictionary *)dict;
00043 +(void)removeLocalScoreData:(LocalScoreData *)score fromPlaylistArray:(NSMutableArray *)parray;
00044 // removes references and deletes pdf-files
00045 +(void)removeAndDeleteLocalScoreData:(LocalScoreData*)score fromScoreArray:(NSMutableArray *)sarray andDictionary:(NSMutableDictionary *)dict andPlaylistArray:(NSMutableArray *)parray;
00046 
00047 // only removes references
00048 +(void)removeScoreDataArray:(NSArray *)sdarray fromScoreArray:(NSMutableArray *)sarray; 
00049 +(void)removeScoreDataArray:(NSArray *)sdarray fromDictionary:(NSMutableDictionary *)dict;
00050 +(void)removeScoreDataArray:(NSArray *)sdarray fromPlaylistArray:(NSMutableArray *)parray;
00051 // removes references and deletes pdf-files
00052 +(void)removeAndDeleteScoreDataArray:(NSArray *)sdarray fromScoreArray:(NSMutableArray *)sarray andDictionary:(NSMutableDictionary *)dict andPlaylistArray:(NSMutableArray *)parray;
00053 
00054 // only removes references
00055 +(void)removeCompositionDataArray:(NSArray *)cdarray fromScoreArray:(NSMutableArray *)sarray; 
00056 +(void)removeCompositionDataArray:(NSArray *)cdarray fromDictionary:(NSMutableDictionary *)dict;
00057 +(void)removeCompositionDataArray:(NSArray *)cdrray fromPlaylistArray:(NSMutableArray *)parray;
00058 // removes references and deletes pdf-files
00059 +(void)removeAndDeleteCompositionDataArray:(NSArray *)cdarray fromScoreArray:(NSMutableArray *)sarray andDictionary:(NSMutableDictionary *)dict andPlaylistArray:(NSMutableArray *)parray;
00060 
00061 +(BOOL)scoreArray:(NSArray *)sarray hasScoreWithPdfFileName:(NSString *)filename;
00062 
00063 @end
 All Classes Files Functions Variables Enumerations Enumerator Properties Defines