forked from arqbackup/arq_restore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Commit.h
57 lines (49 loc) · 1.82 KB
/
Commit.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
//
// Commit.h
// Backup
//
// Created by Stefan Reitshamer on 3/21/09.
// Copyright 2009 PhotoMinds LLC. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "Blob.h"
#import "BufferedInputStream.h"
@class BlobKey;
#define CURRENT_COMMIT_VERSION 7
@interface Commit : NSObject {
int commitVersion;
NSString *_author;
NSString *_comment;
NSMutableSet *_parentCommitBlobKeys;
BlobKey *_treeBlobKey;
NSString *_location;
NSString *_computer;
BlobKey *_mergeCommonAncestorCommitBlobKey;
NSDate *_creationDate;
NSArray *_commitFailedFiles;
NSData *_bucketXMLData;
}
+ (NSString *)errorDomain;
- (id)initWithCommit:(Commit *)commit parentCommitBlobKey:(BlobKey *)parentCommitBlobKey;
- (id) initWithAuthor:(NSString *)theAuthor
comment:(NSString *)theComment
parentCommitBlobKeys:(NSSet *)theParentCommitBlobKeys
treeBlobKey:(BlobKey *)theTreeBlobKey
location:(NSString *)theLocation
mergeCommonAncestorCommitBlobKey:(BlobKey *)theMergeCommonAncestorCommitBlobKey
commitFailedFiles:(NSArray *)theCommitFailedFiles
bucketXMLData:(NSData *)theBucketXMLData;
- (id)initWithBufferedInputStream:(BufferedInputStream *)is error:(NSError **)error;
@property(readonly,copy) NSString *author;
@property(readonly,copy) NSString *comment;
@property(readonly,copy) BlobKey *treeBlobKey;
@property(readonly,retain) NSSet *parentCommitBlobKeys;
@property(readonly,copy) NSString *location;
@property(readonly,copy) NSString *computer;
@property(readonly,copy) BlobKey *mergeCommonAncestorCommitBlobKey;
@property(readonly,retain) NSDate *creationDate;
@property(readonly,retain) NSArray *commitFailedFiles;
@property(readonly, retain) NSData *bucketXMLData;
- (NSNumber *)isMergeCommit;
- (Blob *)toBlob;
@end