blob: 7893f917e6a8ec4942d69637e76a9c5bb9914bb4 (
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
|
//
// MCOOperation.h
// mailcore2
//
// Created by Matt Ronge on 01/31/13.
// Copyright (c) 2013 __MyCompanyName__. All rights reserved.
//
#ifndef __MAILCORE_MCOOPERATION_H_
#define __MAILCORE_MCOOPERATION_H_
#import <Foundation/Foundation.h>
@interface MCOOperation : NSObject
@property (readonly) BOOL isCancelled;
// This methods is called on the main thread when the asynchronous operation is finished.
// Needs to be overriden by subclasses.
- (void)operationCompleted;
// Cancel the operation.
- (void)cancel;
@end
#endif
|