merge of '02eeec72548ff817666ea01fd17816eeaf1aa802'

and 'ade57d95f9e3d9e8015757ea30d104d416c32d67'

Monotone-Parent: 02eeec72548ff817666ea01fd17816eeaf1aa802
Monotone-Parent: ade57d95f9e3d9e8015757ea30d104d416c32d67
Monotone-Revision: 48706c943fa3ceb72288194c22bfec223fb4a890

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2011-02-03T22:09:45
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau 2011-02-03 22:09:45 +00:00
commit 36a03a0e5c
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