Monotone-Parent: 2e7676b90c71219dd808c0fe5e7250367ee03889
Monotone-Revision: aeb8c107b97ba5a8089c220a6f38fa3a8ce06df6 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2011-02-11T16:08:46 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
parent
3749c51da9
commit
e61634f501
|
@ -1,5 +1,9 @@
|
||||||
2011-02-11 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
2011-02-11 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||||
|
|
||||||
|
* OpenChange/MAPIStoreTasksMessageTable.m
|
||||||
|
(-sortIdentifierForProperty:): implemented basic table for
|
||||||
|
supporting common header sorts from the OL interface.
|
||||||
|
|
||||||
* OpenChange/MAPIStoreCalendarMessageTable.m
|
* OpenChange/MAPIStoreCalendarMessageTable.m
|
||||||
(-sortIdentifierForProperty:): implemented basic table.
|
(-sortIdentifierForProperty:): implemented basic table.
|
||||||
|
|
||||||
|
|
|
@ -359,4 +359,24 @@
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* sorting */
|
||||||
|
|
||||||
|
- (NSString *) sortIdentifierForProperty: (enum MAPITAGS) property
|
||||||
|
{
|
||||||
|
static NSMutableDictionary *knownProperties = nil;
|
||||||
|
|
||||||
|
if (!knownProperties)
|
||||||
|
{
|
||||||
|
knownProperties = [NSMutableDictionary new];
|
||||||
|
[knownProperties setObject: @"c_title"
|
||||||
|
forKey: MAPIPropertyKey (PR_NORMALIZED_SUBJECT_UNICODE)];
|
||||||
|
[knownProperties setObject: @"c_enddate"
|
||||||
|
forKey: MAPIPropertyKey (PidLidTaskDueDate)];
|
||||||
|
[knownProperties setObject: @"c_creationdate"
|
||||||
|
forKey: MAPIPropertyKey (PidLidTaskOrdinal)];
|
||||||
|
}
|
||||||
|
|
||||||
|
return [knownProperties objectForKey: MAPIPropertyKey (property)];
|
||||||
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
Loading…
Reference in a new issue