Monotone-Parent: aeb8c107b97ba5a8089c220a6f38fa3a8ce06df6

Monotone-Revision: 1178361f8707a8028000acf5b245a4eef4ee3f92

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2011-02-11T16:09:42
Monotone-Branch: ca.inverse.sogo
maint-2.0.2
Wolfgang Sourdeau 2011-02-11 16:09:42 +00:00
parent e61634f501
commit 89d4df71b1
2 changed files with 23 additions and 0 deletions

View File

@ -1,5 +1,10 @@
2011-02-11 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* OpenChange/MAPIStoreContactsMessageTable.m
(-sortIdentifierForProperty:): implemented basic table for
supporting the sorting implied by the use of the addressbook label
buttons.
* OpenChange/MAPIStoreTasksMessageTable.m
(-sortIdentifierForProperty:): implemented basic table for
supporting common header sorts from the OL interface.

View File

@ -566,6 +566,8 @@
forKey: MAPIPropertyKey (PidLidEmail3EmailAddress)];
[knownProperties setObject: @"c_cn"
forKey: MAPIPropertyKey (PR_DISPLAY_NAME_UNICODE)];
[knownProperties setObject: @"c_cn"
forKey: MAPIPropertyKey (PidLidFileUnder)];
}
return [knownProperties objectForKey: MAPIPropertyKey (property)];
@ -604,4 +606,20 @@
return rc;
}
/* sorting */
- (NSString *) sortIdentifierForProperty: (enum MAPITAGS) property
{
static NSMutableDictionary *knownProperties = nil;
if (!knownProperties)
{
knownProperties = [NSMutableDictionary new];
[knownProperties setObject: @"c_cn"
forKey: MAPIPropertyKey (PidLidFileUnder)];
}
return [knownProperties objectForKey: MAPIPropertyKey (property)];
}
@end