mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-02-24 18:56:24 +00:00
Monotone-Parent: 3541b0465209c659178d752da6f97c5063fbc108
Monotone-Revision: 779e2b1c502021e5eb405fa6e452d4a40ce77b6e Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2011-04-19T21:57:52 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -61,6 +61,30 @@ static Class NSExceptionK, MAPIStoreFolderK;
|
||||
return newObject;
|
||||
}
|
||||
|
||||
+ (int) getAvailableProperties: (struct SPropTagArray *) properties
|
||||
{
|
||||
const MAPIStorePropertyGetter *classGetters;
|
||||
NSUInteger count;
|
||||
enum MAPITAGS propTag;
|
||||
uint16_t propValue;
|
||||
|
||||
properties->aulPropTag = talloc_array (properties, enum MAPITAGS,
|
||||
MAPIStoreSupportedPropertiesCount);
|
||||
classGetters = MAPIStorePropertyGettersForClass (self);
|
||||
for (count = 0; count < MAPIStoreSupportedPropertiesCount; count++)
|
||||
{
|
||||
propTag = MAPIStoreSupportedProperties[count];
|
||||
propValue = (propTag & 0xffff0000) >> 16;
|
||||
if (classGetters[propValue])
|
||||
{
|
||||
properties->aulPropTag[properties->cValues] = propTag;
|
||||
properties->cValues++;
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
- (id) init
|
||||
{
|
||||
if ((self = [super init]))
|
||||
@@ -269,7 +293,11 @@ static Class NSExceptionK, MAPIStoreFolderK;
|
||||
return [self getNo: data];
|
||||
}
|
||||
|
||||
/* MAPIStoreProperty protocol */
|
||||
- (int) getAvailableProperties: (struct SPropTagArray *) properties
|
||||
{
|
||||
return [isa getAvailableProperties: properties];
|
||||
}
|
||||
|
||||
- (int) getProperties: (struct mapistore_property_data *) data
|
||||
withTags: (enum MAPITAGS *) tags
|
||||
andCount: (uint16_t) columnCount
|
||||
|
||||
Reference in New Issue
Block a user