Monotone-Parent: a830e73fbed57c6ef30ede64ea5bfa6d85af8f74

Monotone-Revision: ade57d95f9e3d9e8015757ea30d104d416c32d67

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2011-02-03T22:09:41
Monotone-Branch: ca.inverse.sogo
maint-2.0.2
Wolfgang Sourdeau 2011-02-03 22:09:41 +00:00
parent b667780957
commit 952404d05f
3 changed files with 17 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2011-02-03 Ludovic Marcotte <lmarcotte@inverse.ca>
* OpenChange/MAPIStoreMapping.m (-unregisterURLWithID:): new
method for removing entries from the mapping dictionaries.
2011-02-03 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* SoObjects/SOGo/WOResourceManager+SOGo.m: new category module

View File

@ -41,7 +41,7 @@
- (uint64_t) idFromURL: (NSString *) url;
- (BOOL) registerURL: (NSString *) urlString
withID: (uint64_t) idNbr;
// - (void) registerURL: (NSString *) urlString;
- (void) unregisterURLWithID: (uint64_t) idNbr;
@end

View File

@ -180,4 +180,15 @@ MAPIStoreMappingInitDictionary (NSMutableDictionary *mapping)
return rc;
}
- (void) unregisterURLWithID: (uint64_t) idNbr
{
NSNumber *idKey;
NSString *urlString;
idKey = [NSNumber numberWithUnsignedLongLong: idNbr];
urlString = [mapping objectForKey: idKey];
[reverseMapping removeObjectForKey: urlString];
[mapping removeObjectForKey: idKey];
}
@end