Monotone-Parent: a830e73fbed57c6ef30ede64ea5bfa6d85af8f74
Monotone-Revision: ade57d95f9e3d9e8015757ea30d104d416c32d67 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2011-02-03T22:09:41 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
parent
b667780957
commit
952404d05f
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue