1 /* NSDictionary+Utilities.h - this file is part of SOGo
2  *
3  * Copyright (C) 2007-2017 Inverse inc.
4  *
5  * This file is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2, or (at your option)
8  * any later version.
9  *
10  * This file is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; see the file COPYING.  If not, write to
17  * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18  * Boston, MA 02111-1307, USA.
19  */
20 
21 #ifndef NSDICTIONARY_UTILITIES_H
22 #define NSDICTIONARY_UTILITIES_H
23 
24 #import <Foundation/NSDictionary.h>
25 
26 @class NSArray;
27 @class NSString;
28 
29 @interface NSDictionary (SOGoDictionaryUtilities)
30 
31 + (NSDictionary *) dictionaryFromStringsFile: (NSString *) file;
32 
33 - (NSString *) jsonRepresentation;
34 - (NSString *) keysWithFormat: (NSString *) keyFormat;
35 
36 - (NSComparisonResult) caseInsensitiveDisplayNameCompare: (NSDictionary *) theDictionary;
37 
38 @end
39 
40 @interface NSMutableDictionary (SOGoDictionaryUtilities)
41 
42 - (void) setObject: (id) object
43            forKeys: (NSArray *) keys;
44 - (void) setObjects: (NSArray *) objects
45 	    forKeys: (NSArray *) keys;
46 
47 @end
48 
49 #endif /* NSDICTIONARY_UTILITIES_H */
50