Oolite 1.91.0.7645-241119-222d325
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 "OOCocoa.h"
28#import "OOOpenGL.h"
30#import "OOTypes.h"
31#import "GuiDisplayGen.h"
32
40
41
58
59
60@interface OOOXZManager : NSObject
61{
62@private
63 NSArray *_oxzList;
64 NSArray *_managedList;
65 NSArray *_filteredList;
66 NSString *_currentFilter;
67
71
72 NSURLConnection *_currentDownload;
74
78 NSFileHandle *_fileWriter;
79 NSUInteger _item;
80
82
83 NSUInteger _offset;
84
85 NSString *_progressStatus;
86 NSMutableSet *_dependencyStack;
87}
88
89+ (OOOXZManager *) sharedManager;
90
91- (NSString *) installPath;
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) processExtractKey;
110- (OOGUIRow) showInstallOptions;
111- (OOGUIRow) showRemoveOptions;
112- (void) showOptionsUpdate;
113- (void) showOptionsPrev;
114- (void) showOptionsNext;
115- (void) processOptionsPrev;
116- (void) processOptionsNext;
117
118@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
NSMutableSet * _dependencyStack
OXZInterfaceState _interfaceState
NSUInteger _downloadProgress
NSArray * _oxzList