-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBLDBManager.h
176 lines (170 loc) · 9.64 KB
/
BLDBManager.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
/*
* Generated by class-dump 3.1.2.
*
* class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2007 by Steve Nygard.
*/
#import "_ACAccountTypeIdentifierTwitter.h"
@class BLDBAlbum, BLDBModelGraph, BLDBRequestCache, NSConditionLock, NSMutableArray, NSMutableDictionary, NSOperationQueue, NSRecursiveLock, NSString, NSTimer;
@interface BLDBManager : _ACAccountTypeIdentifierTwitter
{
NSString *m_localDirPath;
int m_schema;
id m_beginExecuteAdjustmentsBlock;
id m_prepareGenerateImageSyncBlock;
id m_executeGenerateImageSyncBlock;
id m_endExecuteAdjustmentsBlock;
id m_getAdjustmentCountSyncBlock;
id m_processPixelSizeSyncBlock;
NSString *_documentsPath;
NSRecursiveLock *_dbAccessLock;
NSRecursiveLock *_sqlAccessLock;
NSConditionLock *_rebuildingDatabaseConditionLock;
NSConditionLock *_savingDatabaseConditionLock;
NSRecursiveLock *_miscellaneousFlagsLock;
BOOL _ignoreAssetsLibraryChangedNotifications;
unsigned int _assetsLibraryChangedNotificationCount;
BOOL _coalesceNotifications;
BOOL _rebuildPending;
NSTimer *_scanAssetsLibraryTimer;
NSMutableDictionary *_assetsGroupDict;
struct dispatch_queue_s *_scanRequestQueue;
struct dispatch_queue_s *_standardRequestQueue;
struct dispatch_queue_s *_altRequestQueue;
NSMutableArray *_registeredRequests;
int _pendingRequestCount;
BLDBRequestCache *_requestCache;
NSRecursiveLock *_modelGraphLock;
BLDBModelGraph *_modelGraph;
NSOperationQueue *_filePresenterOperationQueue;
struct dispatch_queue_s *_cloudProcessQueue;
NSConditionLock *_processedUbiquitousItemWorkerThreadLock;
NSMutableArray *_initialPrepareForUbiquityModelList;
NSMutableArray *_wakeupPrepareForUbiquityModelList;
NSMutableArray *_changedUbiquitousBlockList;
NSMutableArray *_removedUbiquitousItemURLList;
NSMutableArray *_changedUbiquitousItemURLList;
NSMutableArray *_makeUbiquitousItemFilePresenterList;
NSMutableArray *_reversionedUbiquitousItemURLList;
NSMutableArray *_discoveredUbiquitousItemURLList;
BLDBAlbum *_savedPhotosAlbum;
BLDBAlbum *_assetsLibraryTransientAlbum;
BLDBAlbum *_bestOfSmartAlbum;
BLDBAlbum *_flaggedSmartAlbum;
BLDBAlbum *_sharedOrReferencedSmartAlbum;
BLDBAlbum *_beamedSmartAlbum;
BLDBAlbum *_editedSmartAlbum;
NSConditionLock *_batchUpdateConditionLock;
Class _batchModelClass;
NSString *_batchModelPropertyKey;
double _lastRepairTimestamp;
BOOL _generating;
BOOL _photoStreamEnabled;
BOOL _enable10906268WorkAround;
}
+ (id)sharedInstance;
+ (id)databaseFileNamesWithSchema:(int)fp8;
+ (void)initialize;
+ (BOOL)_migrateDocumentsToLibraryDirectory;
- (void)setGenerating:(BOOL)fp8;
- (BOOL)generating;
- (void)setProcessPixelSizeSyncBlock:(id)fp(null);
- (id)processPixelSizeSyncBlock;
- (void)setGetAdjustmentCountSyncBlock:(id)fp(null);
- (id)getAdjustmentCountSyncBlock;
- (void)setEndExecuteAdjustmentsBlock:(id)fp(null);
- (id)endExecuteAdjustmentsBlock;
- (void)setExecuteGenerateImageSyncBlock:(id)fp(null);
- (id)executeGenerateImageSyncBlock;
- (void)setPrepareGenerateImageSyncBlock:(id)fp(null);
- (id)prepareGenerateImageSyncBlock;
- (void)setBeginExecuteAdjustmentsBlock:(id)fp(null);
- (id)beginExecuteAdjustmentsBlock;
- (void)setSchema:(int)fp8;
- (int)schema;
- (void)setLocalDirPath:(id)fp8;
- (id)localDirPath;
- (id)description;
- (void)dealloc;
- (id)init;
- (void)_executeRequest:(id)fp8;
- (void)_finishProcessingCoreRequest:(id)fp8;
- (void)_processCoreRequest:(id)fp8;
- (void)_endCoalesceNotifications;
- (id)_processRequestTypeCoalesceNotifications:(id)fp8;
- (id)_processRequestTypeDeleteMedia:(id)fp8;
- (id)_processRequestTypeCreateOrUpdateMediaFromData:(id)fp8 needsSave:(char *)fp12;
- (id)_processRequestTypeDeleteMediaAttachmentFiles:(id)fp8 needsSave:(char *)fp12;
- (id)_processRequestTypeCreateOrUpdateMediaAttachmentFilesFromData:(id)fp8 needsSave:(char *)fp12;
- (id)_processRequestTypeMergeAttachmentFile:(id)fp8;
- (id)_processRequestTypeExecuteAdjustments:(id)fp8;
- (id)_processRequestTypeReadWriteDeleteAttachmentFiles:(id)fp8;
- (id)_processRequestTypeDeleteAssetsLibraryAlbum:(id)fp8 needsSave:(char *)fp12;
- (id)_processRequestTypeUpdateAssetsLibraryAlbum:(id)fp8 needsSave:(char *)fp12;
- (id)_processRequestTypeCreateAssetsLibraryAlbum:(id)fp8 needsSave:(char *)fp12;
- (id)_processRequestTypeWriteImageToSavedPhotosAlbum:(id)fp8 needsSave:(char *)fp12;
- (id)_processRequestTypeEndWriteImageToSavedPhotosAlbum:(id)fp8;
- (id)_processRequestTypeBeginWriteImageToSavedPhotosAlbum:(id)fp8;
- (id)_processRequestTypeCreateUpdateDeleteAlbum:(id)fp8 needsSave:(char *)fp12;
- (id)_processRequestTypeUpdateAlbumPosterMedias:(id)fp8;
- (id)_processRequestTypeTestBindAlbum:(id)fp8;
- (id)_processRequestTypeObjectList:(id)fp8;
- (BOOL)_notifyMediaStateChangedWithMediaList:(id)fp8;
- (void)_notifyMediaStateChangedWithMedia:(id)fp8;
- (void)_notifyMediaAttachmentsChangedWithMedia:(id)fp8 callingRequest:(id)fp12;
- (BOOL)_notifyAlbumMediaInclusionChangedWithMediaList:(id)fp8 userInfo:(id)fp12 callingRequest:(id)fp16;
- (void)_notifyAlbumMediaInclusionChangedWithMedia:(id)fp8 userInfo:(id)fp12 callingRequest:(id)fp16;
- (void)_notifyAlbumContentChangedWithAlbumList:(id)fp8 callingRequest:(id)fp12;
- (void)_notifyAlbumContentChangedWithAlbum:(id)fp8 callingRequest:(id)fp12;
- (void)_notifyAlbumListChangedWithCallingRequest:(id)fp8;
- (int)_modelListsNeededWithRequest:(id)fp8;
- (void)_saveDatabaseChangesIfNecessary;
- (id)_userAlbumsWithAbortBlock:(id)fp(null) error:(void)fp8;
- (id)_upgradeDatabaseWithWantedVersion:(unsigned int)fp8 notificationBlock:(id)fp(null) abortBlock:(void)fp12;
- (id)_deleteRows:(Class)fp8 attribute:(id)fp12 value:(id)fp16 withSQLDatabase:(struct sqlite3 *)fp20;
- (id)_updateRows:(id)fp8 withSQLDatabase:(struct sqlite3 *)fp12 attributes:(id)fp16;
- (id)_updateRow:(id)fp8 withSQLDatabase:(struct sqlite3 *)fp12 attributes:(id)fp16;
- (id)_addRow:(id)fp8 withSQLDatabase:(struct sqlite3 *)fp12;
- (id)_writeRows:(id)fp8 withSQLDatabase:(struct sqlite3 *)fp12 modelClass:(Class)fp16 replace:(BOOL)fp20 abortBlock:(id)fp(null);
- (id)_readRows:(id *)fp8 withSQLDatabase:(struct sqlite3 *)fp12 modelClass:(Class)fp16 abortBlock:(id)fp(null);
- (id)_generateAdjustedImageFilesWithMedia:(id)fp8 originalFullResolutionImage:(id)fp12 combinedAdjustments:(id)fp16 prepareGenerateImageSyncBlock:(id)fp(null) beamed:(void)fp20 ubiquitous:(BOOL)fp24;
- (BOOL)_hasAdjustmentAttachmentFileWithMedia:(id)fp8 modificationDate:(id *)fp12;
- (BOOL)_hasAdjustedFilesWithMedia:(id)fp8;
- (BOOL)_deleteAttachmentFilesWithModel:(id)fp8 typeMask:(int)fp12 beamed:(BOOL)fp16 ubiquitous:(BOOL)fp20 error:(id *)fp24;
- (BOOL)_writeAttachmentFileWithMedia:(id)fp8 type:(int)fp12 pathExtension:(id)fp16 ifExists:(BOOL)fp20 beamed:(BOOL)fp24 ubiquitous:(BOOL)fp28 content:(id)fp32 debugString:(id)fp36 error:(id *)fp40;
- (BOOL)_writeAttachmentFileWithJournal:(id)fp8 type:(int)fp12 beamed:(BOOL)fp16 ubiquitous:(BOOL)fp20 content:(id)fp24 error:(id *)fp28;
- (id)_readAttachmentFileWithMedia:(id)fp8 type:(int)fp12 useAlternate:(BOOL)fp16 isPlaceholder:(char *)fp20 pixelSize:(struct CGSize *)fp24 pathExtension:(id *)fp28 modificationDate:(id *)fp32 error:(id *)fp36;
- (id)_readAttachmentFileWithJournalUuid:(id)fp8 type:(int)fp12 error:(id *)fp16;
- (BOOL)_generateAttachmentFilesWithMedia:(id)fp8 typeMask:(int)fp12 performingAdjustments:(BOOL)fp16 beamed:(BOOL)fp20 ubiquitous:(BOOL)fp24 overwrite:(BOOL)fp28 canUsePlaceholder:(BOOL)fp32 error:(id *)fp36;
- (BOOL)_rebuildDatabaseWithHint:(unsigned int)fp8 repair:(BOOL)fp12 notificationBlock:(id)fp(null) abortBlock:(void)fp16;
- (void)_repairMediaAndJournalsIfNecessaryWithAddedMediaList:(id)fp8 bestOfMediaList:(id)fp12 sharedOrReferencedMediaSet:(id)fp16 editedMediaList:(id)fp20 completedItems:(double)fp24 perItemIncrement:(double)fp32 totalItems:(double)fp40 notificationBlock:(id)fp(null);
- (unsigned int)_journalsRepairLogicLoopCount;
- (void)_invalidateCachedAssetLibraryItems;
- (void)_asyncTestIfUserAssetsLibraryWasUpdated;
- (void)_asyncPairAssetsToMediasWithGroupUuid:(id)fp8;
- (void)_asyncGatherCurrentAssetsGroups;
- (void)_resetInternalMedia:(id)fp8;
- (id)_updateMediaWithALAsset:(id)fp8 group:(id)fp12 testIfExists:(BOOL)fp16 added:(char *)fp20 context:(id)fp24 fatalBreak:(char *)fp28;
- (id)_addMediaWithALAsset:(id)fp8 group:(id)fp12 context:(id)fp16 fatalBreak:(char *)fp20;
- (id)_createAlbumWithALAssetsGroup:(id)fp8;
- (void)_updateStateWithMediaList:(id)fp8 addedMask:(unsigned int)fp12 removedMask:(unsigned int)fp16 beamed:(BOOL)fp20 ubiquitous:(BOOL)fp24 needsSave:(char *)fp28;
- (void)_setupPosterMediaForAlbum:(id)fp8 withContentList:(id)fp12 addedMediaList:(id)fp16;
- (BOOL)_deleteExternalMedia:(id)fp8;
- (id)_createExternalMediaWithDictionary:(id)fp8 orUuid:(id)fp12 dontSort:(BOOL)fp16;
- (BOOL)_deleteSmartAlbumWithType:(int)fp8;
- (void)_fixSmartAlbumNameWithAlbum:(id)fp8;
- (id)_createIfNecessarySmartAlbumWithType:(int)fp8 forMediaRemoval:(BOOL)fp12 created:(char *)fp16;
- (void)_createAssetsLibraryTransientAlbum;
- (id)_mutableDictionaryWithSerializedData:(id)fp8 debugHint:(id)fp12;
- (void)_removeOtherFilesWithDifferentExtensionAtPath:(id)fp8;
- (id)_firstFilePathWithAnyExtensionAtPath:(id)fp8 extension:(id *)fp12;
- (BOOL)_createParentDirectoryIfNecessaryWithPath:(id)fp8;
- (id)_itemDescriptionWithPath:(id)fp8;
- (void)_userDefaultsChanged:(id)fp8;
- (void)_assetsLibraryDamaged:(id)fp8;
- (void)_assetsLibraryChanged:(id)fp8;
- (void)_postRebuildDatabaseRequest;
- (void)_notifyWithName:(id)fp8 object:(id)fp12 userInfo:(id)fp16;
- (void)_notifyWithName:(id)fp8 object:(id)fp12 userInfo:(id)fp16 sync:(BOOL)fp20;
- (BOOL)_validateUuid:(id)fp8;
- (void)_enumerateAssetsWithGroup:(id)fp8 enumerationBlock:(id)fp(null);
@end