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:
Wolfgang Sourdeau
2011-04-19 21:57:52 +00:00
parent d7df3cfb57
commit 3cbf76eda6
7 changed files with 140 additions and 2 deletions

View File

@@ -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