Oolite
Loading...
Searching...
No Matches
OOOXZManager.h
Go to the documentation of this file.
1/*
2
3OOOXZManager.h
4
5Responsible for installing and uninstalling OXZs
6
7Oolite
8Copyright (C) 2004-2013 Giles C Williams and contributors
9
10This program is free software; you can redistribute it and/or
11modify it under the terms of the GNU General Public License
12as published by the Free Software Foundation; either version 2
13of the License, or (at your option) any later version.
14
15This program is distributed in the hope that it will be useful,
16but WITHOUT ANY WARRANTY; without even the implied warranty of
17MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18GNU General Public License for more details.
19
20You should have received a copy of the GNU General Public License
21along with this program; if not, write to the Free Software
22Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
23MA 02110-1301, USA.
24
25*/
26
27#import "GuiDisplayGen.h"
29#import "OOFoundation.h"
30#import "OOOpenGL.h"
31#import "OOTypes.h"
32
40
57
58@interface OOOXZManager : NSObject {
59@private
60 NSArray* _oxzList;
61 NSArray* _managedList;
62 NSArray* _filteredList;
63 NSString* _currentFilter;
64 NSString* _currentOXPURL;
65
69
70 NSURLConnection* _currentDownload;
72
76 NSFileHandle* _fileWriter;
77 NSUInteger _item;
78
80
81 NSUInteger _offset;
82
83 NSString* _progressStatus;
84 NSMutableSet* _dependencyStack;
85}
86
87+ (OOOXZManager*)sharedManager;
88
89- (NSString*)installPath;
90- (NSString*)extractAddOnsPath;
91- (NSArray*)additionalAddOnsPaths;
92
93- (BOOL)updateManifests;
94- (BOOL)cancelUpdate;
95
96- (NSArray*)manifests;
97- (NSArray*)managedOXZs;
98
99- (void)gui;
100- (BOOL)isRestarting;
101- (BOOL)isAcceptingTextInput;
102- (BOOL)isAcceptingGUIInput;
103
104- (void)processSelection;
105- (void)processTextInput:(NSString*)input;
106- (void)refreshTextInput:(NSString*)input;
107- (void)processFilterKey;
108- (void)processShowInfoKey;
109- (void)processCopyUrlKey;
110- (void)processExtractKey;
111- (OOGUIRow)showInstallOptions;
112- (OOGUIRow)showRemoveOptions;
113- (void)showOptionsUpdate;
114- (void)showOptionsPrev;
115- (void)showOptionsNext;
116- (void)processOptionsPrev;
117- (void)processOptionsNext;
118
119@end
NSInteger OOGUIRow
OXZInterfaceState
@ OXZ_STATE_UPDATING
@ OXZ_STATE_INSTALLING
@ OXZ_STATE_PICK_INSTALLED
@ OXZ_STATE_RESTARTING
@ OXZ_STATE_SETFILTER
@ OXZ_STATE_NODATA
@ OXZ_STATE_TASKDONE
@ OXZ_STATE_DEPENDENCIES
@ OXZ_STATE_REMOVING
@ OXZ_STATE_PICK_INSTALL
@ OXZ_STATE_PICK_REMOVE
@ OXZ_STATE_EXTRACTDONE
@ OXZ_STATE_MAIN
@ OXZ_STATE_EXTRACT
OXZDownloadStatus
@ OXZ_DOWNLOAD_RECEIVING
@ OXZ_DOWNLOAD_COMPLETE
@ OXZ_DOWNLOAD_STARTED
@ OXZ_DOWNLOAD_NONE
@ OXZ_DOWNLOAD_ERROR
NSUInteger _item
NSArray * _managedList
BOOL _downloadAllDependencies
NSURLConnection * _currentDownload
NSFileHandle * _fileWriter
NSUInteger _offset
NSString * _progressStatus
NSString * _currentDownloadName
NSArray * _filteredList
NSString * _currentFilter
OXZDownloadStatus _downloadStatus
NSUInteger _downloadExpected
BOOL _interfaceShowingOXZDetail
NSString * _currentOXPURL
NSMutableSet * _dependencyStack
OXZInterfaceState _interfaceState
NSUInteger _downloadProgress
NSArray * _oxzList