aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ui/mac/MCOCIDURLProtocol.h
blob: cf0b5335826a71a09c1e360b8bc9f91a8e141b1a (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
//
//  MCTCIDURLProtocol.h
//  testUI
//
//  Created by DINH Viêt Hoà on 1/22/13.
//  Copyright (c) 2013 MailCore. All rights reserved.
//

#import <Foundation/Foundation.h>

#include <mailcore/mailcore.h>

@interface MCOCIDURLProtocol : NSURLProtocol

+ (void) registerProtocol;

+ (BOOL) isCID:(NSURL *)url;
+ (BOOL) isXMailcoreImage:(NSURL *)url;

#ifdef __cplusplus
+ (void) startLoadingWithMessage:(MCOAbstractMessage *)message
                    partUniqueID:(NSString *)partUniqueID
                            data:(NSData *)data
                         request:(NSMutableURLRequest *)request;

+ (void) partDownloadedMessage:(MCOAbstractMessage *)message
                  partUniqueID:(NSString *)partUniqueID
                          data:(NSData *)data;
#endif

@end