Revision d8426ffb pithos-macos/PithosActivityFacility.h

b/pithos-macos/PithosActivityFacility.h
2 2
//  PithosActivityFacility.h
3 3
//  pithos-macos
4 4
//
5
// Copyright 2011 GRNET S.A. All rights reserved.
5
// Copyright 2011-2012 GRNET S.A. All rights reserved.
6 6
//
7 7
// Redistribution and use in source and binary forms, with or
8 8
// without modification, are permitted provided that the following
......
37 37

  
38 38
#import <Foundation/Foundation.h>
39 39
#import "PithosActivity.h"
40
@class PithosAccount;
40 41

  
41 42
@protocol PithosActivityFacilityDelegate <NSObject>
42 43
@required
......
62 63
+ (id)defaultPithosActivityFacility;
63 64

  
64 65
- (void)reset;
66

  
65 67
- (PithosActivity *)startActivityWithType:(PithosActivityType)type 
66 68
                                  message:(NSString *)message 
67 69
                               totalBytes:(NSUInteger)totalBytes 
68
                             currentBytes:(NSUInteger)currentBytes;
70
                             currentBytes:(NSUInteger)currentBytes 
71
                            pithosAccount:(PithosAccount *)pithosAccount;
69 72
- (PithosActivity *)startActivityWithType:(PithosActivityType)type 
70
                                  message:(NSString *)message;
73
                                  message:(NSString *)message 
74
                               totalBytes:(NSUInteger)totalBytes 
75
                             currentBytes:(NSUInteger)currentBytes;
76
- (PithosActivity *)startActivityWithType:(PithosActivityType)type message:(NSString *)message pithosAccount:(PithosAccount *)pithosAccount;
77
- (PithosActivity *)startActivityWithType:(PithosActivityType)type message:(NSString *)message;
78
- (PithosActivity *)startAndEndActivityWithType:(PithosActivityType)type message:(NSString *)message pithosAccount:(PithosAccount *)pithosAccount;
71 79
- (PithosActivity *)startAndEndActivityWithType:(PithosActivityType)type message:(NSString *)message;
80

  
72 81
- (void)updateActivity:(PithosActivity *)activity 
73 82
           withMessage:(NSString *)message 
74 83
            totalBytes:(NSUInteger)totalBytes 

Also available in: Unified diff