Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3384038
D4391.id14165.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D4391.id14165.diff
View Options
diff --git a/native/ios/Comm.xcodeproj/project.pbxproj b/native/ios/Comm.xcodeproj/project.pbxproj
--- a/native/ios/Comm.xcodeproj/project.pbxproj
+++ b/native/ios/Comm.xcodeproj/project.pbxproj
@@ -216,6 +216,7 @@
CBEA4A89286EECCC00DFCFF5 /* NonBlockingLock.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = NonBlockingLock.mm; path = Comm/TemporalMessageStorage/NonBlockingLock.mm; sourceTree = "<group>"; };
CBEA4A8C286EED3900DFCFF5 /* EncryptedFileUtils.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = EncryptedFileUtils.h; path = Comm/TemporalMessageStorage/EncryptedFileUtils.h; sourceTree = "<group>"; };
CBEA4A8D286EED6A00DFCFF5 /* EncryptedFileUtils.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = EncryptedFileUtils.mm; path = Comm/TemporalMessageStorage/EncryptedFileUtils.mm; sourceTree = "<group>"; };
+ CBEA4A90286EEDAE00DFCFF5 /* TemporalMessageStorage.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = TemporalMessageStorage.h; path = Comm/TemporalMessageStorage/TemporalMessageStorage.h; sourceTree = "<group>"; };
F53DA7B3F26C2798DCE74A94 /* Pods-Comm.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Comm.debug.xcconfig"; path = "Target Support Files/Pods-Comm/Pods-Comm.debug.xcconfig"; sourceTree = "<group>"; };
/* End PBXFileReference section */
@@ -567,6 +568,7 @@
CBEA4A87286EEC7600DFCFF5 /* TemporalMessageStorage */ = {
isa = PBXGroup;
children = (
+ CBEA4A90286EEDAE00DFCFF5 /* TemporalMessageStorage.h */,
CBEA4A8D286EED6A00DFCFF5 /* EncryptedFileUtils.mm */,
CBEA4A8C286EED3900DFCFF5 /* EncryptedFileUtils.h */,
CBEA4A89286EECCC00DFCFF5 /* NonBlockingLock.mm */,
diff --git a/native/ios/Comm/TemporalMessageStorage/TemporalMessageStorage.h b/native/ios/Comm/TemporalMessageStorage/TemporalMessageStorage.h
new file mode 100644
--- /dev/null
+++ b/native/ios/Comm/TemporalMessageStorage/TemporalMessageStorage.h
@@ -0,0 +1,17 @@
+#pragma once
+
+#import <Foundation/Foundation.h>
+
+@interface TemporalMessageStorage : NSObject
+@property(readonly) NSURL *directoryURL;
+@property(readonly) NSString *directoryPath;
+@property(readonly) NSString *mainStoragePath;
+@property(readonly) NSString *lockName;
+
+- (instancetype)initAtPath:(NSString *)directoryName
+ withMainStorage:(NSString *)mainStorageName
+ withLockName:(NSString *)lockName;
+- (void)writeMessage:(NSString *)message;
+- (NSArray<NSString *> *)readAndClearMessages;
+- (void)ensureLockUsable;
+@end
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 29, 7:07 PM (21 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2597854
Default Alt Text
D4391.id14165.diff (2 KB)
Attached To
Mode
D4391: Define interface for flat-file based message storage operations
Attached
Detach File
Event Timeline
Log In to Comment