forked from arqbackup/arq_restore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Commit.h
60 lines (52 loc) · 1.91 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
58
59
60
//
// Commit.h
// Backup
//
// Created by Stefan Reitshamer on 3/21/09.
// Copyright 2009 PhotoMinds LLC. All rights reserved.
//
#import "Blob.h"
#import "BufferedInputStream.h"
@class BlobKey;
#define CURRENT_COMMIT_VERSION 9
@interface Commit : NSObject {
int commitVersion;
NSString *_author;
NSString *_comment;
BlobKey *_parentCommitBlobKey;
BlobKey *_treeBlobKey;
NSString *_location;
NSString *_computer;
NSDate *_creationDate;
NSArray *_commitFailedFiles;
BOOL _hasMissingNodes;
BOOL _isComplete;
NSData *_bucketXMLData;
}
+ (NSString *)errorDomain;
- (id)initWithCommit:(Commit *)commit parentCommitBlobKey:(BlobKey *)parentCommitBlobKey;
- (id) initWithAuthor:(NSString *)theAuthor
comment:(NSString *)theComment
parentCommitBlobKey:(BlobKey *)theParentCommitBlobKey
treeBlobKey:(BlobKey *)theTreeBlobKey
location:(NSString *)theLocation
creationDate:(NSDate *)theCreationDate
commitFailedFiles:(NSArray *)theCommitFailedFiles
hasMissingNodes:(BOOL)theHasMissingNodes
isComplete:(BOOL)theIsComplete
bucketXMLData:(NSData *)theBucketXMLData;
- (id)initWithBufferedInputStream:(BufferedInputStream *)is error:(NSError **)error;
@property(readonly) int commitVersion;
@property(readonly,copy) NSString *author;
@property(readonly,copy) NSString *comment;
@property(readonly,copy) BlobKey *treeBlobKey;
@property(readonly,retain) BlobKey *parentCommitBlobKey;
@property(readonly,copy) NSString *location;
@property(readonly,copy) NSString *computer;
@property(readonly,retain) NSDate *creationDate;
@property(readonly,retain) NSArray *commitFailedFiles;
@property(readonly) BOOL hasMissingNodes;
@property(readonly) BOOL isComplete;
@property(readonly, retain) NSData *bucketXMLData;
- (NSData *)toData;
@end