sogo/SoObjects/SOGo/NSDictionary+Utilities.h
C Robert c543b9e9a7 Fixes for import/export
Monotone-Parent: 3e7ac334a4ea19aa4ec2dcbc525628005ca75fb7
Monotone-Revision: d124c012f70febcfcbb9a2b5d4f3a20a7a001d7a

Monotone-Author: crobert@inverse.ca
Monotone-Date: 2009-09-09T13:31:45
Monotone-Branch: ca.inverse.sogo
2009-09-09 13:31:45 +00:00

51 lines
1.4 KiB
Objective-C

/* NSDictionary+Utilities.h - this file is part of SOGo
*
* Copyright (C) 2007 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
* the Free Software Foundation; either version 2, or (at your option)
* 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 NSDICTIONARY_UTILITIES_H
#define NSDICTIONARY_UTILITIES_H
#import <Foundation/NSDictionary.h>
@class NSArray;
@class NSString;
@interface NSDictionary (SOGoDictionaryUtilities)
+ (NSDictionary *) dictionaryFromStringsFile: (NSString *) file;
- (NSString *) jsonRepresentation;
- (NSString *) keysWithFormat: (NSString *) keyFormat;
// LDIF methods
- (NSString *) userRecordAsLDIFEntry;
@end
@interface NSMutableDictionary (SOGoDictionaryUtilities)
- (void) setObjects: (NSArray *) objects
forKeys: (NSArray *) keys;
@end
#endif /* NSDICTIONARY_UTILITIES_H */