Oolite 1.91.0.7646-241128-10e222e
Loading...
Searching...
No Matches
OOOXZManager.m File Reference
import "OOOXZManager.h"
import "OOPListParsing.h"
import "OOStringParsing.h"
import "ResourceManager.h"
import "OOCacheManager.h"
import "Universe.h"
import "GuiDisplayGen.h"
import "PlayerEntity.h"
import "PlayerEntitySound.h"
import "OOCollectionExtractors.h"
import "NSFileManagerOOExtensions.h"
import "NSDataOOExtensions.h"
import "NSStringOOExtensions.h"
import "OOColor.h"
import "OOStringExpander.h"
import "MyOpenGLView.h"
import "unzip.h"
import "OOManifestProperties.h"
+ Include dependency graph for OOOXZManager.m:

Go to the source code of this file.

Classes

category  OOOXZManager(NSURLConnectionDataDelegate)
 
category  OOOXZManager(OOFilterRules)
 

Enumerations

enum  OXZInstallableState {
  OXZ_INSTALLABLE_OKAY , OXZ_INSTALLABLE_UPDATE , OXZ_INSTALLABLE_DEPENDENCIES , OXZ_INSTALLABLE_CONFLICTS ,
  OXZ_UNINSTALLABLE_ALREADY , OXZ_UNINSTALLABLE_NOREMOTE , OXZ_UNINSTALLABLE_VERSION , OXZ_UNINSTALLABLE_MANUAL
}
 
enum  {
  OXZ_GUI_ROW_LISTHEAD = 0 , OXZ_GUI_ROW_FIRSTRUN = 1 , OXZ_GUI_ROW_PROGRESS = 1 , OXZ_GUI_ROW_FILTERHELP = 1 ,
  OXZ_GUI_ROW_LISTPREV = 1 , OXZ_GUI_ROW_LISTSTART = 2 , OXZ_GUI_NUM_LISTROWS = 10 , OXZ_GUI_ROW_LISTNEXT = 12 ,
  OXZ_GUI_ROW_LISTSTATUS = 14 , OXZ_GUI_ROW_LISTDESC = 16 , OXZ_GUI_ROW_LISTINFO1 = 19 , OXZ_GUI_ROW_LISTINFO2 = 20 ,
  OXZ_GUI_ROW_LISTFILTER = 21 , OXZ_GUI_ROW_INSTALL = 22 , OXZ_GUI_ROW_INSTALLED = 23 , OXZ_GUI_ROW_UPDATE_ALL = 24 ,
  OXZ_GUI_ROW_REMOVE = 25 , OXZ_GUI_ROW_PROCEED = 25 , OXZ_GUI_ROW_UPDATE = 26 , OXZ_GUI_ROW_CANCEL = 26 ,
  OXZ_GUI_ROW_FILTERCURRENT = 26 , OXZ_GUI_ROW_INPUT = 27 , OXZ_GUI_ROW_EXIT = 27
}
 

Functions

NSComparisonResult oxzSort (id m1, id m2, void *context)
 

Variables

static NSString *const kOOOXZDataURL = @"http://addons.oolite.space/api/1.0/overview"
 
static NSString *const kOOOXZDataConfig = @"oxz-index-url"
 
static NSString *const kOOOXZManifestCache = @"Oolite-manifests.plist"
 
static NSString *const kOOOXZTmpPath = @"Oolite-download.oxz"
 
static NSString *const kOOOXZTmpPlistPath = @"Oolite-download.plist"
 
static NSString *const kOOOXZErrorLog = @"oxz.manager.error"
 
static NSString *const kOOOXZDebugLog = @"oxz.manager.debug"
 
static NSString *const kOOOXZFilterAll = @"*"
 
static NSString *const kOOOXZFilterUpdates = @"u"
 
static NSString *const kOOOXZFilterInstallable = @"i"
 
static NSString *const kOOOXZFilterKeyword = @"k:"
 
static NSString *const kOOOXZFilterAuthor = @"a:"
 
static NSString *const kOOOXZFilterCategory = @"c:"
 
static NSString *const kOOOXZFilterDays = @"d:"
 
static NSString *const kOOOXZFilterTag = @"t:"
 
static OOOXZManagersSingleton = nil
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
OXZ_GUI_ROW_LISTHEAD 
OXZ_GUI_ROW_FIRSTRUN 
OXZ_GUI_ROW_PROGRESS 
OXZ_GUI_ROW_FILTERHELP 
OXZ_GUI_ROW_LISTPREV 
OXZ_GUI_ROW_LISTSTART 
OXZ_GUI_NUM_LISTROWS 
OXZ_GUI_ROW_LISTNEXT 
OXZ_GUI_ROW_LISTSTATUS 
OXZ_GUI_ROW_LISTDESC 
OXZ_GUI_ROW_LISTINFO1 
OXZ_GUI_ROW_LISTINFO2 
OXZ_GUI_ROW_LISTFILTER 
OXZ_GUI_ROW_INSTALL 
OXZ_GUI_ROW_INSTALLED 
OXZ_GUI_ROW_UPDATE_ALL 
OXZ_GUI_ROW_REMOVE 
OXZ_GUI_ROW_PROCEED 
OXZ_GUI_ROW_UPDATE 
OXZ_GUI_ROW_CANCEL 
OXZ_GUI_ROW_FILTERCURRENT 
OXZ_GUI_ROW_INPUT 
OXZ_GUI_ROW_EXIT 

Definition at line 91 of file OOOXZManager.m.

91 {
115};
@ OXZ_GUI_ROW_CANCEL
@ OXZ_GUI_ROW_PROGRESS
@ OXZ_GUI_ROW_FILTERHELP
@ OXZ_GUI_ROW_FIRSTRUN
@ OXZ_GUI_NUM_LISTROWS
@ OXZ_GUI_ROW_LISTINFO2
@ OXZ_GUI_ROW_REMOVE
@ OXZ_GUI_ROW_LISTFILTER
@ OXZ_GUI_ROW_EXIT
@ OXZ_GUI_ROW_INSTALL
@ OXZ_GUI_ROW_FILTERCURRENT
@ OXZ_GUI_ROW_LISTSTATUS
@ OXZ_GUI_ROW_INSTALLED
@ OXZ_GUI_ROW_LISTINFO1
@ OXZ_GUI_ROW_LISTDESC
@ OXZ_GUI_ROW_INPUT
@ OXZ_GUI_ROW_UPDATE_ALL
@ OXZ_GUI_ROW_PROCEED
@ OXZ_GUI_ROW_LISTHEAD
@ OXZ_GUI_ROW_LISTSTART
@ OXZ_GUI_ROW_LISTPREV
@ OXZ_GUI_ROW_LISTNEXT
@ OXZ_GUI_ROW_UPDATE

◆ OXZInstallableState

Enumerator
OXZ_INSTALLABLE_OKAY 
OXZ_INSTALLABLE_UPDATE 
OXZ_INSTALLABLE_DEPENDENCIES 
OXZ_INSTALLABLE_CONFLICTS 
OXZ_UNINSTALLABLE_ALREADY 
OXZ_UNINSTALLABLE_NOREMOTE 
OXZ_UNINSTALLABLE_VERSION 
OXZ_UNINSTALLABLE_MANUAL 

Definition at line 77 of file OOOXZManager.m.

77 {
82 // for things to work, _ALREADY must be the first UNINSTALLABLE state
83 // and all the INSTALLABLE ones must be before all the UNINSTALLABLE ones
OXZInstallableState
@ OXZ_INSTALLABLE_UPDATE
@ OXZ_INSTALLABLE_DEPENDENCIES
@ OXZ_INSTALLABLE_CONFLICTS
@ OXZ_INSTALLABLE_OKAY
@ OXZ_UNINSTALLABLE_VERSION
@ OXZ_UNINSTALLABLE_ALREADY
@ OXZ_UNINSTALLABLE_NOREMOTE
@ OXZ_UNINSTALLABLE_MANUAL

Function Documentation

◆ oxzSort()

NSComparisonResult oxzSort ( id m1,
id m2,
void * context )

Definition at line 2358 of file OOOXZManager.m.

2359{
2360 NSComparisonResult result = [[m1 oo_stringForKey:kOOManifestCategory defaultValue:@"zz"] localizedCompare:[m2 oo_stringForKey:kOOManifestCategory defaultValue:@"zz"]];
2361 if (result == NSOrderedSame)
2362 {
2363 result = [[m1 oo_stringForKey:kOOManifestTitle defaultValue:@"zz"] localizedCompare:[m2 oo_stringForKey:kOOManifestTitle defaultValue:@"zz"]];
2364 if (result == NSOrderedSame)
2365 {
2366 result = [[m2 oo_stringForKey:kOOManifestVersion defaultValue:@"0"] localizedCompare:[m1 oo_stringForKey:kOOManifestVersion defaultValue:@"0"]];
2367 }
2368 }
2369 return result;
2370}

Variable Documentation

◆ kOOOXZDataConfig

NSString* const kOOOXZDataConfig = @"oxz-index-url"
static

Definition at line 53 of file OOOXZManager.m.

◆ kOOOXZDataURL

NSString* const kOOOXZDataURL = @"http://addons.oolite.space/api/1.0/overview"
static

Definition at line 51 of file OOOXZManager.m.

◆ kOOOXZDebugLog

NSString* const kOOOXZDebugLog = @"oxz.manager.debug"
static

Definition at line 63 of file OOOXZManager.m.

◆ kOOOXZErrorLog

NSString* const kOOOXZErrorLog = @"oxz.manager.error"
static

Definition at line 62 of file OOOXZManager.m.

◆ kOOOXZFilterAll

NSString* const kOOOXZFilterAll = @"*"
static

Definition at line 67 of file OOOXZManager.m.

◆ kOOOXZFilterAuthor

NSString* const kOOOXZFilterAuthor = @"a:"
static

Definition at line 71 of file OOOXZManager.m.

◆ kOOOXZFilterCategory

NSString* const kOOOXZFilterCategory = @"c:"
static

Definition at line 72 of file OOOXZManager.m.

◆ kOOOXZFilterDays

NSString* const kOOOXZFilterDays = @"d:"
static

Definition at line 73 of file OOOXZManager.m.

◆ kOOOXZFilterInstallable

NSString* const kOOOXZFilterInstallable = @"i"
static

Definition at line 69 of file OOOXZManager.m.

◆ kOOOXZFilterKeyword

NSString* const kOOOXZFilterKeyword = @"k:"
static

Definition at line 70 of file OOOXZManager.m.

◆ kOOOXZFilterTag

NSString* const kOOOXZFilterTag = @"t:"
static

Definition at line 74 of file OOOXZManager.m.

◆ kOOOXZFilterUpdates

NSString* const kOOOXZFilterUpdates = @"u"
static

Definition at line 68 of file OOOXZManager.m.

◆ kOOOXZManifestCache

NSString* const kOOOXZManifestCache = @"Oolite-manifests.plist"
static

Definition at line 55 of file OOOXZManager.m.

◆ kOOOXZTmpPath

NSString* const kOOOXZTmpPath = @"Oolite-download.oxz"
static

Definition at line 57 of file OOOXZManager.m.

◆ kOOOXZTmpPlistPath

NSString* const kOOOXZTmpPlistPath = @"Oolite-download.plist"
static

Definition at line 59 of file OOOXZManager.m.

◆ sSingleton

OOOXZManager* sSingleton = nil
static

Definition at line 120 of file OOOXZManager.m.