Revision d8426ffb pithos-macos/PithosSyncDaemon.h
b/pithos-macos/PithosSyncDaemon.h | ||
---|---|---|
36 | 36 |
// or implied, of GRNET S.A. |
37 | 37 |
|
38 | 38 |
#import <Foundation/Foundation.h> |
39 |
@class PithosAccount; |
|
39 | 40 |
@class ASIPithos; |
40 | 41 |
@class PithosActivityFacility; |
41 | 42 |
@class ASINetworkQueue; |
42 | 43 |
|
43 | 44 |
@interface PithosSyncDaemon : NSObject { |
44 | 45 |
NSString *directoryPath; |
45 |
ASIPithos *pithos;
|
|
46 |
PithosAccount *pithosAccount;
|
|
46 | 47 |
NSString *containerName; |
47 |
NSTimeInterval timeInterval;
|
|
48 |
ASIPithos *pithos;
|
|
48 | 49 |
|
49 | 50 |
NSString *blockHash; |
50 | 51 |
NSUInteger blockSize; |
... | ... | |
59 | 60 |
NSString *tempDownloadsDirPath; |
60 | 61 |
NSString *tempTrashDirPath; |
61 | 62 |
|
63 |
BOOL daemonActive; |
|
64 |
|
|
62 | 65 |
NSUInteger syncOperationCount; |
63 | 66 |
BOOL newSyncRequested; |
64 | 67 |
NSDate *lastCompletedSync; |
65 | 68 |
BOOL syncIncomplete; |
69 |
BOOL syncLate; |
|
66 | 70 |
|
67 | 71 |
ASINetworkQueue *networkQueue; |
68 |
dispatch_queue_t queue; |
|
69 |
NSTimer *timer; |
|
72 |
NSOperationQueue *callbackQueue; |
|
70 | 73 |
|
71 | 74 |
PithosActivityFacility *activityFacility; |
72 | 75 |
} |
73 | 76 |
|
77 |
@property (nonatomic, retain) NSString *directoryPath; |
|
78 |
@property (nonatomic, retain) PithosAccount *pithosAccount; |
|
79 |
@property (nonatomic, retain) NSString *containerName; |
|
80 |
@property (nonatomic, retain) ASIPithos *pithos; |
|
81 |
|
|
74 | 82 |
@property (nonatomic, retain) NSString *blockHash; |
75 | 83 |
@property (nonatomic, assign) NSUInteger blockSize; |
76 | 84 |
@property (nonatomic, retain) NSDate *lastModified; |
... | ... | |
78 | 86 |
@property (nonatomic, retain) NSMutableDictionary *storedLocalObjectStates; |
79 | 87 |
@property (nonatomic, retain) NSMutableDictionary *currentLocalObjectStates; |
80 | 88 |
|
81 |
@property (nonatomic, readonly) NSString *directoryPath; |
|
82 |
@property (nonatomic, readonly) NSString *containerDirectoryPath; |
|
89 |
@property (nonatomic, retain) NSString *containerDirectoryPath; |
|
83 | 90 |
@property (nonatomic, readonly) NSString *pithosStateFilePath; |
84 | 91 |
@property (nonatomic, readonly) NSString *tempDownloadsDirPath; |
85 | 92 |
@property (nonatomic, readonly) NSString *tempTrashDirPath; |
... | ... | |
87 | 94 |
@property (nonatomic, retain) NSDate *lastCompletedSync; |
88 | 95 |
|
89 | 96 |
- (id)initWithDirectoryPath:(NSString *)aDirectoryPath |
90 |
pithos:(ASIPithos *)aPithos
|
|
97 |
pithosAccount:(PithosAccount *)aPithosAccount
|
|
91 | 98 |
containerName:(NSString *)aContainerName |
92 |
timeInterval:(NSTimeInterval)aTimeInterval |
|
93 | 99 |
resetLocalState:(BOOL)resetLocalState; |
100 |
|
|
101 |
- (void)resetDaemon; |
|
102 |
- (void)startDaemon; |
|
103 |
|
|
94 | 104 |
- (void)sync; |
105 |
- (BOOL)isSyncing; |
|
106 |
- (void)syncLate; |
|
95 | 107 |
|
96 | 108 |
@end |
Also available in: Unified diff