Monotone-Parent: ecc7993695f6bf490b49a22b237471f7d599bc76

Monotone-Revision: 7016b89d1c4abd33e846818e244ff6fabde5521e

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2011-07-27T21:55:49
Monotone-Branch: ca.inverse.sogo
maint-2.0.2
Wolfgang Sourdeau 2011-07-27 21:55:49 +00:00
parent b9d975fbb4
commit 79c745e822
3 changed files with 16 additions and 0 deletions

View File

@ -1,5 +1,9 @@
2011-07-27 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* OpenChange/MAPIStoreContext.m (-getNewChangeNumber): new
utility method that returns a change number from the mapistore db
via the openchangedb API.
* OpenChange/SOGoMAPIFSMessage.m (-save): serialize the properties
dictionary in binary plist format to avoid GNUstep bugs where
high unsigned long long values are not parsed properly.

View File

@ -99,6 +99,7 @@
- (uint64_t) idForObjectWithKey: (NSString *) key
inFolderURL: (NSString *) folderURL;
- (uint64_t) getNewChangeNumber;
/* subclass methods */
+ (NSString *) MAPIModuleName;

View File

@ -407,6 +407,17 @@ _prepareContextClass (Class contextClass,
return mappingId;
}
- (uint64_t) getNewChangeNumber
{
uint64_t newVersionNumber;
if (openchangedb_get_new_changeNumber (connInfo->oc_ctx, &newVersionNumber)
!= MAPISTORE_SUCCESS)
abort ();
return newVersionNumber;
}
/* subclasses */
+ (NSString *) MAPIModuleName