mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-05 08:34:30 +00:00
Monotone-Parent: 4f36a1c10a12396aed17d84ab4be1adc520d1663
Monotone-Revision: dbda0a122c502c53d25654eada72e93bc8865a35 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2011-11-22T17:48:46 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
#import <NGExtensions/NSObject+Logs.h>
|
||||
|
||||
#import "MAPIStoreTypes.h"
|
||||
#import "NSArray+MAPIStore.h"
|
||||
#import "NSData+MAPIStore.h"
|
||||
#import "NSDate+MAPIStore.h"
|
||||
#import "NSValue+MAPIStore.h"
|
||||
@@ -68,9 +69,9 @@ static int MAPIStoreTallocWrapperDestroy (void *data)
|
||||
|
||||
@implementation NSObject (MAPIStoreDataTypes)
|
||||
|
||||
- (int) getMAPIValue: (void **) data
|
||||
forTag: (enum MAPITAGS) propTag
|
||||
inMemCtx: (TALLOC_CTX *) memCtx
|
||||
- (int) getValue: (void **) data
|
||||
forTag: (enum MAPITAGS) propTag
|
||||
inMemCtx: (TALLOC_CTX *) memCtx
|
||||
{
|
||||
uint16_t valueType;
|
||||
int rc = MAPISTORE_SUCCESS;
|
||||
@@ -111,9 +112,14 @@ static int MAPIStoreTallocWrapperDestroy (void *data)
|
||||
*data = [(NSData *) self asGUIDInMemCtx: memCtx];
|
||||
break;
|
||||
|
||||
case PT_MV_UNICODE:
|
||||
*data = [(NSArray *) self asArrayOfUnicodeStringsInMemCtx: memCtx];
|
||||
break;
|
||||
|
||||
default:
|
||||
[self errorWithFormat: @"object type not handled: %d (0x%.4x)",
|
||||
valueType, valueType];
|
||||
abort();
|
||||
*data = NULL;
|
||||
rc = MAPISTORE_ERR_NOT_FOUND;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user