mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-20 02:45:25 +00:00
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:
@@ -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.
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user