blob: f5bf88af67b6564b8c5f4e9f8bbea0f2e50ddde9 (
plain)
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
|
//
// MCOIMAPBaseOperation.h
// mailcore2
//
// Created by DINH Viêt Hoà on 3/26/13.
// Copyright (c) 2013 MailCore. All rights reserved.
//
#ifndef __MAILCORE_MCOIMAPBASEOPERATION_H_
#define __MAILCORE_MCOIMAPBASEOPERATION_H_
/** Represents a generic IMAP operation with methods that are called with progress updates */
#import <MailCore/MCOOperation.h>
typedef void (^MCOIMAPBaseOperationProgressBlock)(unsigned int current, unsigned int maximum);
typedef void (^MCOIMAPBaseOperationItemProgressBlock)(unsigned int current);
@interface MCOIMAPBaseOperation : MCOOperation
/* Can be overriden by subclasses */
/*
Will be called when a sending or receiving the contents of a message
@param current The number of bytes sent or received
@param maximum The total number of bytes expected
*/
- (void)bodyProgress:(unsigned int)current maximum:(unsigned int)maximum;
/*
Will be called when a new item is received in a list of items, like for example a message list
@param current The number of items downloaded
@param maximum The total number of items expected
*/
- (void)itemProgress:(unsigned int)current maximum:(unsigned int)maximum;
@end
#endif
|