Line data Source code
1 0 : /* 2 : 3 : OOManifestProperties.h 4 : 5 : The property keys used in manifest.plist entries 6 : 7 : Oolite 8 : Copyright (C) 2004-2013 Giles C Williams and contributors 9 : 10 : This program is free software; you can redistribute it and/or 11 : modify it under the terms of the GNU General Public License 12 : as published by the Free Software Foundation; either version 2 13 : of the License, or (at your option) any later version. 14 : 15 : This program is distributed in the hope that it will be useful, 16 : but WITHOUT ANY WARRANTY; without even the implied warranty of 17 : MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 : GNU General Public License for more details. 19 : 20 : You should have received a copy of the GNU General Public License 21 : along with this program; if not, write to the Free Software 22 : Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 23 : MA 02110-1301, USA. 24 : 25 : */ 26 : 27 : 28 0 : static NSString * const kOOManifestIdentifier = @"identifier"; 29 0 : static NSString * const kOOManifestVersion = @"version"; 30 0 : static NSString * const kOOManifestRequiredOoliteVersion= @"required_oolite_version"; 31 0 : static NSString * const kOOManifestMaximumOoliteVersion = @"maximum_oolite_version"; 32 0 : static NSString * const kOOManifestTitle = @"title"; 33 0 : static NSString * const kOOManifestRequiresOXPs = @"requires_oxps"; 34 0 : static NSString * const kOOManifestConflictOXPs = @"conflict_oxps"; 35 0 : static NSString * const kOOManifestDescription = @"description"; 36 0 : static NSString * const kOOManifestCategory = @"category"; 37 0 : static NSString * const kOOManifestDownloadURL = @"download_url"; 38 0 : static NSString * const kOOManifestFileSize = @"file_size"; 39 0 : static NSString * const kOOManifestInformationURL = @"information_url"; 40 0 : static NSString * const kOOManifestAuthor = @"author"; 41 0 : static NSString * const kOOManifestLicense = @"license"; 42 0 : static NSString * const kOOManifestTags = @"tags"; 43 : /* these properties are not contained in the manifest.plist (and would be 44 : overwritten if they were...) but are calculated by Oolite */ 45 0 : static NSString * const kOOManifestFilePath = @"file_path"; 46 0 : static NSString * const kOOManifestRequiredBy = @"required_by"; 47 0 : static NSString * const kOOManifestAvailableVersion = @"available_version"; 48 : /* these properties are not contained in the manifest.plist but are 49 : * provided by in the manifest*s* list by the API */ 50 0 : static NSString * const kOOManifestUploadDate = @"upload_date"; 51 : // following manifest.plist properties not (yet?) used by Oolite 52 : // but may be used by other manifest reading applications 53 : #if 0 54 : static NSString * const kOOManifestOptionalOXPs = @"optional_oxps"; 55 : #endif 56 : 57 : // properties for within requires/optional/conflicts entries 58 0 : static NSString * const kOOManifestRelationIdentifier = @"identifier"; 59 0 : static NSString * const kOOManifestRelationVersion = @"version"; 60 0 : static NSString * const kOOManifestRelationMaxVersion = @"maximum_version"; 61 0 : static NSString * const kOOManifestRelationDescription = @"description"; 62 : 63 : // 'magic' value for a tag to exclude an OXP from loading except when 64 : // required by a scenario 65 0 : static NSString * const kOOManifestTagScenarioOnly = @"oolite-scenario-only";