36 lines
790 B
C
36 lines
790 B
C
|
//
|
||
|
// MCOIMAPMessageRenderingOperation.h
|
||
|
// mailcore2
|
||
|
//
|
||
|
// Created by Paul Young on 07/07/2013.
|
||
|
// Copyright (c) 2013 MailCore. All rights reserved.
|
||
|
//
|
||
|
|
||
|
#ifndef MAILCORE_MCOIMAPMESSAGERENDERINGOPERATION_H
|
||
|
|
||
|
#define MAILCORE_MCOIMAPMESSAGERENDERINGOPERATION_H
|
||
|
|
||
|
#import <MailCore/MCOIMAPBaseOperation.h>
|
||
|
|
||
|
/**
|
||
|
The class is used to get the HTML string of a message.
|
||
|
*/
|
||
|
|
||
|
@interface MCOIMAPMessageRenderingOperation : MCOIMAPBaseOperation
|
||
|
|
||
|
/**
|
||
|
Starts the asynchronous operation.
|
||
|
|
||
|
@param completionBlock Called when the operation is finished.
|
||
|
|
||
|
- On success `error` will be nil and `htmlString` will contain the message
|
||
|
|
||
|
- On failure, `error` will be set and `htmlString` will be nil
|
||
|
*/
|
||
|
|
||
|
- (void) start:(void (^)(NSString * htmlString, NSError * error))completionBlock;
|
||
|
|
||
|
@end
|
||
|
|
||
|
#endif
|