2010-12-13 17:54:32 +01:00
|
|
|
/* MAPIStoreMapping.h - this file is part of SOGo
|
2010-10-01 20:54:30 +02:00
|
|
|
*
|
|
|
|
* Copyright (C) 2010 Inverse inc.
|
|
|
|
*
|
|
|
|
* Author: Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
|
|
|
*
|
|
|
|
* This file is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
2010-10-18 14:57:31 +02:00
|
|
|
* the Free Software Foundation; either version 3, or (at your option)
|
2010-10-01 20:54:30 +02:00
|
|
|
* any later version.
|
|
|
|
*
|
|
|
|
* This file is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; see the file COPYING. If not, write to
|
|
|
|
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
* Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef MAPISTOREMAPPING_H
|
|
|
|
#define MAPISTOREMAPPING_H
|
|
|
|
|
|
|
|
#import <Foundation/NSObject.h>
|
|
|
|
|
|
|
|
@class NSMutableDictionary;
|
|
|
|
@class NSString;
|
|
|
|
|
|
|
|
@interface MAPIStoreMapping : NSObject
|
|
|
|
{
|
2010-10-12 23:37:09 +02:00
|
|
|
NSMutableDictionary *mapping; /* FID/MID -> url */
|
|
|
|
NSMutableDictionary *reverseMapping; /* url -> FID/MID */
|
2010-10-01 20:54:30 +02:00
|
|
|
}
|
|
|
|
|
2010-10-15 19:18:34 +02:00
|
|
|
+ (id) sharedMapping;
|
|
|
|
|
2010-10-01 20:54:30 +02:00
|
|
|
- (NSString *) urlFromID: (uint64_t) idKey;
|
|
|
|
|
|
|
|
- (uint64_t) idFromURL: (NSString *) url;
|
|
|
|
- (BOOL) registerURL: (NSString *) urlString
|
|
|
|
withID: (uint64_t) idNbr;
|
2011-02-03 23:09:41 +01:00
|
|
|
- (void) unregisterURLWithID: (uint64_t) idNbr;
|
2010-10-01 20:54:30 +02:00
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
#endif /* MAPISTOREMAPPING_H */
|