mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-11-14 12:42:44 +00:00
Monotone-Parent: 787c46567335b28e25cd348f6f90eaa1ffd70f30
Monotone-Revision: 16bafd35c923b43175977acf723114a90f37d677 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2008-07-10T21:33:12 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
1 parent
fa8de6142f
commit
a5838d63b0
3 files changed
+22
No files matched your search
@@ -31,6 +31,7 @@
|
||||
|
||||
- (NSString *)
|
||||
asWebDavStringWithNamespaces: (NSMutableDictionary *) namespaces;
|
||||
- (NSDictionary *) asWebDAVTuple;
|
||||
|
||||
@end
|
||||
|
||||
|
||||
@@ -20,6 +20,8 @@
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#import <Foundation/NSDictionary.h>
|
||||
|
||||
#import <NGExtensions/NSString+misc.h>
|
||||
|
||||
#import "NSString+DAV.h"
|
||||
@@ -32,4 +34,19 @@
|
||||
return [self stringByEscapingXMLString];
|
||||
}
|
||||
|
||||
#warning we should use the same nomenclature as the webdav values...
|
||||
- (NSDictionary *) asWebDAVTuple
|
||||
{
|
||||
NSString *namespace, *nodeName;
|
||||
NSRange nsEnd;
|
||||
|
||||
nsEnd = [self rangeOfString: @"}"];
|
||||
namespace = [self substringFromRange: NSMakeRange (1, nsEnd.location - 1)];
|
||||
nodeName = [self substringFromIndex: nsEnd.location + 1];
|
||||
|
||||
return [NSDictionary dictionaryWithObjectsAndKeys: namespace, @"ns",
|
||||
nodeName, @"method", nil];
|
||||
}
|
||||
|
||||
|
||||
@end
|
||||
Reference in new issue
Block a user