mirror of
https://github.com/samsonjs/arq_restore.git
synced 2026-04-22 13:45:56 +00:00
31 lines
760 B
Objective-C
31 lines
760 B
Objective-C
//
|
|
// CalculateItem.h
|
|
// Arq
|
|
//
|
|
// Created by Stefan Reitshamer on 6/10/13.
|
|
// Copyright (c) 2013 Stefan Reitshamer. All rights reserved.
|
|
//
|
|
|
|
#include <sys/stat.h>
|
|
@class Tree;
|
|
@class Node;
|
|
@class Repo;
|
|
@protocol Restorer;
|
|
|
|
|
|
@interface CalculateItem : NSObject {
|
|
NSString *path;
|
|
Tree *tree;
|
|
Node *node;
|
|
struct stat st;
|
|
unsigned long long bytesToTransfer;
|
|
NSMutableSet *filesToSkip;
|
|
NSMutableArray *nextItems;
|
|
}
|
|
- (id)initWithPath:(NSString *)thePath tree:(Tree *)theTree;
|
|
- (id)initWithPath:(NSString *)thePath node:(Node *)theNode;
|
|
- (BOOL)calculateWithRepo:(Repo *)theRepo restorer:(id <Restorer>)theRestorer error:(NSError **)error;
|
|
- (unsigned long long)bytesToTransfer;
|
|
- (NSSet *)filesToSkip;
|
|
- (NSArray *)nextItems;
|
|
@end
|