2016-08-12 15:32:42 +03:00
|
|
|
/**
|
|
|
|
* Tae Won Ha - http://taewon.de - @hataewon
|
|
|
|
* See LICENSE
|
|
|
|
*/
|
|
|
|
|
2016-10-22 18:25:43 +03:00
|
|
|
@import Foundation;
|
2016-08-12 15:32:42 +03:00
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
|
|
@interface NeoVimBuffer : NSObject <NSCoding>
|
|
|
|
|
2016-10-22 23:20:22 +03:00
|
|
|
@property (nonatomic, readonly) NSInteger handle;
|
2016-11-24 21:46:25 +03:00
|
|
|
@property (nonatomic, readonly, nullable) NSURL *url;
|
2016-11-22 22:57:50 +03:00
|
|
|
/**
|
|
|
|
* Only the file name
|
|
|
|
*/
|
|
|
|
@property (nonatomic, readonly, nullable) NSString *name;
|
2016-11-23 00:36:13 +03:00
|
|
|
@property (nonatomic, readonly) bool isReadOnly;
|
2016-10-22 18:35:36 +03:00
|
|
|
@property (nonatomic, readonly) bool isDirty;
|
|
|
|
@property (nonatomic, readonly) bool isCurrent;
|
|
|
|
@property (nonatomic, readonly) bool isTransient;
|
2016-08-12 15:32:42 +03:00
|
|
|
|
2016-10-22 23:20:22 +03:00
|
|
|
- (instancetype)initWithHandle:(NSInteger)handle
|
2016-11-24 21:46:25 +03:00
|
|
|
unescapedPath:(NSString *_Nullable)unescapedPath
|
2016-08-12 15:32:42 +03:00
|
|
|
dirty:(bool)dirty
|
2016-11-23 00:36:13 +03:00
|
|
|
readOnly:(bool)readOnly
|
2016-08-12 15:32:42 +03:00
|
|
|
current:(bool)current;
|
|
|
|
|
|
|
|
- (instancetype)initWithCoder:(NSCoder *)coder;
|
|
|
|
- (void)encodeWithCoder:(NSCoder *)coder;
|
|
|
|
|
|
|
|
- (NSString *)description;
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|
2016-10-23 12:43:21 +03:00
|
|
|
|
|
|
|
@interface NeoVimBuffer (Equality)
|
|
|
|
|
|
|
|
- (BOOL)isEqual:(id _Nullable)other;
|
|
|
|
- (BOOL)isEqualToBuffer:(NeoVimBuffer * _Nullable)buffer;
|
|
|
|
- (NSUInteger)hash;
|
|
|
|
|
|
|
|
@end
|