| 1 | /* |
|---|
| 2 | * SapphireFileSorter.h |
|---|
| 3 | * Sapphire |
|---|
| 4 | * |
|---|
| 5 | * Created by Graham Booker on Jun. 16, 2008. |
|---|
| 6 | * Copyright 2008 Sapphire Development Team and/or www.nanopi.net |
|---|
| 7 | * All rights reserved. |
|---|
| 8 | * |
|---|
| 9 | * This program is free software; you can redistribute it and/or modify it under the terms of the GNU |
|---|
| 10 | * General Public License as published by the Free Software Foundation; either version 3 of the License, |
|---|
| 11 | * or (at your option) any later version. |
|---|
| 12 | * |
|---|
| 13 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even |
|---|
| 14 | * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General |
|---|
| 15 | * Public License for more details. |
|---|
| 16 | * |
|---|
| 17 | * You should have received a copy of the GNU General Public License along with this program; if not, |
|---|
| 18 | * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|---|
| 19 | */ |
|---|
| 20 | |
|---|
| 21 | @interface SapphireFileSorter : NSObject { |
|---|
| 22 | } |
|---|
| 23 | |
|---|
| 24 | + (SapphireFileSorter *)sharedInstance; |
|---|
| 25 | + (BOOL)sortFiles:(NSMutableArray *)files withSorter:(int)sorter inAllowedSorts:(NSArray *)allowed; |
|---|
| 26 | |
|---|
| 27 | - (NSString *)displayName; |
|---|
| 28 | - (NSString *)displayDescription; |
|---|
| 29 | - (int)sortNumber; |
|---|
| 30 | - (void)sortFiles:(NSMutableArray *)files; |
|---|
| 31 | |
|---|
| 32 | @end |
|---|
| 33 | |
|---|
| 34 | @interface SapphireTVEpisodeSorter : SapphireFileSorter { |
|---|
| 35 | } |
|---|
| 36 | |
|---|
| 37 | @end |
|---|
| 38 | |
|---|
| 39 | @interface SapphireMovieTitleSorter : SapphireFileSorter { |
|---|
| 40 | } |
|---|
| 41 | |
|---|
| 42 | @end |
|---|
| 43 | |
|---|
| 44 | @interface SapphireMovieIMDBTop250RankSorter : SapphireFileSorter { |
|---|
| 45 | } |
|---|
| 46 | |
|---|
| 47 | @end |
|---|
| 48 | |
|---|
| 49 | @interface SapphireMovieAcademyAwardSorter : SapphireFileSorter { |
|---|
| 50 | } |
|---|
| 51 | |
|---|
| 52 | @end |
|---|
| 53 | |
|---|
| 54 | @interface SapphireDateSorter : SapphireFileSorter { |
|---|
| 55 | } |
|---|
| 56 | |
|---|
| 57 | @end |
|---|
| 58 | |
|---|
| 59 | @interface SapphireMovieIMDBRatingSorter : SapphireFileSorter { |
|---|
| 60 | } |
|---|
| 61 | |
|---|
| 62 | @end |
|---|
| 63 | |
|---|
| 64 | @interface SapphireDurationSorter : SapphireFileSorter { |
|---|
| 65 | } |
|---|
| 66 | |
|---|
| 67 | @end |
|---|
| 68 | |
|---|
| 69 | @interface SapphireFileSizeSorter : SapphireFileSorter { |
|---|
| 70 | } |
|---|
| 71 | |
|---|
| 72 | @end |
|---|