JubeatPlus 3.9.11
Loading...
Searching...
No Matches
MarkerManager.h
Go to the documentation of this file.
1
14
15#import <Foundation/Foundation.h>
16
17@class NSURL;
18
19NS_ASSUME_NONNULL_BEGIN
20
24@interface MarkerManager : NSObject
25
35- (instancetype)initWithDelegate:(nullable id)delegate;
36
45- (void)setDownloadList:(nullable NSArray *)list;
46
54
62
70+ (int)getMarkerIndex:(nullable NSString *)markerID;
71
78+ (nullable NSMutableArray<NSDictionary<NSString *, NSString *> *> *)getMarkerList;
79
86+ (void)setMarkerList:(nullable NSArray<NSDictionary<NSString *, NSString *> *> *)list;
87
94+ (nullable NSMutableArray<NSDictionary<NSString *, NSString *> *> *)getCurrentMarkerList;
95
103+ (nullable NSDictionary<NSString *, NSString *> *)getMarkerInfo:(int)index;
104
114+ (void)setMarkerInfo:(nullable NSDictionary<NSString *, NSString *> *)info;
115
123+ (BOOL)checkMarkerBannerData:(nullable NSString *)name;
124
132+ (BOOL)checkMarkerData:(nullable NSString *)name;
133
140+ (void)setIgnoreSave:(nullable NSURL *)url;
141
152+ (void)pullOutMarkerBanner:(nullable NSString *)path bannerID:(nullable NSString *)bannerID;
153
161+ (void)saveMarker:(nullable NSData *)data markerID:(nullable NSString *)markerID;
162
170+ (void)copyMarkerItem:(nullable NSString *)name isBanner:(BOOL)isBanner;
171
178+ (void)copyMarker:(nullable NSString *)name;
179
186+ (void)copyMarkerBanner:(nullable NSString *)name;
187
195+ (void)markerMove:(nullable NSString *)markerID bannerID:(nullable NSString *)bannerID;
196
203+ (nullable NSString *)getMarkerDirectoryPath;
204
212+ (nullable NSString *)getMarkerPath:(nullable NSString *)name;
213
221+ (nullable NSString *)getMarkerBannerPath:(nullable NSString *)name;
222
233
240+ (BOOL)convertMarkerList;
241
252
259+ (BOOL)enableMarkerSelect;
260
267+ (BOOL)moveMarkerDataInDoc;
268
269@end
270
271NS_ASSUME_NONNULL_END
272
273// code: language=Objective-C
274// kate: hl Objective-C;
275// vim: set ft=objc :
Owns the marker assets and their on-disc layout.
Definition MarkerManager.h:25
nullable NSMutableArray< NSDictionary< NSString *, NSString * > * > * getCurrentMarkerList()
The installed markers, excluding those whose version is still 0.0.0.
Definition MarkerManager.m:137
nullable NSString * getMarkerDirectoryPath()
The installed marker directory, creating it (and the private documents parent) as needed.
Definition MarkerManager.m:278
int getReservedMarkerSize()
The reserved marker index boundary.
Definition MarkerManager.m:80
int getDefaultMarkerSize()
The number of markers in the default list.
Definition MarkerManager.m:85
BOOL checkRegularMarkerData()
Validates the installed marker list, rebuilding it from defaults when it is missing.
Definition MarkerManager.m:377
BOOL enableMarkerSelect()
Whether marker selection may be enabled.
Definition MarkerManager.m:451
nullable NSMutableArray< NSDictionary< NSString *, NSString * > * > * getMarkerList()
The full persisted marker list, deciphered and unarchived.
Definition MarkerManager.m:105
BOOL moveMarkerDataInDoc()
Copies the built-in current marker into the Documents marker directory.
Definition MarkerManager.m:489
BOOL convertMarkerList()
Migrates a legacy marker-version list into the current list format.
Definition MarkerManager.m:342
BOOL createDefaultMarkerList()
Builds and persists the built-in default marker list.
Definition MarkerManager.m:321