2007-05-25 19:30:24 +02:00
|
|
|
/* NSObject+Utilities.h - this file is part of SOGo
|
|
|
|
*
|
2018-01-23 16:35:46 +01:00
|
|
|
* Copyright (C) 2007-2017 Inverse inc.
|
2007-05-25 19:30:24 +02:00
|
|
|
*
|
|
|
|
* 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 NSOBJECT_UTILITIES_H
|
|
|
|
#define NSOBJECT_UTILITIES_H
|
|
|
|
|
|
|
|
|
2010-01-15 00:19:19 +01:00
|
|
|
#import <DOM/DOMProtocols.h>
|
|
|
|
|
2018-01-23 16:35:46 +01:00
|
|
|
@class NSArray;
|
2007-05-25 19:30:24 +02:00
|
|
|
@class NSString;
|
2010-04-09 20:45:14 +02:00
|
|
|
@class WOContext;
|
2007-05-25 19:30:24 +02:00
|
|
|
|
|
|
|
@interface NSObject (SOGoObjectUtilities)
|
|
|
|
|
|
|
|
- (NSString *) jsonRepresentation;
|
|
|
|
|
2010-01-15 00:19:19 +01:00
|
|
|
- (NSArray *) domNode: (id <DOMNode>) node
|
|
|
|
getChildNodesByType: (DOMNodeType) type;
|
|
|
|
|
2010-04-09 20:45:14 +02:00
|
|
|
- (NSString *) labelForKey: (NSString *) key
|
|
|
|
inContext: (WOContext *) context;
|
|
|
|
|
2014-12-23 01:32:17 +01:00
|
|
|
+ (void) memoryStatistics;
|
|
|
|
|
2018-01-23 16:35:46 +01:00
|
|
|
- (NSArray *) parts;
|
|
|
|
|
2007-05-25 19:30:24 +02:00
|
|
|
@end
|
|
|
|
|
|
|
|
#endif /* NSOBJECT+UTILITIES_H */
|