-
Notifications
You must be signed in to change notification settings - Fork 3
/
NoteContext.h
144 lines (138 loc) · 4.93 KB
/
NoteContext.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
/*
* Generated by class-dump 3.3.4 (64 bit).
*
* class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by Steve Nygard.
*/
#import "NSObject.h"
@class CPExclusiveLock, NSManagedObjectContext, NSManagedObjectModel, NSMutableDictionary, NSNumber, NSPersistentStoreCoordinator, NSPredicate, NSString, NoteAccountObject, NoteStoreObject;
@interface NoteContext : NSObject
{
NSManagedObjectModel *_managedObjectModel;
NSManagedObjectContext *_managedObjectContext;
NSPersistentStoreCoordinator *_persistentStoreCoordinator;
NSPredicate *_searchPredicate;
NoteStoreObject *_localStore;
NoteAccountObject *_localAccount;
struct __CXIndex *__SharedNoteStoreSearchIndex;
CPExclusiveLock *__SharedNoteStoreSearchIndexLock;
int __SharedNoteStoreSearchIndexCount;
BOOL _isIndexing;
NSManagedObjectContext *_nextIdContext;
CPExclusiveLock *_nextIdLock;
NSNumber *_nextId;
CPExclusiveLock *_objectCreationLock;
unsigned int _notificationCount;
BOOL _logChanges;
BOOL _indexInBatches;
BOOL _hasPriorityInSaveConflicts;
BOOL _inMigrator;
NSString *_testingFilePrefix;
NSString *_testingFilePath;
NSMutableDictionary *_notePropertyObjectsRealized;
}
+ (BOOL)databaseIsCorrupt:(id)arg1;
+ (BOOL)shouldLogIndexing;
@property(readonly, nonatomic) BOOL isIndexing; // @synthesize isIndexing=_isIndexing;
- (void).cxx_destruct;
- (BOOL)deleteIndexFile;
- (BOOL)noteIsSafeToAccess:(id)arg1;
- (void)cleanUpLocks;
- (id)findNotesWithText:(id)arg1 betweenDate:(id)arg2 andDate:(id)arg3;
- (id)copyNotesForSearch:(void *)arg1 predicate:(id)arg2 complete:(char *)arg3;
- (id)copyNotesForSearch:(void *)arg1 complete:(char *)arg2;
- (void *)newSearchContextWithText:(id)arg1;
- (void)trackChanges:(id)arg1;
- (id)noteChangeWithType:(int)arg1 store:(id)arg2;
- (void)updateSearchIndex:(id)arg1;
- (void)resetNotificationCount;
- (void)receiveDarwinNotificationWithChangeLogging:(BOOL)arg1;
- (void)indexInBatches:(BOOL)arg1;
- (void)resumeIndexing;
- (void)wrapUpIndexing;
- (void)destroySearchIndex;
- (struct __CXIndex *)searchIndex:(char *)arg1;
- (void)indexNotes:(id)arg1;
- (id)notesToResumeIndexing;
- (BOOL)shouldResumeIndexing;
- (void)saveNotesToResumeIndexing:(id)arg1;
- (id)persistentStoreCoordinator;
- (id)managedObjectModel;
@property(readonly, nonatomic) NSManagedObjectContext *managedObjectContext;
- (void)setHasPriorityInSaveConflicts:(BOOL)arg1;
- (id)urlForPersistentStore;
- (id)pathForIndex;
- (id)pathForPersistentStore;
- (id)rootDirectory;
- (id)nextIndex;
- (id)getNextIdObject;
- (void)handleMigration;
- (id)propertyValueForKey:(id)arg1;
- (void)setPropertyValue:(id)arg1 forKey:(id)arg2;
- (id)_notePropertyObjectForKey:(id)arg1;
- (BOOL)hasMultipleEnabledStores;
- (BOOL)shouldDisableLocalStore;
- (BOOL)deleteStore:(id)arg1;
- (BOOL)deleteAccount:(id)arg1;
- (BOOL)forceDeleteAccount:(id)arg1;
- (id)localAccount;
- (id)localStore;
- (id)defaultStoreForNewNote;
- (id)accountForAccountId:(id)arg1;
- (id)newlyAddedAccount;
- (id)allAccounts;
- (unsigned int)countOfStores;
- (id)allStores;
- (id)newlyAddedStore;
- (id)collectionForInfo:(id)arg1;
- (id)allNotesWithoutBodiesInCollection:(id)arg1;
- (id)notesForIntegerIds:(id)arg1;
- (id)noteForObjectID:(id)arg1;
- (unsigned int)countOfNotesMatchingPredicate:(id)arg1;
- (id)allNotesMatchingPredicate:(id)arg1;
- (unsigned int)countOfNotesInCollection:(id)arg1;
- (id)allNotesInCollection:(id)arg1;
- (unsigned int)countOfNotes;
- (id)allNotes;
- (id)visibleNotesForIntegerIds:(id)arg1;
- (id)visibleNoteForObjectID:(id)arg1;
- (unsigned int)countOfVisibleNotesMatchingPredicate:(id)arg1;
- (id)allVisibleNotesMatchingPredicate:(id)arg1;
- (unsigned int)countOfVisibleNotesInCollection:(id)arg1;
- (id)allVisibleNotesInCollection:(id)arg1;
- (unsigned int)countOfVisibleNotes;
- (id)allVisibleNotes;
- (BOOL)saveSilently:(id *)arg1;
- (BOOL)handleSaveErrors:(id)arg1;
- (BOOL)save:(id *)arg1;
- (BOOL)saveOutsideApp:(id *)arg1;
- (void)invalidate;
- (void)enableChangeLogging:(BOOL)arg1;
- (void)deleteChanges:(id)arg1;
- (void)deleteNoteRegardlessOfConstraints:(id)arg1;
- (void)deleteNote:(id)arg1;
- (id)storeForObjectID:(id)arg1;
- (id)collectionForObjectID:(id)arg1;
- (id)newlyAddedNote;
- (void)sortNotes:(id)arg1;
- (void)clearCaches;
- (id)newFetchRequestForNotes;
- (id)newFRCForCollection:(id)arg1 delegate:(id)arg2;
- (id)liveNotesNeedingBodiesPredicate;
- (id)visibleNotesPredicate;
- (void)dealloc;
- (id)init;
- (id)initWithTestingFilePrefix:(id)arg1 atPath:(id)arg2 inMigrator:(BOOL)arg3;
- (id)initWithTestingFilePrefix:(id)arg1;
- (id)initForMigrator;
- (id)initWithTestingFilePrefix:(id)arg1 inMigrator:(BOOL)arg2;
- (void)tearDownCoreDataStack;
- (void)setUpCoreDataStack;
- (void)removeConflictingSqliteAndIdxFiles;
- (void)removeSqliteAndIdxFiles;
- (void)setUpUniqueObjects;
- (void)forceSetUpUniqueObjects;
- (BOOL)setUpLastIndexTid;
- (BOOL)setUpLocalAccountAndStore;
- (void)_createLocalAccount:(id *)arg1 andStore:(id *)arg2;
- (id)storeOptions;
@end