aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objc/abstract
diff options
context:
space:
mode:
authorGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2013-07-31 23:35:08 -0700
committerGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2013-07-31 23:35:08 -0700
commit85a26f97fefac157bb3d310f444f7c86a8b07204 (patch)
treee8fd7d161b72b4b425b9f1dfaee80c0205602903 /src/objc/abstract
parenta722d215582e295d9e8fe5fb876d61a7a93cf494 (diff)
Serialization of IMAP data. Implemented base64.
Diffstat (limited to 'src/objc/abstract')
-rw-r--r--src/objc/abstract/MCOMessageHeader.mm16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/objc/abstract/MCOMessageHeader.mm b/src/objc/abstract/MCOMessageHeader.mm
index 9374614f..241dab88 100644
--- a/src/objc/abstract/MCOMessageHeader.mm
+++ b/src/objc/abstract/MCOMessageHeader.mm
@@ -67,6 +67,8 @@
return self;
}
+MCO_SYNTHESIZE_NSCODING
+
- (void) dealloc
{
_nativeHeader->release();
@@ -100,18 +102,18 @@ MCO_OBJC_SYNTHESIZE_ARRAY(setReplyTo, replyTo)
MCO_OBJC_SYNTHESIZE_STRING(setSubject, subject)
MCO_OBJC_SYNTHESIZE_STRING(setUserAgent, userAgent)
-- (void)addHeaderValue:(NSString *)value forName:(NSString *)name {
- _nativeHeader->addHeader(MCO_FROM_OBJC(mailcore::String, name), MCO_FROM_OBJC(mailcore::String, value));
+- (void)addExtraHeaderValue:(NSString *)value forName:(NSString *)name {
+ _nativeHeader->setExtraHeader(MCO_FROM_OBJC(mailcore::String, name), MCO_FROM_OBJC(mailcore::String, value));
}
-- (NSString *)headerValueForName:(NSString *)name {
- return MCO_TO_OBJC(_nativeHeader->headerValueForName((MCO_FROM_OBJC(mailcore::String, name))));
+- (NSString *)extraHeaderValueForName:(NSString *)name {
+ return MCO_TO_OBJC(_nativeHeader->extraHeaderValueForName((MCO_FROM_OBJC(mailcore::String, name))));
}
-- (void)removeHeaderForName:(NSString *)name {
- _nativeHeader->removeHeader(MCO_FROM_OBJC(mailcore::String, name));
+- (void)removeExtraHeaderForName:(NSString *)name {
+ _nativeHeader->removeExtraHeader(MCO_FROM_OBJC(mailcore::String, name));
}
-- (NSArray * /* NSString */)allHeadersNames {
+- (NSArray * /* NSString */)allExtraHeadersNames {
return MCO_TO_OBJC(_nativeHeader->allExtraHeadersNames());
}