blob: 84e038928d5ac7e62bcfa1df9ad2ef8651ea3772 (
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
|
//
// 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_
// It's a generic IMAP operation with progress.
#import <MailCore/MCOOperation.h>
typedef void (^MCOIMAPBaseOperationProgressBlock)(unsigned int current, unsigned int maximum);
typedef void (^MCOIMAPBaseOperationItemProgressBlock)(unsigned int current);
@interface MCOIMAPBaseOperation : MCOOperation
// those two methods can be overriden by subclasses.
// It will be called when a send or receive of a content of a message will occur.
- (void) bodyProgress:(unsigned int)current maximum:(unsigned int)maximum;
// It will be called when a new item is received in a list of items.
- (void) itemProgress:(unsigned int)current maximum:(unsigned int)maximum;
@end
#endif
|