Changeset 1320

Show
Ignore:
Timestamp:
09/13/10 14:40:56 (21 months ago)
Author:
gbooker
Message:

Updated more enums with better names (no functionality change)

Location:
trunk/SapphireFrappliance
Files:
17 modified

Legend:

Unmodified
Added
Removed
  • trunk/SapphireFrappliance/Browser/SapphireBrowser.m

    r1285 r1320  
    308308                                fileCls=[meta fileClassValue]; 
    309309                                BOOL rightTextSet = NO; 
    310                                 if(fileCls==FILE_CLASS_TV_SHOW) 
     310                                if(fileCls==FileClassTVShow) 
    311311                                { 
    312312                                        SapphireEpisode *ep = [meta tvEpisode]; 
     
    329329                                        } 
    330330                                } 
    331                                 if(fileCls==FILE_CLASS_MOVIE) 
     331                                if(fileCls==FileClassMovie) 
    332332                                { 
    333333                                        SapphireMovie *movie = [meta movie]; 
     
    384384                else if(!watched) gemString = BLUE_GEM_KEY; 
    385385                else if(favorite) gemString = YELLOW_GEM_KEY; 
    386                 else if(fileCls==FILE_CLASS_AUDIO) gemString = GREEN_GEM_KEY; 
     386                else if(fileCls==FileClassAudio) gemString = GREEN_GEM_KEY; 
    387387                else gemString = RED_GEM_KEY;; 
    388388                [SapphireFrontRowCompat setLeftIcon:[theme gem:gemString] forMenu:result]; 
     
    456456        } 
    457457         
    458         if([currentPlayFile fileClassValue] == FILE_CLASS_TV_SHOW) 
     458        if([currentPlayFile fileClassValue] == FileClassTVShow) 
    459459        { 
    460460                SapphireEpisode *episode = [currentPlayFile tvEpisode]; 
     
    473473                        [reqComp addObject:[NSString stringWithFormat:@"showname=%@", showName]]; 
    474474        } 
    475         else if([currentPlayFile fileClassValue] == FILE_CLASS_MOVIE) 
     475        else if([currentPlayFile fileClassValue] == FileClassMovie) 
    476476        { 
    477477                fileClass=2; 
     
    492492                request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"http://appletv.nanopi.net/ext.php"]]; 
    493493                //The fileClass is never used in these cases later 
    494                 //                              if([currentPlayFile fileClassValue] == FILE_CLASS_UNKNOWN) 
     494                //                              if([currentPlayFile fileClassValue] == FileClassUnknown) 
    495495                //                                       fileClass=0; 
    496                 //                              if([currentPlayFile fileClassValue] == FILE_CLASS_AUDIO) 
     496                //                              if([currentPlayFile fileClassValue] == FileClassAudio) 
    497497                //                                       fileClass=3; 
    498                 if([currentPlayFile fileClassValue] == FILE_CLASS_OTHER) 
     498                if([currentPlayFile fileClassValue] == FileClassOther) 
    499499                        fileClass=5; 
    500500                else 
     
    558558        } 
    559559         
    560         if([currentPlayFile fileContainerTypeValue] == FILE_CONTAINER_TYPE_VIDEO_TS && path != nil) 
     560        if([currentPlayFile fileContainerTypeValue] == FileContainerTypeVideoTS && path != nil) 
    561561        { 
    562562                SapphireCMPWrapper *wrapper = [[SapphireCMPWrapper alloc] initWithFile:currentPlayFile scene:[self scene]]; 
  • trunk/SapphireFrappliance/Browser/SapphireDisplayMenu.m

    r1298 r1320  
    231231                NSMutableDictionary *markMeta=[[NSMutableDictionary alloc] init]; 
    232232                [markMeta setObject:markName forKey:META_TITLE_KEY]; 
    233                 [markMeta setObject:[NSNumber numberWithInt:FILE_CLASS_UTILITY] forKey:FILE_CLASS_KEY]; 
     233                [markMeta setObject:[NSNumber numberWithInt:FileClassUtility] forKey:FILE_CLASS_KEY]; 
    234234                [markMeta setObject:markDescription forKey:META_DESCRIPTION_KEY]; 
    235235                SapphireMediaPreview *preview = [[SapphireMediaPreview alloc] initWithScene:[self scene]]; 
  • trunk/SapphireFrappliance/Browser/SapphireMarkMenu.m

    r1319 r1320  
    347347                                        nil]]; 
    348348                } 
    349                 if([fileMeta fileClass] != FILE_CLASS_UNKNOWN) 
     349                if([fileMeta fileClass] != FileClassUnknown) 
    350350                { 
    351351                        [marks addObject: 
     
    922922                NSMutableDictionary *markMeta=[[NSMutableDictionary alloc] init]; 
    923923                [markMeta setObject:markName forKey:META_TITLE_KEY]; 
    924                 [markMeta setObject:[NSNumber numberWithInt:FILE_CLASS_UTILITY] forKey:FILE_CLASS_KEY]; 
     924                [markMeta setObject:[NSNumber numberWithInt:FileClassUtility] forKey:FILE_CLASS_KEY]; 
    925925                [markMeta setObject:markDescription forKey:META_DESCRIPTION_KEY]; 
    926926                SapphireMediaPreview *preview = [[SapphireMediaPreview alloc] initWithScene:[self scene]]; 
  • trunk/SapphireFrappliance/Browser/SapphireMediaPreview.m

    r1251 r1320  
    514514        NSArray *order = nil; 
    515515        NSMutableDictionary *allMeta = nil; 
    516         FileClass fileClass=FILE_CLASS_UNKNOWN ; 
     516        FileClass fileClass=FileClassUnknown ; 
    517517        if([meta respondsToSelector:@selector(getDisplayedMetaDataInOrder:)]) 
    518518        { 
    519519                allMeta=[(id)meta getDisplayedMetaDataInOrder:&order]; 
    520520                if([meta conformsToProtocol:@protocol(SapphireDirectory)]) 
    521                         fileClass=FILE_CLASS_NOT_FILE; 
     521                        fileClass=FileClassNotFile; 
    522522                else 
    523523                        fileClass=(FileClass)[(SapphireFileMetaData *) meta fileClassValue]; 
    524524        } 
    525525        if(!allMeta) 
    526                 fileClass=FILE_CLASS_UTILITY; 
     526                fileClass=FileClassUtility; 
    527527        if(imageOnly) 
    528528        {        
    529                 fileClass = FILE_CLASS_NOT_FILE; 
     529                fileClass = FileClassNotFile; 
    530530                [allMeta removeAllObjects]; 
    531531        } 
     
    533533        BRMetadataLayer *metaLayer = [self gimmieMetadataLayer]; 
    534534        /* TV Show Preview Handeling */ 
    535         if(fileClass==FILE_CLASS_TV_SHOW) 
     535        if(fileClass==FileClassTVShow) 
    536536        { 
    537537                [self  populateTVShowMetadataWith:allMeta]; 
    538538        } 
    539539        /* Movie Preview Handeling */ 
    540         else if(fileClass==FILE_CLASS_MOVIE) 
     540        else if(fileClass==FileClassMovie) 
    541541        { 
    542542                [self populateMovieMetadataWith:allMeta]; 
    543543        } 
    544544        /* Utility Preview Handeling */ 
    545         else if(fileClass == FILE_CLASS_UTILITY) 
     545        else if(fileClass == FileClassUtility) 
    546546        { 
    547547                [self populateUtilityDataWith:(NSMutableDictionary *)meta]; 
    548548        } 
    549         else if(fileClass != FILE_CLASS_NOT_FILE) 
     549        else if(fileClass != FileClassNotFile) 
    550550        { 
    551551                [self populateGenericMetadataWith:allMeta]; 
  • trunk/SapphireFrappliance/MetaData/SapphireMObjects/SapphireDirectoryMetaData.m

    r1317 r1320  
    402402                        } 
    403403                        if([fm hasVIDEO_TS:filePath]) 
    404                                 subFile.fileContainerTypeValue = FILE_CONTAINER_TYPE_VIDEO_TS; 
     404                                subFile.fileContainerTypeValue = FileContainerTypeVideoTS; 
    405405                        else 
    406                                 subFile.fileContainerTypeValue = FILE_CONTAINER_TYPE_QT_MOVIE; 
     406                                subFile.fileContainerTypeValue = FileContainerTypeQTMovie; 
    407407                } 
    408408        } 
  • trunk/SapphireFrappliance/MetaData/SapphireMObjects/SapphireFileMetaData.h

    r1319 r1320  
    7272 
    7373typedef enum { 
    74         FILE_CLASS_UTILITY= -2, 
    75         FILE_CLASS_NOT_FILE= -1, 
    76         FILE_CLASS_UNKNOWN = 0, 
    77         FILE_CLASS_TV_SHOW = 1, 
    78         FILE_CLASS_MOVIE = 2, 
    79         FILE_CLASS_AUDIO = 3, 
    80         FILE_CLASS_IMAGE = 4, 
    81         FILE_CLASS_OTHER = 5, 
     74        FileClassUtility= -2, 
     75        FileClassNotFile= -1, 
     76        FileClassUnknown = 0, 
     77        FileClassTVShow = 1, 
     78        FileClassMovie = 2, 
     79        FileClassAudio = 3, 
     80        FileClassImage = 4, 
     81        FileClassOther = 5, 
    8282} FileClass; 
    8383 
    8484typedef enum FileContainerType { 
    85         FILE_CONTAINER_TYPE_QT_MOVIE = 0, 
    86         FILE_CONTAINER_TYPE_VIDEO_TS = 1, 
     85        FileContainerTypeQTMovie = 0, 
     86        FileContainerTypeVideoTS = 1, 
    8787} FileContainerType; 
    8888 
  • trunk/SapphireFrappliance/MetaData/SapphireMObjects/SapphireFileMetaData.m

    r1319 r1320  
    244244                if(ep != nil) 
    245245                { 
    246                         self.fileClassValue = FILE_CLASS_TV_SHOW; 
     246                        self.fileClassValue = FileClassTVShow; 
    247247                        NSString *epCoverPath = [[SapphireMetaDataSupport collectionArtPath] stringByAppendingPathComponent:[ep path]]; 
    248248                        NSString *oldBasePath = [[epCoverPath stringByDeletingLastPathComponent] stringByAppendingPathComponent:[self fileName]]; 
     
    265265                if(movie != nil) 
    266266                { 
    267                         self.fileClassValue = FILE_CLASS_MOVIE; 
     267                        self.fileClassValue = FileClassMovie; 
    268268                        NSString *movieCoverPath = [movie coverArtPath]; 
    269269                        NSString *oldBasePath = [[[SapphireMetaDataSupport collectionArtPath] stringByAppendingPathComponent:@"@MOVIES"] stringByAppendingPathComponent:[self fileName]]; 
     
    342342        NSString *path = nil; 
    343343        NSFileManager *fm = [NSFileManager defaultManager]; 
    344         if([self fileContainerTypeValue] == FILE_CONTAINER_TYPE_VIDEO_TS) 
     344        if([self fileContainerTypeValue] == FileContainerTypeVideoTS) 
    345345        { 
    346346                NSString *vtsPath = [self.path stringByAppendingPathComponent:@"VIDEO_TS"]; 
     
    405405        int match = ImportTypeMaskAll & ~ImportTypeMaskFile & ~ImportTypeMaskXML; 
    406406        switch (self.fileClassValue) { 
    407                 case FILE_CLASS_TV_SHOW: 
     407                case FileClassTVShow: 
    408408                        match &= ~ImportTypeMaskMovie; 
    409409                        break; 
    410                 case FILE_CLASS_MOVIE: 
     410                case FileClassMovie: 
    411411                        match &= ~ImportTypeMaskTVShow; 
    412412                        break; 
     
    444444        NSFileManager *fm = [NSFileManager defaultManager]; 
    445445         
    446         if(type == FILE_CONTAINER_TYPE_VIDEO_TS) 
     446        if(type == FileContainerTypeVideoTS) 
    447447        { 
    448448                NSString *vtsPath = [path stringByAppendingPathComponent:@"VIDEO_TS"]; 
     
    465465        [fileMeta setObject:[props objectForKey:NSFileSize] forKey:META_FILE_SIZE_KEY]; 
    466466         
    467         if(type == FILE_CONTAINER_TYPE_QT_MOVIE) 
     467        if(type == FileContainerTypeQTMovie) 
    468468        { 
    469469                /*Open the movie*/ 
     
    558558                } 
    559559        } //QTMovie 
    560         else if(type == FILE_CONTAINER_TYPE_VIDEO_TS) 
     560        else if(type == FileContainerTypeVideoTS) 
    561561        { 
    562562                SapphireVideoTsParser *dvd = [[SapphireVideoTsParser alloc] initWithPath:path]; 
     
    757757        NSString * myArtPath=nil; 
    758758         
    759         if([self fileClassValue]==FILE_CLASS_TV_SHOW) 
     759        if([self fileClassValue]==FileClassTVShow) 
    760760                myArtPath=[[self tvEpisode] coverArtPath]; 
    761         if([self fileClassValue]==FILE_CLASS_MOVIE) 
     761        if([self fileClassValue]==FileClassMovie) 
    762762                myArtPath=[[self movie] coverArtPath]; 
    763763         
     
    840840        NSString *extension; 
    841841        NSString *newExtlessPath = newPath; 
    842         if(self.fileContainerTypeValue != FILE_CONTAINER_TYPE_VIDEO_TS) 
     842        if(self.fileContainerTypeValue != FileContainerTypeVideoTS) 
    843843                newExtlessPath = [newExtlessPath stringByDeletingPathExtension]; 
    844844         
     
    902902                return BRLocalizedString(@"A File name should not contain any '/' characters", @"Error indicating that filenames cannot contain / characters"); 
    903903        NSString *oldPath = [self path]; 
    904         if(self.fileContainerTypeValue != FILE_CONTAINER_TYPE_VIDEO_TS) 
     904        if(self.fileContainerTypeValue != FileContainerTypeVideoTS) 
    905905                newFilename = [newFilename stringByAppendingPathExtension:[oldPath pathExtension]]; 
    906906        NSString *newPath = [[oldPath stringByDeletingLastPathComponent] stringByAppendingPathComponent:newFilename]; 
     
    996996{ 
    997997        NSString *ret = [self.path lastPathComponent]; 
    998         if(self.fileContainerTypeValue != FILE_CONTAINER_TYPE_VIDEO_TS) 
     998        if(self.fileContainerTypeValue != FileContainerTypeVideoTS) 
    999999                ret = [ret stringByDeletingPathExtension]; 
    10001000         
     
    10051005{ 
    10061006        NSString *ret = self.path; 
    1007         if(self.fileContainerTypeValue != FILE_CONTAINER_TYPE_VIDEO_TS) 
     1007        if(self.fileContainerTypeValue != FileContainerTypeVideoTS) 
    10081008                ret = [ret stringByDeletingPathExtension]; 
    10091009         
     
    11751175        if(movie != nil) 
    11761176        { 
    1177                 [self setFileClassValue:FILE_CLASS_MOVIE]; 
     1177                [self setFileClassValue:FileClassMovie]; 
    11781178                self.importTypeValue |= ImportTypeMaskMovie; 
    11791179        } 
     
    11901190        if(ep != nil) 
    11911191        { 
    1192                 [self setFileClassValue:FILE_CLASS_TV_SHOW]; 
     1192                [self setFileClassValue:FileClassTVShow]; 
    11931193                self.importTypeValue |= ImportTypeMaskTVShow; 
    11941194        } 
     
    12121212{ 
    12131213        FileClass xmlClass = self.xmlData.fileClassValue; 
    1214         if(xmlClass != FILE_CLASS_UNKNOWN) 
     1214        if(xmlClass != FileClassUnknown) 
    12151215                return xmlClass; 
    12161216        return super.fileClassValue; 
     
    12201220{ 
    12211221        FileClass xmlClass = self.xmlData.fileClassValue; 
    1222         if(xmlClass != FILE_CLASS_UNKNOWN) 
    1223                 self.xmlData.fileClassValue = FILE_CLASS_UNKNOWN; 
     1222        if(xmlClass != FileClassUnknown) 
     1223                self.xmlData.fileClassValue = FileClassUnknown; 
    12241224        super.fileClassValue = fileClass; 
    12251225} 
  • trunk/SapphireFrappliance/MetaData/SapphireMObjects/SapphireXMLData.m

    r1288 r1320  
    264264        if(imdbNumber != 0) 
    265265                ret = [SapphireMovie createMovieWithIMDB:imdbNumber inContext:[self managedObjectContext]]; 
    266         else if(title != nil && [[self file] fileClassValue] == FILE_CLASS_MOVIE) 
     266        else if(title != nil && [[self file] fileClassValue] == FileClassMovie) 
    267267                ret = [SapphireMovie createMovieWithTitle:title inContext:[self managedObjectContext]]; 
    268268        else 
  • trunk/SapphireFrappliance/MetaDataImporting/SapphireMovieImporter.m

    r1319 r1320  
    405405        { 
    406406                [currentData didImportType:ImportTypeMaskMovie]; 
    407                 if (status == ImportStateNotUpdated && [currentData fileClassValue] != FILE_CLASS_TV_SHOW) 
    408                         [currentData setFileClassValue:FILE_CLASS_UNKNOWN]; 
     407                if (status == ImportStateNotUpdated && [currentData fileClassValue] != FileClassTVShow) 
     408                        [currentData setFileClassValue:FileClassUnknown]; 
    409409        } 
    410410        [delegate backgroundImporter:self completedImportOnPath:state->path withState:status]; 
     
    444444        NSString *path = [metaData path]; 
    445445        BOOL ret = [[NSFileManager defaultManager] acceptFilePath:path]; 
    446         if([metaData fileContainerType] == FILE_CONTAINER_TYPE_QT_MOVIE) 
     446        if([metaData fileContainerType] == FileContainerTypeQTMovie) 
    447447                ret &= [[NSFileManager videoExtensions] containsObject:[path pathExtension]]; 
    448         if([metaData fileClassValue]==FILE_CLASS_TV_SHOW) /* File is a TV Show - skip it */ 
     448        if([metaData fileClassValue]==FileClassTVShow) /* File is a TV Show - skip it */ 
    449449                ret = NO; 
    450450        return ret; 
     
    462462        SapphireLog(SapphireLogTypeImport, SapphireLogLevelDebug, @"Going to movie import %@", path); 
    463463        NSString *extLessPath = path; 
    464         if([metaData fileContainerTypeValue] != FILE_CONTAINER_TYPE_VIDEO_TS) 
     464        if([metaData fileContainerTypeValue] != FileContainerTypeVideoTS) 
    465465                extLessPath = [extLessPath stringByDeletingPathExtension]; 
    466466         
  • trunk/SapphireFrappliance/MetaDataImporting/SapphireNfoImporter.m

    r1179 r1320  
    4949        BOOL nfoPathIsDir = NO; 
    5050        NSString *extLessPath = path; 
    51         if([metaData fileContainerTypeValue] != FILE_CONTAINER_TYPE_VIDEO_TS) 
     51        if([metaData fileContainerTypeValue] != FileContainerTypeVideoTS) 
    5252                extLessPath = [extLessPath stringByDeletingPathExtension]; 
    5353         
     
    5656                return ImportStateNotUpdated; 
    5757         
    58         if([metaData fileClassValue] != FILE_CLASS_UNKNOWN) 
     58        if([metaData fileClassValue] != FileClassUnknown) 
    5959                return ImportStateNotUpdated; 
    6060         
     
    7575                        if([[scraper contentType] isEqualToString:@"tvshows"]) 
    7676                        { 
    77                                 [metaData setFileClassValue:FILE_CLASS_TV_SHOW]; 
     77                                [metaData setFileClassValue:FileClassTVShow]; 
    7878                                match = YES; 
    7979                        } 
    8080                        else if([[scraper contentType] isEqualToString:@"movies"]) 
    8181                        { 
    82                                 [metaData setFileClassValue:FILE_CLASS_MOVIE]; 
     82                                [metaData setFileClassValue:FileClassMovie]; 
    8383                                match = YES; 
    8484                        } 
  • trunk/SapphireFrappliance/MetaDataImporting/SapphireQuickTimeImporter.m

    r1319 r1320  
    120120        int type = [[info valueForKey:TC_QT_TYPE] intValue]; 
    121121        if(type==9) 
    122                 [dict setObject:[NSNumber numberWithInt:FILE_CLASS_MOVIE] forKey:FILE_CLASS_KEY]; 
     122                [dict setObject:[NSNumber numberWithInt:FileClassMovie] forKey:FILE_CLASS_KEY]; 
    123123        else if(type==10)  
    124                 [dict setObject:[NSNumber numberWithInt:FILE_CLASS_TV_SHOW] forKey:FILE_CLASS_KEY]; 
     124                [dict setObject:[NSNumber numberWithInt:FileClassTVShow] forKey:FILE_CLASS_KEY]; 
    125125 
    126126        value = [info objectForKey:TC_QT_COPYRIGHT]; 
  • trunk/SapphireFrappliance/MetaDataImporting/SapphireTVShowImporter.m

    r1319 r1320  
    519519                        //QTMovie is broken on ATV, don't fetch images there 
    520520                        SapphireFileMetaData *metaData = tvState->file; 
    521                         if ([SapphireFrontRowCompat usingLeopard] && [metaData fileContainerTypeValue] == FILE_CONTAINER_TYPE_QT_MOVIE) 
     521                        if ([SapphireFrontRowCompat usingLeopard] && [metaData fileContainerTypeValue] == FileContainerTypeQTMovie) 
    522522                        { 
    523523                                // NSImage-Extensions 
     
    565565        { 
    566566                [currentData didImportType:ImportTypeMaskTVShow]; 
    567                 if (status == ImportStateNotUpdated && [currentData fileClassValue] != FILE_CLASS_MOVIE) 
    568                         [currentData setFileClassValue:FILE_CLASS_UNKNOWN]; 
     567                if (status == ImportStateNotUpdated && [currentData fileClassValue] != FileClassMovie) 
     568                        [currentData setFileClassValue:FileClassUnknown]; 
    569569        } 
    570570        [delegate backgroundImporter:self completedImportOnPath:state->path withState:status]; 
     
    605605        //      NSArray *pathComponents = [path pathComponents]; 
    606606        NSString *extLessPath = path; 
    607         if([metaData fileContainerTypeValue] != FILE_CONTAINER_TYPE_VIDEO_TS) 
     607        if([metaData fileContainerTypeValue] != FileContainerTypeVideoTS) 
    608608                extLessPath = [extLessPath stringByDeletingPathExtension]; 
    609609 
  • trunk/SapphireFrappliance/MetaDataImporting/SapphireXMLFileDataImporter.m

    r1319 r1320  
    100100        BOOL xmlPathIsDir = NO; 
    101101        NSString *extLessPath = path; 
    102         if([metaData fileContainerTypeValue] != FILE_CONTAINER_TYPE_VIDEO_TS) 
     102        if([metaData fileContainerTypeValue] != FileContainerTypeVideoTS) 
    103103                extLessPath = [extLessPath stringByDeletingPathExtension]; 
    104104 
     
    133133         
    134134        NSString *type = [[root attributeForName:@"type"] stringValue]; 
    135         FileClass fclass = FILE_CLASS_UNKNOWN; 
     135        FileClass fclass = FileClassUnknown; 
    136136        //Need to catch the media type {"TV Show" , "Movie"} 
    137137        if(type!=nil) 
    138138        { 
    139139                if([type isEqualToString:@"TV Show"]) 
    140                         fclass = FILE_CLASS_TV_SHOW; 
     140                        fclass = FileClassTVShow; 
    141141                else if([type isEqualToString:@"Movie"]) 
    142                         fclass = FILE_CLASS_MOVIE; 
    143                  
    144                 if(fclass != FILE_CLASS_UNKNOWN) 
     142                        fclass = FileClassMovie; 
     143                 
     144                if(fclass != FileClassUnknown) 
    145145                        [newMetaData setObject:[NSNumber numberWithInt:fclass] forKey:FILE_CLASS_KEY]; 
    146146        } 
     
    185185        /* Screen Cap */ 
    186186        NSArray *imageCaps = [root objectsForXQuery:SCREENCAP_XML_QUERY error:&error]; 
    187         if ( [imageCaps count] && [metaData fileContainerType] == FILE_CONTAINER_TYPE_QT_MOVIE ) 
     187        if ( [imageCaps count] && [metaData fileContainerType] == FileContainerTypeQTMovie ) 
    188188        { 
    189189                unsigned int hour; 
  • trunk/SapphireFrappliance/Players/SapphireCMPWrapper.m

    r1179 r1320  
    3636        FileContainerType fileContainerType = aFile.fileContainerTypeValue; 
    3737        CMPPlayerManagerFileType playerType = CMPPlayerManagerFileTypeQTCompatibleVideo; 
    38         if(fileContainerType == FILE_CONTAINER_TYPE_VIDEO_TS) 
     38        if(fileContainerType == FileContainerTypeVideoTS) 
    3939                playerType = CMPPlayerManagerFileTypeVideo_TS; 
    4040         
  • trunk/SapphireFrappliance/Settings/SapphireCollectionSettings.m

    r874 r1320  
    184184        NSMutableDictionary *settingMeta=[[NSMutableDictionary alloc] init]; 
    185185        [settingMeta setObject:settingName forKey:META_TITLE_KEY]; 
    186         [settingMeta setObject:[NSNumber numberWithInt:FILE_CLASS_UTILITY] forKey:FILE_CLASS_KEY]; 
     186        [settingMeta setObject:[NSNumber numberWithInt:FileClassUtility] forKey:FILE_CLASS_KEY]; 
    187187        [settingMeta setObject:settingDescription forKey:META_DESCRIPTION_KEY]; 
    188188        SapphireMediaPreview *preview = [[SapphireMediaPreview alloc] initWithScene:[self scene]]; 
  • trunk/SapphireFrappliance/Settings/SapphireRadioSetting.m

    r1270 r1320  
    142142                NSMutableDictionary *settingMeta=[[NSMutableDictionary alloc] init]; 
    143143                [settingMeta setObject:[choices objectAtIndex:item] forKey:META_TITLE_KEY]; 
    144                 [settingMeta setObject:[NSNumber numberWithInt:FILE_CLASS_UTILITY] forKey:FILE_CLASS_KEY]; 
     144                [settingMeta setObject:[NSNumber numberWithInt:FileClassUtility] forKey:FILE_CLASS_KEY]; 
    145145                [settingMeta setObject:[choiceDesc objectAtIndex:item] forKey:META_DESCRIPTION_KEY]; 
    146146                SapphireMediaPreview *preview = [[SapphireMediaPreview alloc] initWithScene:[self scene]]; 
  • trunk/SapphireFrappliance/Settings/SapphireSettings.m

    r1317 r1320  
    787787        NSMutableDictionary *settingMeta=[[NSMutableDictionary alloc] init]; 
    788788        [settingMeta setObject:settingName forKey:META_TITLE_KEY]; 
    789         [settingMeta setObject:[NSNumber numberWithInt:FILE_CLASS_UTILITY] forKey:FILE_CLASS_KEY]; 
     789        [settingMeta setObject:[NSNumber numberWithInt:FileClassUtility] forKey:FILE_CLASS_KEY]; 
    790790        [settingMeta setObject:settingDescription forKey:META_DESCRIPTION_KEY]; 
    791791        SapphireMediaPreview *preview = [[SapphireMediaPreview alloc] initWithScene:[self scene]];