Monotone-Parent: f6dd6e26aadfa52716bf3ca2c504de3593e5f35b

Monotone-Revision: 7717958c228c80920ba54d6300d040c7112bb646

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2010-11-23T14:49:46
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2010-11-23 14:49:46 +00:00
parent e4956f5d1f
commit 5e8a31d900
3 changed files with 11 additions and 1 deletions
+4
View File
@@ -1,5 +1,9 @@
2010-11-23 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* OpenChange/NSData+MAPIStore.m (+dataWithBinary:): new
constructor for generating an NSData instance from a struct
Binary_r *.
* SoObjects/Mailer/SOGoDraftObject.m (-setIsHTML, -isHTML): new
accessors, which enables the setting of html mode from the caller
rather than from the user defaults.
+2 -1
View File
@@ -27,9 +27,10 @@
@interface NSData (MAPIStoreDataTypes)
+ (id) dataWithBinary: (const struct Binary_r *) binData;
- (struct Binary_r *) asBinaryInMemCtx: (void *) memCtx;
@end
#endif /* NSDATA_MAPISTORE_H */
+5
View File
@@ -29,6 +29,11 @@
@implementation NSData (MAPIStoreDataTypes)
+ (id) dataWithBinary: (const struct Binary_r *) binData
{
return [NSData dataWithBytes: binData->lpb length: binData->cb];
}
- (struct Binary_r *) asBinaryInMemCtx: (void *) memCtx
{
struct Binary_r *binary;