2007-01-31 18:12:33 +01:00
|
|
|
/* NSString+Utilities.h - this file is part of SOGo
|
2006-07-11 19:29:09 +02:00
|
|
|
*
|
|
|
|
* Copyright (C) 2006 Inverse groupe conseil
|
|
|
|
*
|
|
|
|
* 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 NSSTRING_URL_H
|
|
|
|
#define NSSTRING_URL_H
|
|
|
|
|
|
|
|
#import <Foundation/NSString.h>
|
|
|
|
|
|
|
|
@class NSDictionary;
|
|
|
|
|
|
|
|
@interface NSString (SOGoURLExtension)
|
|
|
|
|
|
|
|
- (NSString *) composeURLWithAction: (NSString *) action
|
|
|
|
parameters: (NSDictionary *) urlParameters
|
|
|
|
andHash: (BOOL) useHash;
|
2006-07-29 00:43:28 +02:00
|
|
|
- (NSString *) hostlessURL;
|
|
|
|
|
2006-10-03 18:09:43 +02:00
|
|
|
- (NSString *) urlWithoutParameters;
|
|
|
|
|
2006-12-14 21:17:46 +01:00
|
|
|
- (NSString *) davMethodToObjC;
|
2007-07-22 22:32:16 +02:00
|
|
|
- (NSDictionary *) asDavInvocation;
|
2006-12-14 21:17:46 +01:00
|
|
|
|
2007-05-15 22:52:01 +02:00
|
|
|
- (NSString *) stringByDetectingURLs;
|
|
|
|
|
2007-05-25 19:30:24 +02:00
|
|
|
- (NSString *) jsonRepresentation;
|
|
|
|
|
2007-08-09 22:59:30 +02:00
|
|
|
/* bare email addresses */
|
|
|
|
- (NSString *) pureEMailAddress;
|
|
|
|
|
2007-08-24 00:10:50 +02:00
|
|
|
- (NSString *) asQPSubjectString: (NSString *) encoding;
|
|
|
|
|
2007-04-11 21:38:06 +02:00
|
|
|
#ifndef GNUSTEP_BASE_LIBRARY
|
2007-04-11 21:33:25 +02:00
|
|
|
- (BOOL) boolValue;
|
|
|
|
#endif
|
|
|
|
|
2006-07-11 19:29:09 +02:00
|
|
|
@end
|
|
|
|
|
|
|
|
#endif /* NSSTRING_URL_H */
|