/*
- Copyright (C) 2000-2003 SKYRIX Software AG
+ Copyright (C) 2000-2004 SKYRIX Software AG
- This file is part of OGo
+ This file is part of OpenGroupware.org.
OGo is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the
Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA.
*/
-// $Id$
#include "WODirectAction+XmlRpc.h"
#include <NGXmlRpc/NSObject+Reflection.h>
static int CoreOnException = -1;
- (NSString *)xmlrpcComponentNamespacePrefix {
+ // TODO: should be deprecated
+ NSUserDefaults *ud;
NSString *np;
- np = [[NSUserDefaults standardUserDefaults]
- stringForKey:@"SxDefaultNamespacePrefix"];
+ ud = [NSUserDefaults standardUserDefaults];
+ np = [ud stringForKey:@"SxDefaultNamespacePrefix"];
if ([np length] > 0)
return np;
return @"com.skyrix";
}
- (NSString *)xmlrpcComponentName {
+ // TODO: should be deprecated
NSString *s;
s = NSStringFromClass([self class]);
}
- (NSString *)xmlrpcComponentNamespace {
+ // TODO: should be deprecated
NSString *ns, *n;
ns = [self xmlrpcComponentNamespacePrefix];
cnt = (cnt > (int)[_params count]) ? (int)[_params count] : cnt;
for (i = 0; i < cnt; i++) {
- id param = [_params objectAtIndex:i];
+ id param;
+
+ param = [_params objectAtIndex:i];
[invo setArgument:¶m atIndex:(i + 2)];
}
// TODO(hh): should fill the remaining args when less params available ?
[invo invoke];
[invo getReturnValue:&result];
-
+
return result;
}